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
Grouping Variables?Working to group multiple variables with same description under the same name in a table. Variables …
rangestathi all, I am trying to figure out how to use -rangestat- for the following dataset example using -d…
Nearstat count number of neighbors that satisfy a certain conditionHello everyone, Currently, I am trying to generate a variable that indicates me the number of neigh…
npregress derivatives at different points instead of average of totalI am running a nonparametric regression using the following code: Code: npregress kernel log_totEx…
coefplot graph: how to drop _cons in mixed-model graph?I have a logistic regression graph which contains an unadjusted (univariate) model between age, gend…
Subscribe to:
Post Comments (Atom)
0 Response to Adding a variable to a dataset from another dataset
Post a Comment