Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Percentage as dependent variable, using -svy-


From   jpitblado@stata.com (Jeff Pitblado, StataCorp LP)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Percentage as dependent variable, using -svy-
Date   Thu, 28 Jun 2007 16:17:34 -0500

Christina M Daw <Christina.M.Daw@uth.tmc.edu> mentioned that the -svy- prefix
does not support the -glm- command, specifically she wrote

> ... the svy commands do not support the fractional response variable glm
> regression method from Papke and Wooldridge that has been discussed in
> earlier posts.  

In Stata 10, -glm- supports the -svy- prefix.

In Stata 9, Christina can use -glm- with -iweight-s followed by -suest- with
the -svy- option.  Here is an example,

***** BEGIN:
webuse nhanes2f
svyset psuid [pw=finalwgt], strata(stratid)
glm loglead age female [iweight=finalwgt]
suest ., svy
***** END:

This will work with any family/link combination that is allowed by the -glm-
command.

--Jeff
jpitblado@stata.com
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/