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)
Website that converts SAS command codes into STATA?Hi Does anyone know of a website or platform that can automatically generate STATA codes from SAS co…
loop variables with * wildcardI have a list of variables that I want to loop through: yr2008_q110atte yr2009_q112atte yr2010_q112…
Panel data regression with fixed effectsHi Statalist, Recently I am using the state-level mental health data and trying to find its associa…
Using Repeated Imputation InferenceDoes anyone know how to use the rii command in order to whittle down the number of observations in a…
Canonical Correlation AnalysisHello, I would like to make a canonical correlation analysis with: y1 y2 y3 y4 y5 as dependent var…
Subscribe to:
Post Comments (Atom)
0 Response to Append files (change variable type)
Post a Comment