Quantcast
Channel: The Stata Blog - Latest Comments
Viewing all articles
Browse latest Browse all 1128

Re: Export tabulation results to Excel—Update

$
0
0

Hello everyone,

This code generates an excel table for a two-way tabulation with rows added to display the percentages:

sysuse auto, clear
tab2xl q_ccterm precinct using "2_Part_2_Tables_currquest.xlsx", col(2) row(2) column percentage

Is there a way to have the percentages be added in additional columns, rather than in additional rows? Also, is it possible to limit the percentages being exported, so that the relative frequencies displayed are the ones referring to only the column or only the row (but not both)?

Thank you!


Viewing all articles
Browse latest Browse all 1128

Trending Articles