Dears,
I am trying to append different dataset. I found this program and I would like to use it
My problem is that in each database i have some varibale coded with the same number but label differently and when I append all the variable containing the same code change label. I will try to explain better with an example. Suppose that in dataset1 the variable q1 contain the following values: 1 "A", 2 "B", 3 "3", while in dataset2 the same variable, q1, contains the following 1"C", 2"D", 3"E". Is there a way to tell stata to keep the different label when i do append (I would like to avoid to reconvert all the variable in string).
Thanks
Federica
I am trying to append different dataset. I found this program and I would like to use it
Code:
program define apx local i = 1 use database`i', clear while `i'<=10 { append using database`i' local i = `i' + 1 } end apx
Thanks
Federica
Comment