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
First differencing and fixed effects?Dear all, I am working with a cross-section cross-time panel dataset with N = 15 (country) and T = …
Panal Data copying missing characteristic dataHey guys, I'm using unbalenced panal data and want to copy missing values for "date of birth". In t…
Stochastic Frontier Analysis LoopDear Statalist members, I would like to run a SFA loop to get efficiency estimates for a worldwide …
Problem with capture confirm fileI have a folder containing some 70,000 systematically named files which I am going to merge into few…
Advice on interpretation of prtest (two sample test of proportion)Hello everybody, As a student assignment, we are conducting research on how different interventions…
Subscribe to:
Post Comments (Atom)
0 Response to Creating super tables of proportions in STATA
Post a Comment