How can I report column percentages when using Table command in Stata 17?
. webuse auto, clear
(1978 automobile data)
. table rep78 foreign, stat(percent)
Array
In the example above percentages are calculated conditional on the marginal totals.
Instead I'd like to calculate percentages by columns, i.e. by Car Origin in the example above.
Can someone explain how the new Table command should be written to report column percentages?
Thank you,
Carlos Lagorio
0 Response to Reporting column percentages in two way table with Table command (Stata 17)
Post a Comment