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)
Use a for-loop to generate dummy variablesI'm having a hard time generating dummy variables using a for loop. I have a variable with some valu…
Generate new variable in a panel taking differencesHello, I am working in stata 15 on windows 10 and I want to create a variable that is the differenc…
Advice on extracting data from regression and exporting into a matrixDear all, I am trying to extract data from a pvar and mold it into a matrix. The output of the pvar…
Doing Merge using rangejoinHello, I am a new member to this forum! Nice to meet you all. I have just went through set of posts…
Mean on a graph pieHello. I have two variable : one is continous, the other is trinary. I want to make a graph pie of t…
Subscribe to:
Post Comments (Atom)
0 Response to Reporting column percentages in two way table with Table command (Stata 17)
Post a Comment