Statalist


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

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


From   "Daw, Christina M" <[email protected]>
To   <[email protected]>, <[email protected]>
Subject   RE: st: Percentage as dependent variable, using -svy-
Date   Thu, 28 Jun 2007 16:28:36 -0500

Thank you!  


-----Original Message-----
From: [email protected] on behalf of Jeff Pitblado, StataCorp LP
Sent: Thu 6/28/2007 4:17 PM
To: [email protected]
Subject: Re: st: Percentage as dependent variable, using -svy-
 
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/


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