I'm currently trying to export results of the table command to Excel, to no avail.
I am following the guide from http://www.ats.ucla.edu/stat/stata/faq/tab_nway.htm since I need 3-way (or more) cross-tabulation of medians of another variable (not just frequency).
So for example my code is as follows:
with results:
Things I have tried:
Thanks in advance for any help!
I am following the guide from http://www.ats.ucla.edu/stat/stata/faq/tab_nway.htm since I need 3-way (or more) cross-tabulation of medians of another variable (not just frequency).
So for example my code is as follows:
Code:
table region_alt fav_platform fav_maincat_rev, contents(median orders_per_yr) format(%4.2f)
Code:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | fav_maincat_rev and fav_platform region_al | ------------------ Book_fav_rev ----------------- ------------------- LS_fav_rev ------------------ ------------------- EL_fav_rev ------------------ t | desktop mobile nopref_platform desktop mobile nopref_platform desktop mobile nopref_platform ----------+------------------------------------------------------------------------------------------------------------------------------------------------------------ HCMC | 4.53 6.02 2.99 5.53 6.52 3.99 4.56 5.45 3.48 HN | 5.00 6.19 3.74 5.84 6.64 3.68 4.61 5.62 3.72 Other | 5.38 6.64 3.67 6.26 7.02 4.29 4.87 5.98 3.63 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Stata's "Copy table" feature doesn't work, and merges random columns together
- The tab function has options for "matcell()" and "matrow()" that allows using putexcel (e.g. http://blog.stata.com/2013/09/25/exp...bles-to-excel/), but table doesn't have this
- The table function does not save anything to a matrix to easily export; e.g. using return list only yields a single scalar r(N)
- I couldn't get outreg2 to do n-way cross-tab like this
Thanks in advance for any help!
Comment