Hi my original dataset (year 2007) had over 2000 variables and i dropped them all except from 8 variables which i kept. I did the same thing with the datasets for different years (2008, 2009, 2010, 2011 and 2012) so each dataset had the same 8 variables. Using the APPEND in stata i appended these datasets together to make one overall dataset to then carry out a cross sectional regression.
However, i have now realised i want to include a 9th variable within the overall dataset which is contained within each of the 6 individual datasets. How can i add this variable to my dataset?
Hopefully my question is clear-ish, i've tried to explain it the best i can
Thanks for any help in advance, Anya
Related Posts with Adding a variable to a dataset from another dataset
Problems with stset on long dataHi, I'm trying to stset survival data in long format. I used reshape to convert from wide to long: …
Panel Data - treatment*for group data based on within group characteristicsHello, I am interested in assigning a treatment to a firm if it was domestic (foreign=0) in year 20…
-domin- (SSC): computing time /max. number of independent variablesHi everybody, I am using Stata 16.0 and I am trying to perform dominance analysis using the -domin-…
Deflate wages with deflator from different fileHello, I need to deflate my wages with a consumer price index which I have in a different file. How…
Using "lincom" after "margins"Hello. I have a question with respect to using the lincom command after the margins command. Specif…
Subscribe to:
Post Comments (Atom)
0 Response to Adding a variable to a dataset from another dataset
Post a Comment