Statalist


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

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


From   [email protected] (Jeff Pitblado, StataCorp LP)
To   [email protected]
Subject   Re: st: Percentage as dependent variable, using -svy-
Date   Thu, 28 Jun 2007 16:17:34 -0500

Christina M Daw <[email protected]> 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
[email protected]
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index