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
HCUP KID 2016 DataPlease, I'm having trouble using the STATA upload program for my KID 2016 dataset. I have a STATA15 …
RDD GeographicHello! I'd like to work with RDD geographic, but i don't find nothing in stata' help about the prog…
Is there a way to export a codebook to excel with notes included?I am using the codebookout module to export a data set's codebook to excel. That said, it doesn't ex…
mixed effects model with random slopes for categorical variablesDear all I am trying to estimated the effect of positive and negative changes in income on GHQ (wel…
looking for helpDear all, I am doing my thesis using ivregress 2sls. I face problem to export the first stage result…
Subscribe to:
Post Comments (Atom)
0 Response to Creating super tables of proportions in STATA
Post a Comment