Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[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 <[email protected]>
To   [email protected]
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...
http://www.MichaelNormanMitchell.com

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

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?

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index