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
Points of mass in running variable - RDDear all, I am struggling with my RD specification. I am using the rdrobust package from SSC and wh…
Force MergeHi, I am trying to merge household-level data for two different rounds but I keep on getting an erro…
Interpreting interactionDear Statalist, I am running the following regression with an interaction between a categorical edu…
Operations over lagsHello, I need to do some operations over all the lags up to the current value, but the loop I wrote…
ppmlhdfe with disaggregated data: exporter,importer,sector fiexed effectsHello, I am running a gravity model. My data looks something like this Code: use "http://fmwww.bc.…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting Mlogit Marginal Effects to Excel
Post a Comment