Hello,
I have been working with a data set that uses NHANES data from 2003-2012. I wanted to add data from 2013-2018. To do this, I created a data set of the 2013-2018 cycles that had the same variables as the 2003-2012 cycles. In the original 2003-2012 dataset, I had generated a bunch of new variables that drew from the existing variables in the dataset. For instance I had a variable that was equal to the product of two other variables. However, when I appended the 2013-2018 data into the 2003-2012 dataset, the new data did not feed into these generated variables, even though the variables were consistent across the two data sets. Is there any way to make the new data feed into the existing code for the generated variables or do I just have to recode everything again?
Related Posts with Help with merging
Can I regress company data as dependent and macroeconomic data as independent?Can I regress company data (as firm performance - the dependent variable) on macroeconomic data (as …
Adjust space between plots in "twoway ...., by(group)"I created two scatterplots and plotted them side by side, using "twoway (scatter y x), by(binary_gro…
appropriately deleting dummy 1sHi, I got a bit of a puzzle problem for one specific application, but I feel an appropriate solutio…
Coding linear time trend with missing yearsI am familiar with creating linear time trends. For example, if I have study years 1996, 1997, 1998 …
Doubts on Diff-in-Diff methodDear Stata users, I am writing this post hoping that someone could help me. Here the story, I am a…
Subscribe to:
Post Comments (Atom)
0 Response to Help with merging
Post a Comment