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
Importing an Imputed FileHi everyone, I created an Imputed version of my data on a PC machine using Stata/SE. I've now opene…
Replace odd commas by spaces in a variableHi, Thanks in advance for your help. Maybe, what I am going to ask is an easy question for many of y…
Mark latest observation with unbalanced paneldataI want to mark the latest observation in an unbalanced dataset with panel data Timevaribel: t (vari…
Cartesian product of ColumnsDear Statalisters, I have 2 sets Set_1= {HH, HT, TT, TH} and Set_2 = {1, 2, 3, 4}. These are the in…
Need help with sampling processHello, I am working with a dataset with merged data from 2 survey rounds (2005 & 20011). The f…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting Mlogit Marginal Effects to Excel
Post a Comment