I feel this should be very simple, but my mind is drawing a blank here. Let me describe the situation.
The starting point is a dynamic panel model, e.g.
The longrun impact of the independent variable can be calculated as
You can then test whether this long-run impact is significantly different from zero using
This gives you a test statistic and its p-value, but how do you then turn this into a 95% confidence interval?
Workable example:
EDIT: I discovered I can do the same using the nlcom command, which does produce confidence intervals, however I'm still interested to figure out what happens behind the scenes... (examining the nlcom.ado file didn't seem to help)
The starting point is a dynamic panel model, e.g.
Code:
xtreg dep L.dep indep L.indep, fe
Code:
di (_b[indep] + _b[L1.indep])/(1 - _b[L1.dep])
Code:
testnl (_b[indep] + _b[L1.indep])/(1 - _b[L1.dep]) = 0
Workable example:
Code:
use "http://www.stata-press.com/data/r11/abdata.dta", clear xtreg n L.n w L.w, fe di (_b[w] + _b[L.w])/(1-_b[L.n]) testnl (_b[w] + _b[L.w])/(1-_b[L.n]) = 0
Comment