paneldols:
*
dlags = number of leads and lags on the differenced RHS variables [2]
(default=2)
*
lags = number of lags for kernel estimator for variance [5]
(default=5)
*****
dlags:
* Build the regressor list for the DOLS regression, starting with the RHS
* endogenous variables (with any prior adjustments), then adding the constant and
* the lags and leads of the differenced RHS endogenous variables.
*
dim reglist(0)
do i=1,m
compute reglist=%rladdone(reglist,xvec(i))
end do i
compute reglist=%rladdone(reglist,constant)
do i=1,m
compute reglist=%rladdlaglist(reglist,dxvec(i),%seq
(-dlags,dlags)) *************
end do i
*****
*****
lags:
* Compute the long-run variance of the residuals.
*
mcov(lwindow=bartlett,
lags=lags,noprint) 2 jperiods
# dolsres
********
dlag 的选择可以参考
Data Dependent Endogeneity Correction in Cointegrated Panels.pdf
(抱歉上传不了)
我记得好像有gauss code