Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73374

Outreg2: export table with marginal effect, standard error and p-value

$
0
0
I would like to use outreg2 to export result of logistic regression as a .xls file with marginal effect, standard error and p-value using my own dataset. My code did work to export the xls file, but the xls file did not come with standard error and it has only columns of marginal effect and p-value. The below code is to reproduce the issue using other dataset. I'm happy if someone could help me.

use http://www.stata-press.com/data/r7/auto.dta, clear
logit foreign price-gear_ratio, robust
margins, dydx(*) post
outreg2 using "Logit_result.xls", excel replace noaster sideway pvalue noparen


Best,
Keita

Viewing all articles
Browse latest Browse all 73374

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>