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
Levels of multiple similar variablesDear all, I have a data-set like the one below which reports the share of let's say export of ID to…
System GMM: estimates post: matrix has missing values errorHi there, I'm trying to update the IMF working paper on Redistribution, Inequality and Growth (2018…
Plotting pre-treatment parallel trendI am trying to draw a common pre-trend graph for a diff-in-diff design. My treatment group is made o…
Generate variable and fill up missing valuesHello, I have a list of companies (id) and I want to identify the highperfomer (money = 5). Unfortun…
Missing observationsHello, I am currently doing my thesis for my Master's and needed help with Stata. I wanted to run a …
Subscribe to:
Post Comments (Atom)
0 Response to Adding a variable to a dataset from another dataset
Post a Comment