Hello,
One newbie question but I'm stuck on this basic task. I'm pooling two datasets from two different years and have successfully added observations to the main dataset through the command "append". However, when running my regressions I would like to control for the survey year. But I don't know how to since there is no such variable due to their originally cross-sectional nature? Do I need to create a variable that includes the entire dataset and then control for it? How do I do that? There is a variable of the respondents' ID but there are thousands of observations in that one.
Thankful for any ideas!
Related Posts with Controlling for year when appending two datasets
comparing prevalence bwteen quartilesDear all, I have a continuous variable X that i categorized into 4 quartiles (1,2,3 and 4). i also h…
Imposing Constraints on a Regression Model Using Stata.Hello Everyone, I intend estimating a regression model of the form: log(y) = ax1 + bx2 + cx3 + dx4.…
PPMLHDFE and LassoHi all, I'm looking to do some gravity modelling with a large number of rhs variables and interacti…
Dropping value label for a variableHi! I have a dataset in stata in which I want to string a numeric variable called bopael. When I tr…
gsem: a two-equation multilevel model with two random effectsDear all, I am running a two-equation multilevel model with random intercepts at the nation and reg…
Subscribe to:
Post Comments (Atom)
0 Response to Controlling for year when appending two datasets
Post a Comment