Hi everyone,
I am trying to estimate the following spatial dynamic panel data model:
y_it = y_{i,t-2} + p_{i,t} + p_{i,t-1} + X_{i,t-2} + w*y_{i,t-2} + w*p_{i,t} + w*p_{i,t-1} + W*X_{i,t-2}
where:
When attempting to implement this specification using the xsmle command in Stata, it appears that the command only allows for one lag of the dependent variable. Specifically, the model I can estimate seems restricted to:
y_it = y_{i,t-1} + p_{i,t} + p_{i,t-1} + X_{i,t-2} + w*y_{i,t-2} + w*p_{i,t} + w*p_{i,t-1} + W*X_{i,t-2}
Here is the code I used:
xsmle y lag1_p lag2_p x, fe wmatrix(w) model(sdm) difficult dlag(3) type(ind) eff
I truly appreciate any guidance or suggestions on how to correctly specify and estimate this model. Thank you in advance for your assistance!
PS. I still consider adding y_{i,t-2} manually, but if I do, it won't be treated as endogenous and effects estimates will will not be correct.
I am trying to estimate the following spatial dynamic panel data model:
y_it = y_{i,t-2} + p_{i,t} + p_{i,t-1} + X_{i,t-2} + w*y_{i,t-2} + w*p_{i,t} + w*p_{i,t-1} + W*X_{i,t-2}
where:
- y is GDP,
- p represents a public regional policy,
- x includes other control variables,
- w is a spatial weight matrix.
When attempting to implement this specification using the xsmle command in Stata, it appears that the command only allows for one lag of the dependent variable. Specifically, the model I can estimate seems restricted to:
y_it = y_{i,t-1} + p_{i,t} + p_{i,t-1} + X_{i,t-2} + w*y_{i,t-2} + w*p_{i,t} + w*p_{i,t-1} + W*X_{i,t-2}
Here is the code I used:
xsmle y lag1_p lag2_p x, fe wmatrix(w) model(sdm) difficult dlag(3) type(ind) eff
I truly appreciate any guidance or suggestions on how to correctly specify and estimate this model. Thank you in advance for your assistance!
PS. I still consider adding y_{i,t-2} manually, but if I do, it won't be treated as endogenous and effects estimates will will not be correct.
Comment