Hello everybody, I have a question about my stata first differences implementation.
I have 3 time periods and 381 unit observations.
My code is the following:
xtset id year
gen dy1 = d.y1
gen dx1 = d.x1
I repeat the same process for all my control variables. After that i run my code.
reg dy1 dx1 dx2....dxt i.id i.year, noconstant
I run i.id and i.year in order to control for area and time fixed effects (my unit of observations are different areas)
My question is if this is correct? Also I have some missing observations in control variables so I dont know if I should do something about it.
Thank you
I have 3 time periods and 381 unit observations.
My code is the following:
xtset id year
gen dy1 = d.y1
gen dx1 = d.x1
I repeat the same process for all my control variables. After that i run my code.
reg dy1 dx1 dx2....dxt i.id i.year, noconstant
I run i.id and i.year in order to control for area and time fixed effects (my unit of observations are different areas)
My question is if this is correct? Also I have some missing observations in control variables so I dont know if I should do something about it.
Thank you
Comment