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 at the end of May, and its replacement, statalist.org 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   Mosi Ifatunji <ifatunji@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Using sampling weights in 'tab', 'oneway' and 'anova'
Date   Tue, 9 Mar 2010 18:59:02 -0600

This worked!

Thanks!

Mosi

On Tue, Mar 9, 2010 at 6:39 PM, Michael Norman Mitchell
<Michael.Norman.Mitchell@gmail.com> wrote:
> 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/
>



-- 
Mosi A. Ifatunji, Ph.D. Candidate
ASA Pre-Doctoral Fellow
University of Illinois at Chicago
Department of Sociology (MC 312)
1007 West Harrison Street
Chicago, Illinois 60607-7140
Phone: (312) 607-2825
Email: mosi@ifatunji.com
Web: http://www.uic.edu/depts/soci/
http://blackyouthproject.uchicago.edu/
http://www.2008andbeyond.com/
http://www.ifatunji.com/

"Power concedes nothing without a demand."
                          - Frederick Douglass, 1857

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index