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)
Importing variable with special characters, strings and numbersDear Stata users, I am experiencing problems in importing a variable from a csv file. This variable…
Modified Poisson Regression using GLM: missing categoriesI want to know the effect of selected background characteristics on intimate partner violence among …
Using foreach for two set of groupsDear All, I am working on a bilateral data of the form; exporter importer year trade Germany Franc…
Testing for difference in marginal effects at two values of same continuous independent variableHi all, and thanks in advance for any responses. I'm estimating the following model: mlogit enroll_…
XSMLE dynamic SDM where beta is constrained to = 0Dear list members, I have a special request estimating a dynamic spatial durbin model. I would like…
Subscribe to:
Post Comments (Atom)
0 Response to Append files (change variable type)
Post a Comment