How can I report column percentages when using Table command in Stata 17?
. webuse auto, clear
(1978 automobile data)
. table rep78 foreign, stat(percent)
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
. webuse auto, clear
(1978 automobile data)
. table rep78 foreign, stat(percent)
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
Comment