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 two datasets by two variablesHi, I am very new to stata. I have x1, y1, z variables in data1.dta and x2, y2, N in data2.dta. I a…
How to assess if there is enough variation in your dependent variableIs there a simple way to assess if there is enough variation in your dependent variable, or is it be…
xtivreg , first failes with "conformability error" r(503)Dear Readers xtivreg without "first" runs fine, but fails when I add the "first" option with "confo…
Change in variance time seriesHi everyone, I am analysing a time series (stock returns) and I am trying to check whether variance…
Log transforming variablesTwo questions related to log transforming variables. I understand that we would want to log transfo…
Subscribe to:
Post Comments (Atom)
0 Response to Controlling for year when appending two datasets
Post a Comment