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
if [varname] = [values]?Hello, I have a variable, date that is empty. and a series of other date variables that contain dat…
Exogeneity test for nonlinear unbalanced panel with single dummy endogenous explanatory variable using CRE.Hi, I'm essentially following the idea of Dr. Jeff Wooldridge Jeff Wooldridge in trying to test for…
Help with a detailed specification using multiple imputationHello, I am attempting to estimate a model: Code: logit y x1 x2 x3 where x1 is a dummy variable…
Number of parameters in exploratory factor analysisHi everyone. Below is the output of an exploratory factor analysis using the command factor and the …
Test differences in firms that adopted org changeHi / Bonjour, I would like to test firms that adopted organization mgmt. change ( yes or no, 1/0) a…
Subscribe to:
Post Comments (Atom)
0 Response to Creating super tables of proportions in STATA
Post a Comment