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 on April 23, and its replacement, is already up and running.

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

Re: st: Using sampling weights in 'tab', 'oneway' and 'anova'

From   Michael Norman Mitchell <>
Subject   Re: st: Using sampling weights in 'tab', 'oneway' and 'anova'
Date   Tue, 09 Mar 2010 16:39:30 -0800

Dear Mosi

It sounds like you might want to use the -svyset- command to specify the survey design elements, and then prefix analysis commands that will take those elements into account with -svy-. For example...

. svyset [pweight=weight2]

and then

. svy: tab q60a race

and for the AVOVA, you can recast it as a regression like this...

. svy: regress q60a i.race
. testparm race

See -help svyset- and -help svy- for more information about these commands.

Hope that is helpful,

Michael N. Mitchell
See the Stata tidbit of the week at...

On 2010-03-09 4.29 PM, Mosi Ifatunji wrote:

I am attempting to run some crosstabs and oneway anovas with data that
is post-stratified by race. I am having a hard time finding the syntax
for this using the help command.

So when I enter:

tab q60a race [pweights=weight2], col m

I am told that "pweights unknown weight type."

When I enter:

  anova q60a race [pweights=weight2]

I am told "weights not allowed"

Any suggestions?

*   For searches and help try:
*   For searches and help try:

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