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

# Re: st: ANOVAs and Probability Weights

 From "dstrike1@juno.com" To statalist@hsphsun2.harvard.edu Subject Re: st: ANOVAs and Probability Weights Date Mon, 13 Feb 2012 23:34:22 GMT

```Thank you for your response, Steve! I walked through the syntax you sent me-very helpful.

Now I have a few more questions, but first a few details...In my study there are three distinct sets of schools from which teacher rosters are obtained and, subsequently, teachers are randomly selected for participation.

The first two sets of schools are from the same sector/ master file and differ only by school type; there is no real "strata" per se as all member schools in this group are invited to participate in the survey, although there is some non-response. This group (in its entirety) is representative at the national level only. I have manually coded these schools by type utilizing external data.

The 3rd type of school comes from a much larger file which is representative at the US national, regional and state levels. There are strata identified for this sector.

When I run svy: regress, I do get a population estimate but I am unsure of the actual population which is being represented. Is the number generated legit since there are differences on the stratification? Another constraint I brought into the analysis was a school level criteria of 75% F/Reduced lunch eligibility for inclusion in the Public group...Again, I am unsure of how this is impacted (or impacts) the weighting procedures and the resulting target population.

Any insights would be appreciated.

ANOVA is equivalent to multiple regression on group indicators.

So -svyset- the data with the design information (clusters, strata, weights), and use -svy: reg-.

Note that hypothesis tests are not appropriate if you are interested in describing the particular finite population where the survey was done. For references, see: http://www.stata.com/statalist/archive/2011-09/msg01121.html.
Instead, you can assess differences in means with confidence intervals. In the descriptive setting, get  minimal standard errors by specifying the finite population correction, if non-negligible, in the -svyset- statement.
********************************************
sysuse auto, clear
recode rep78 1/2=3
rename turn psu
svyset psu [pw = weight], strata(foreign)
svy: mean mpg, over(rep78)
// no covariates:
xi: svy: reg mpg i.rep78  // F test
testparm _Irep78*         //same
test _Irep78_4 _Irep78_5 , mtest(sidak)

// with covariates:
xi: svy: reg mpg i.rep78 length
********************************************

Steve
sjsamuels@gmail.com

On Feb 12, 2012, at 8:58 PM, dstrike1@juno.com wrote:

I would like to do some group means tests with a survey data set which includes final and replicate weights.

Could someone please direct me as to how I might perform "weighted" ANOVAs with such a data set using Stata 10.

Kind regards,

Don Stryker

____________________________________________________________
53 Year Old Mom Looks 33
The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried
http://thirdpartyoffers.juno.com/TGL3141/4f386e5a711ea10ce506st01vuc

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

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

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