An unfortunate 'feature' in Stata is that you have to create a single
variable for each sub-pop you wish to analyze. So you need to create a
variable something like
generate byte poordiabetics = pov < 1 & diabetes = 1
for example, and do this for every subpop you wish to analyze. Be careful
of missing values.
Bryan Sayer
Statistician, SSS Inc.
-----Original Message-----
From: karen matsuoka
To: [email protected]
Cc: Sayer, Bryan
Sent: 6/9/03 5:26 PM
Subject: subpops within subpops using svy commands
I would like to conduct a logistic regression using the svylogit command
on a sub-sample of a subsample of a complex survey sample.
I understand that the appropriate way to work with sub-samples with
svy-commands is to use the subpop command. However, Stata seems to allow
only one subpop.
What if I want to look at a subpopulation of a subpopulation (for
example, only individuals with incomes below federal poverty level who
also have diabetes)? If I were to use the subpop command to select those
people with diabetes, and then the "if" command to select only those
people with the income level I am interested in, will that work or will
that throw all of the standard errors off?
Any advice would be greatly appreciated!
---
Karen
____________________________________________________________
Get 25MB of email storage with Lycos Mail Plus!
Sign up today -- http://www.mail.lycos.com/brandPage.shtml?pageId=plus
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/