Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: Svytab subgroup analysis with more than two subgroups


From   Lee Sieswerda <Lee.Sieswerda@tbdhu.com>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Svytab subgroup analysis with more than two subgroups
Date   Mon, 21 Jul 2003 09:31:24 -0400

I'm not sure that I completely understand your problem either, but something
like this:

tab groupvar, gen(group)
gen dichot = (group1==1 | group2==1 | group3==1)
svytab groupvar catvar, subpop(dichot)

would give you a chi-square test for the association between groupvar and
catvar for three out of your six groups. Is that not what you are looking
for?

Lee Sieswerda, Epidemiologist
Thunder Bay District Health Unit
Lee.Sieswerda@tbdhu.com


-----Original Message-----
From: L Allen [mailto:indiananonprofit@hotmail.com] 
Sent: Monday, July 14, 2003 1:56 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Svytab subgroup analysis with more than two subgroups


Dear Statalist,

We have survey data with 39 strata.  We have categorized the respondents 
into 6 groups. This grouping was not used in the sampling design (it is not 
one of our stratifying variables).  We want to do a svytab on 3 of the 6 
groups against responses to a categorical variable; however, the survey 
manual warns us not to us an if restriction to select these three groups 
because it will not produce correct statistics and variance estimates.  
However, the subpop() option does  not appear to meet our needs either 
because we want to test the association among these three groups.  Any 
suggestions on how to proceed would be appreciated.

Richard Clerkin
Ph.D. Student
Indiana Nonprofit Project
Indiana University-Bloomington

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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



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