全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
879 0
2023-03-18
** tobit 模型分析
** 设定模型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

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群