Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

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


From   Kamarul Imran <kim4597@gmail.com>
To   statalist@hsphsun2.harvard.edu
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

Kamarul
Malaysia

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index