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, statalist.org is already up and running.


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

Re: st: test proportions svy


From   "Michael N. Mitchell" <Michael.Norman.Mitchell@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: test proportions svy
Date   Wed, 07 Jul 2010 20:08:23 -0700

Greetings

  There are many flavors of -prtest-, but I am going to assume you mean this flavor...

. prtest varname , by(groupvar)

  If so, you can recast this as a logistic regression, such as

. logit varname i.groupvar

  and then you could do this...

. svyset (survey specs here)
. svy : logit varname i.groupvar

I hope that helps,

Michael N. Mitchell
Data Management Using Stata      - http://www.stata.com/bookstore/dmus.html
A Visual Guide to Stata Graphics - http://www.stata.com/bookstore/vgsg.html
Stata tidbit of the week         - http://www.MichaelNormanMitchell.com



On 2010-07-07 7.50 PM, Sebastián Daza wrote:
Hi everyone,
Does anyone know if there is any way to run a proportion test (such as
prtest) using svy specification and weights?
Regards!

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