Dear all,
I am writing here with the hope I can find help regarding an obstacle that I am having with Stata. I have a dataset that contains information for 3 years, and according to Wooldridge, to check if the effect of a variable has changed over a certain time period, then I have to interact the variable with the year dummy. So my base year is year=2014, and the other two years are 2016 and 2018. I want to check how being unemployed in 2018 and 2016 affects the dependent variable in comparison to 2014. If I run in Stata the code reg y var1 var2 unemployed i.year i.unemployed#i.year, the interaction term unemployed#2018 gets ommited. I have also tried to interact unemployed with dummy year for 2016 and then also interact it with dummy year for 2018, but then other interactions get ommited as well. I also have interactions of other categorical variables with year dummies and it has worked perfectly. Now I wonder whether I have correctly understood the concept from Wooldridge book or maybe my code is not correct. Does anyone have any idea how to proceed?
Best Regards,
Lola Brahimi
Related Posts with Interaction between dummy variable and time dummy variable
How to create a string variable with the string value of the variable name?I am trying to use merge on two data sets, one which has a value for PID for approximately 1700 obse…
Trouble printing value in a local in a loop using putexcelHi, The following code takes in information from a survey, disaggregates it by region, compares the …
IV regression with multiple interactionsHello, I hope you could help me with this. I need to estimate three separate equations with -ivreg2…
Combining two variablesHello, i'm just working on a do-file and I'm struggeling to combine to variables. The first variable…
Use of bma/wals on binary dependent variableHi there...I have a binary dependent variable (use foxtlogit analysis)...I am now at a point of cons…
Subscribe to:
Post Comments (Atom)
0 Response to Interaction between dummy variable and time dummy variable
Post a Comment