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
looping over variables in a local macroDear members of the Statalist community, I am a grad student with experience in R, currently workin…
Tabstar for three variables?Hi! I have two dummy variables and one continuous (age). I want to check mean, median, sd, max and m…
Food price seasonality and volatility analysisI would want to do an analysis on food price seasonality and volatility using trigonometric and sawt…
Controls, fixed effect models, and an issueDear Statalist, I am estimating the effect of parental separation on the amount of time a child spe…
Question about numerical overflowDear STATA users, I am very new to stata, so maybe this is a dumb question. I am trying to create a…
Subscribe to:
Post Comments (Atom)
0 Response to Help with merging
Post a Comment