I'm trying to make a table in Excel (via text-file) with tabout for this syntax:
by dichotom: tabstat var1 var2 var3, c(s) s(n mean sd)
where [dichotom] is the variable in the column and [var1-3] is in the rows. Var1-3 are continuous variables
Something like this
Yes | Yes | Yes | No | No | No | Total | |
n | mean | sd | n | mean | sd | n | |
Var1 | |||||||
Var2 | |||||||
... |
I've tried:
svy: tabout var1 var2 var3 dichotom using tab1.txt, sum s(n mean sd)
which is all wrong and not allowed, as I know, but may give a clue on where I'm heading to. (I have not svyset my dataset, don't understand if it's right, and which set)
0 Response to Tabout: Twoway table of means and sd
Post a Comment