| 信息简介: |
目录
用Stata 做面板数据模型 1
数据表结构 1
1.混合估计模型 10
reg cp ip 10
2.个体固定效应模型: 10
tsset id year 10
xtreg cp ip, fe 11
3.时刻固定效应模型: 11
. xi: reg cp ip i.year 11
4时刻个体固定效应模型 13
xi: xtreg cp ip i.year, fe 13
5.随机效应模型 14
xtreg cp ip,re 14
xttest0 14
6.回归系数不同的面板数据模型 15
by id: reg cp ip 15
7.再送一个Hausman检验得了 16
xtreg cp ip, fe 16
est store fixed 16
xtreg cp ip, re 16
hausman fixed 16
|