Hello,
I am reading my friend's STATA code, which is to append several data file.
But before append files, she did the following step, which she notes as "change variable type so that we can append".
save "$folder/data_panel/2004panel.dta", replace
use "$folder/data_panel/2005panel.dta", clear
tostring CIIU4 REGION, replace
I do not understand why do we need to change variable type, by using "tostring" ?Actually all the files used for appending included identical variables.
If someone has an idea, plz kindly help me.
Thank you in advance!
Related Posts with Append files (change variable type)
Merging data from two time pointsHi, So I have longitudinal data from two time points. Data set 1 has 39 variables with 1707 observat…
Merge longitudinal dataCan you merge data from two time points within the same data set? I have a single data set with vari…
How can I export xtmg CCE full results with outreg2Hello, I am working with xtmg. I need to export the group specific coefficients. I am having troubl…
Expression too long while using inlistHello All, I am learning STATA and have not been able to find the answer to the following question …
Assigning survey weightsHi guys. I am working with a longitudinal data set and I am supposed to assign weights or adjust for…
Subscribe to:
Post Comments (Atom)
0 Response to Append files (change variable type)
Post a Comment