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   Mosi Ifatunji <[email protected]>
To   [email protected]
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
<[email protected]> 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: [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index