Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: survey analysis : three-way table and use of "subpop"

From   <redacted>
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)

 I want to produce this table.  This table looks like a three-way table.

	              Prevalence	                          Prevalence
	                  Male	                           Female
              	Malay	Mon malay	Malay	Non malay



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


*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index