** 设定模型id数量和年份
xtset id year
** 进行固定效应OLS估计并保存结果
xtreg efep logecsc inst loghure gspc,fe r
est sto ols_01
** 进行随机效应OLS估计并保存结果
xtreg efep logecsc inst loghure gspc,re r
est sto ols_02
** 混合Tobit估计并保存结果
tobit efep ecsc inst loghure gspc,ll(0) ul(1) nolog vce(cluster id)
est sto hh_tobit
** 随机效应Tobit估计并保存结果
xttobit efep ecsc inst loghure gspc,ll(0) ul(1) nolog tobit
est sto ran_tobit
** 将OLS,混合Tobit和随机效应Tobit的估计结果进行比较
esttab ols_01 ols_02 hh_tobit ran_tobit,mtitles se star(* 0.1 ** 0.05 *** 0.001)
** 估计结果导出
asdoc xtreg efep ecsc inst enre hure,fe r


雷达卡


京公网安备 11010802022788号







