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
Stata commmands to analyze data where each record contains monthly totals: aggregate data problem but not really a wide to long solutionHi, I have some health centre data from Africa where each record consists of fields that represent …
Dummy VariableHi, So I created a dummy variable by the following code: gen YearGroup = 0 replace YearGroup = 1 i…
Converting data to numericHi All, I have the following dataset: Code: * Example generated by -dataex-. To install: ssc ins…
How to handle missing data?Hi all, I am investigating health disparities in some Sub-Saharan Africa countries. Ethnicity is one…
PVAR irfDear All, I'm running panel var on two datasets and i want to compare their irf graphs. i want to pu…
Subscribe to:
Post Comments (Atom)
0 Response to Outreg2: export table with marginal effect, standard error and p-value
Post a Comment