- reg y x1 x2 x3 x4 state
- predict u , residuals
- gen lnu2 = ln(u^2)
- reg lnu2 x1 x2 x3 x4 state
- predict g , xb
- gen h = exp(g)
- gen invvar=1/h
- reg y x1 x2 x3 x4 state [ aw=invvar ]
- gen y0 = y/sqrt(h)
- gen x10 = x1/sqrt(h)
- gen x20 = x2/sqrt(h)
- gen x30 = x3/sqrt(h)
- gen x40 = x4/sqrt(h)
- gen state0 = state/sqrt(h)
- gen ccc = 1/sqrt(h)
- reg y0 x10 x20 x30 x40 state0 ccc , nocon
- estat imtest , white
reg+变量名指的是回归,gen lnu2 = ln(u^2) 对ln(u^2)取对数并命名为lnu2,estat imtest估计结果,white怀特检验


雷达卡



京公网安备 11010802022788号







