qui reg d.`yvar' `cons' `tren' L(-`currlead'/`currlag')D.(`xvars') in `firstob'/`lastob', nocons
}
- matrix b = e(b)
- qui matrix score `e' = b in `firstob'/`lastob', replace
= qui matrix score __00000G = b in 1/12, replace
- qui replace `e' = d.`yvar' - `e' in `firstob'/`lastob'
= qui replace __00000G = d.lnexch - __00000G in 1/12
- foreach x of varlist `xvars' {
= foreach x of varlist lnfdloc {
- forvalues lag = 0/`currlag' {
= forvalues lag = 0/1 {
- qui replace `__bL`lag'D`x'' = _b[l.`lag'.d.`x'] in `firstob'/`lastob'
= qui replace __00000C = _b[l.0.d.lnfdloc] in 1/12
l.0.d: operator invalid
不知道是否样本数不够?不能做BOOTSTRAP?