I am trying to export marginal effects output for mlogit into stata. the commands i used are as follows:
qui mlogit loan_source ib5.asset_class ib4.caste ib3.hh_type ib6.hh_head_educ i.year i.female_head i.irrigated_land ib21.state if rural == 1 & cultivator == 1 [pw = WEIGHT_SC], rrr cluster(Vill_Blk_) base(1)
margins, dydx(*) post
outreg2 using margins_AC.xls, cti("Loan Source for Farmers-By Asset-Class") label append
When i use the marginal effects command as given above, the result in excel is arranged in a wide format. ie all the variables that would normally appear in rows end up on the columns; so literally i have some 20 columns in the result output. Could someone advise how i can make them appear in the usual format, in the rows?
Related Posts with Exporting Mlogit Marginal Effects to Excel
Parallel trend assumption in Diff and Diff methodHi, Currently, I am working with CPS monthly microdata from https://ceprdata.org/cps-uniform-dat.../…
How to convert numeric date variable?Current format for date is %td and numeric The date is shown as 04feb2017 and I want to change it t…
How margins handles the atmeans optionAsking my students to use the margins command after mlogit for computing marginal effects (using dyd…
Predict after xtlogitI am using xtlogit with fe options. I notice that the results drop some observations due to all posi…
egen mean_var = mean(var), by(xx & xx)Hi How do I generate a mean variable sorted by both year and origin? I want to generate the mean v…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting Mlogit Marginal Effects to Excel
Post a Comment