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)
Splitting a string variable in to two parts Hello... I have a string variable that has 3-5 words. I want to split it into two parts. Here's the…
How to reshapeI have a problem with reshaping, I don't know how to do this. Can someone help please? I have this: …
Text analysis - find frequency of several keywords within several strings + stop words removal + sentiment analysisHello! I am a new user of Stata and I have a problem with a task I have to solve. As a part of my th…
predict after xtreg, feHello, I have a fixed effects panel regression: xtreg exp cost i.year, fe My regression coefficien…
Interpreting coefficients of a three-level mixed modelDear Stata-listers, I have a three-level mixed model and I am struggling on the specific interpreta…
Subscribe to:
Post Comments (Atom)
0 Response to Append files (change variable type)
Post a Comment