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
fracregI am using fracreg logit to model a proportion. My data set is a time series. Do I need to test for …
Compounding Panel DataDear all, I am trying to analyse the effect of Incentives on Electric Vehicle adoption (Panel Data)…
Rounding, multiple decimals off and LocalsI have been trying to get the round function to feed some locals that I use to create graphs labels,…
Interpreting the intercept in a logistic regression with multiple factor variablesHi all, I am looking to calculate the odds ratios in a logistic regression where the dependent vari…
Selecting a subset of a large datasetI'm attempting to utilize HSLS:09 data in Stata. However, the entire dataset is too large for my ver…
Subscribe to:
Post Comments (Atom)
0 Response to Outreg2: export table with marginal effect, standard error and p-value
Post a Comment