Hi, I have 12 variables labeled treat1 - treat12. All the responses are coded as Y/N. I would like to create a 2X2 of these responses, by admission status (Y/N) and have the admission status as the column variable and all treatments as rows. I attached the STATA example table I am trying to replicate. I am using the code below but getting an error that I have too many variables. Thank you.
[code]
----------------------- copy starting from the next line -----------------------
[CODE]
table treat1 treat2 treat3 treat4 treat5 treat6 treat7 treat8 treat9 treat10 treat11 treat12, contents(freq ) by(admission)
Array
Related Posts with Creating super tables of proportions in STATA
Continuous data with lots of zerosHello I want to analyse a dependent variable (donations) as a function of some variables. The donat…
File pathHello ! I am facing a problem after giving command to include file : . do "C:\Users\GP\AppData\Loc…
Extract coefficients and SE from stored estimatesI am looking for a way of extracting coefficients and standard errors(SE) after storing them. For ex…
graphical markersDear All, I have this graph Code: * Example generated by -dataex-. To install: ssc install dataex c…
Interpretation of the covariance between random intercepts and slopes after mixed (multilevel analysis)Dear all, I am trying to estimate a model with a three-level hierarchical structure using STATA 16’…
Subscribe to:
Post Comments (Atom)
0 Response to Creating super tables of proportions in STATA
Post a Comment