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)
Count frequency of namesDear All, Suppose that I have this dataset, Code: * Example generated by -dataex-. To install: ssc…
how to get the coefficient of interation term after regression Code: xtset area_id year xtreg y i.dummy##c.GDP income xoijj i,year, fe r After running this r…
Problem with dummy variable in PMG modelHello, I'm running PMG model with one dummy veritable of (0 or 1) (xtpmg d.y d.x1 d.x2 d.x3 d.x4 DU…
Finding the sum of a variable within an ID is not workingHi all, For the following example data set below, I am trying to create a new variable (let's call …
how to graph pie like this?Array As above, how to draw the concentric circles? Code: * Example generated by -dataex-. To ins…
Subscribe to:
Post Comments (Atom)
0 Response to Reporting column percentages in two way table with Table command (Stata 17)
Post a Comment