Hi statalist,
I'm trying to make a regressions analysis of variables X --> Y, I'm interested in the general relationsship but will also be looking at the relationsship over the years 1989-2014.
The X variable has been tracked in two different kinds of yearly surveys from 1989-1994 and from 2004-2014 and the Y variable from 1989-2014. With all of these I've taken the survey from one year, appended it with they survey from the second year and so forth, so now I have X tracked in two datasets, one from 1989-1994, one from 2004-2014 and X tracked in one dataset from 1989-2014.
My problem is how I should combine these three datasets in order to make the analysis, I've tried with append, but stata tells me that it doesn't have any observations, which I think is because the individual level observations doesn't have both the X and Y variable. I've also tried using 1:1 merge on my "year"-variable, but stata tells me that "year does not uniquely identify observations in the master data".
So my question is how I should combine the datasets to make the analysis possible.
Thanks in advance,
Kasper Lovén
Related Posts with Combining datasets for yearly analysis with individual level observations
Multiple imputation + ttestHi, I am struggling to find the right code that allows me to do a ttest on imputed data. mi estimate…
How to count number of countries when you have individual-level data of many countriesHi, I need to fill in my descriptive statistic analysis sample, and thus I need to count the number…
How to count number of IDs with more than one conditionAn extract of my data is displayed below. In the data, 0=Condition is absent, and 1=Condition is pre…
rangestat: regress by group, but not rolling window (for entire time window)Just two quick questions. 1) Is it possible to use rangestat to do regressions by group, but not fo…
Causal Random ForestHi: Is anyone aware or has anyone tried to implement Causal Random Forests to examine heterogeneous…
Subscribe to:
Post Comments (Atom)
0 Response to Combining datasets for yearly analysis with individual level observations
Post a Comment