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

Re: st: difference of means with complex survey data


From   "David A. Wagstaff" <[email protected]>
To   [email protected]
Subject   Re: st: difference of means with complex survey data
Date   Fri, 02 Jul 2004 13:13:38 -0400

07/02/2004

Robert:  You may want to consider using
    
         lincom
    
       or

         test.

if you are running version 8.  In prior versions of Stata, I
believe that the commands were svylincom and svytest.  You can 
find examples using the two commands are given in the Stata 
help file and in the manual.  Then, there is the excellent UCLA 
site,

http://www.ats.ucla.edu/stat/stata/topics/Survey.htm  .

However, there is not a specific command for conducting a oneway
analysis of variance.
 
David


Robert Bozick wrote:
> 
> Hi Stata-listers -
> 
> I am using a data set with a complex sampling design.  It is a two-stage
> cluster design in which the first level is schools and the second level is
> students.  When estimating regression models with this data set, I have
> typically used the survey procedures to adjust the estimates and the
> standard errors for the stratified cluster design of the sample.   For
> example, something like this:
> 
> svyset [pweight = wt], strata(strata1) psu(school)
> svylogit y x1 x2 x3
> 
> For my current analysis, I want to perform ttests (ttest) and a oneway
> analysis of variance (oneway) to compare the differences between group means
> and group proportions.  There does not appear to be svy commands available
> for this type of analysis.  Is there a way for me in stata to correct the
> standard errors for the stratified cluster design when comparing means and
> proprotions among two groups using the commands ttest and oneway?  Or is
> there another way to do this in stata?
> 
> Thanks in advance!
> Robert
> 
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar � get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> 
> *
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index