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)
Three-tier Multi-Level Model: violation of the assumptions of normality and heteroscedasticity Dear colleagues, I am working with educational data. To do so, I am using the classic three-level h…
How to set up a time-dependent Cox model in Stata?Hello everyone, I need to conduct an analysis, but the exposure can occur after the origin time. I h…
tvgc - time-varying granger causalityHow can I solve this error in Stata? tvgc_cv(): 3499 mm_quantile() not found <istmt>: - funct…
Lasso for selection of variables and running logit regression using selected variables in lassoHi all, Can someone help me please, I am assessing the impact of income(X1) on economic growth (Y) b…
Geocoding in StataI have address variable (~700k observations) and I would like to get latitude and longitude of the a…
Subscribe to:
Post Comments (Atom)
0 Response to Reporting column percentages in two way table with Table command (Stata 17)
Post a Comment