全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1024 0
2019-12-07
已知margins, dydx(var)可以在logit回归之后求变量的边际效应。
我现在遇到的问题是,用logit2命令进行回归,也即同时cluster by firm和cluster by year,并不能运行margins命令,显示的结果是"e(sample) does not identify the estimation sample", 下面附上我的代码,请各位高手指教,谢谢!

///回归
logit2 aggressive convictionrate1 size1 lev1 btm1 growth1 Earnings_pre2 vol1  ydum_* inddum_*,fcluster(stkcd) tcluster(fyear)
///边际效应
margins,dydx(convictionrate1 size1 lev1 btm1 growth1 loss3 Earnings_pre vol1) post
///导出结果
outreg2 using mar1.xls,replace drop(inddum_I*) bdec(3) tstat tdec(3) e(N)


二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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