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
Related Posts with Outreg2: export table with marginal effect, standard error and p-value
Question on oneway anova and pairwise comparisonRecently, I'm conducting research, we would like to see some difference between different national i…
Accident Count Panel Data ModelHi, I am new to Stata and this forum. I am trying to find the effect of changes in fuel price on ro…
Replacing multiple values, with the same conditionHi All, Although the -replace- command is fairly intuitive, it is sometimes a bit tricky. Specific…
Visualizing an interaction termDear Statalist, I have just recently started using Stata, so this might be a rookie question. I ha…
New version of vallabsave on SSCThanks as always to Kit Baum, a new versionn of the vallabsave package is now available for download…
Subscribe to:
Post Comments (Atom)
0 Response to Outreg2: export table with marginal effect, standard error and p-value
Post a Comment