- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input double(ln_income certified hhead_age hhead_age2 hhead_gender labor_ratio education_per education_per2) int health
- 8.476579508530941 . . . . .5 2.25 5.0625 .
- 8.293136723520464 . . . . .6666666666666666 4 16 5
- 9.371268024390902 2 60 3600 1 .6666666666666666 4 16 1980
- 9.286467732363734 . . . . .6 6 36 3
- 10.564154799752378 . 63 3969 1 .6 5.4 29.160000000000004 4
- 9.026537696895206 2 . . . .6 5.4 29.160000000000004 .
- 7.13966033596492 . . . . 0 0 0 4
- 9.234662184121248 . . . . 0 0 0 5
- 8.764209478536243 2 63 3969 1 0 0 0 .
- 8.862341963516347 . . . . 1 4.8 23.04 .
- end
duplicates drop id year, force
gen _mi_miss=(ln_income==.)
mi unset
drop mi_miss
xtset id year
之后开始做回归,我的stata code如下:
reg ln_income certified hhead_age hhead_gender labor_ratio ///
education_per education_per2 health politics ///
noagri_hukou_ratio noagri_ratio experience_per experience_per2 ///
operational_capital policy credit_per non_operational_capital ///
landarea_per financialassets, robust
est store m1
est table m1, b(%6.3f) star(0.1 0.05 0.01)
outreg2 using out01.doc, replace tstat bdec(3) tdec(2) e(F) ctitle(OLS)
xtreg ln_income certified hhead_age hhead_age2 hhead_gender labor_ratio ///
education_per education_per2 health politics ///
noagri_hukou_ratio noagri_ratio experience_per experience_per2 ///
operational_capital policy credit_per non_operational_capital ///
landarea_per financialassets, fe robust
est store m_fe_robust
est table m_fe_robust, b(%6.3f) star(0.1 0.05 0.01) //确权为负,且全部显著
outreg2 using out01.doc, append tstat bdec(3) tdec(2) ///
e(F) ctitle(Fixed Effects) addtext(Household FE, YES)
xtreg ln_income certified hhead_age hhead_age2 hhead_gender labor_ratio ///
education_per education_per2 health politics ///
noagri_hukou_ratio noagri_ratio experience_per experience_per2 ///
operational_capital policy credit_per non_operational_capital ///
landarea_per financialassets i.year, fe robust
est store m_fe_robust_year
est table m_fe_robust_year, b(%6.3f) star(0.1 0.05 0.01) //确权为负,且全部显著
outreg2 using out01.doc, append tstat bdec(3) tdec(2) e(F) ctitle(Fixed Effects) ///
addtext(Household FE, YES,Year FE,YES)
xtreg ln_wage_income certified hhead_age hhead_gender labor_ratio ///
education_per education_per2 health politics ///
noagri_hukou_ratio noagri_ratio experience_per experience_per2 ///
operational_capital policy credit_per non_operational_capital ///
landarea_per financialassets, fe robust
est store m_1_fe_robust
est table m_*, b(%6.3f) star(0.1 0.05 0.01)
另外,我也试过用另一个reghdf命令去写:
reghdfe ln_income certified hhead_age hhead_age2 hhead_gender labor_ratio ///
education_per education_per2 health politics ///
noagri_hukou_ratio noagri_ratio experience_per experience_per2 ///
operational_capital policy credit_per non_operational_capital ///
landarea_per financialassets, absorb(year id) vce(robust)
得到的结果和xtreg命令并不相同,十分困惑,肯请高手赐教!


雷达卡




京公网安备 11010802022788号







