Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: survey analysis : three-way table and use of "subpop"
From
<redacted>
To
[email protected]
Subject
st: survey analysis : three-way table and use of "subpop"
Date
Wed, 21 Sep 2011 11:55:17 +0800
Hi, I need help with svy analysis. I have 4 variables:
1) Diseased: yes=1 old=0
2) Gender: male=1 female=0
3) Age: young=1 old=0
4) Race: Malay=1 non-Malay=0
My svy command is :
Svyset ebid [weight=weight4], strata(strata) fpc(fpc)
Question:
I want to produce this table. This table looks like a three-way table.
==============================================================
Prevalence Prevalence
Male Female
Malay Mon malay Malay Non malay
Agegp
-young
-old
==============================================================
In a normal tabulate command, I can use "bysort gender: tabulate race age"
but in svy command, how can I do this? Should I use “subpop” command,
one time for male and the other time for female? will that be valid?
Are there any other options?
Svy, subpop(?): tab race age diseased
====
Thank you
<redacted>
<redacted>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/