|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Percentage as dependent variable, using -svy-
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/