已知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)


雷达卡


京公网安备 11010802022788号







