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
Related Posts with Reporting column percentages in two way table with Table command (Stata 17)
multiple rows loopDear stata members, I am trying to calculate the squared sum of all dyadic values in a group using …
Analyzing Blinder-Oaxaca decompositionHello, I am fairly new to Stata but have to analyze the Blinder-Oaxaca decomposition. I have been r…
bootstrap for internal validation: how can we calculate the testing performance (the performance of bootstrapmodel in the original sample)?Dear statalist users, I used the following code in internal validation of our model, and get the ne…
Gini coefficientHello Excuse me, what is the meaning [aw = ] of the following statement? ineqdeco per_income [aw = …
Averaging for a subset of observationsHello all, I have dealing with a rather weird problem for the past week and I am hoping you can hel…
Subscribe to:
Post Comments (Atom)
0 Response to Reporting column percentages in two way table with Table command (Stata 17)
Post a Comment