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

From |
Steven Samuels <sjhsamuels@earthlink.net> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: svy and pweight postestimation tools |

Date |
Sun, 23 Nov 2008 12:13:01 -0500 |

-Steve On Nov 23, 2008, at 10:40 AM, Carissa Moffat Miller wrote:

Steve and Joao, Thank you for your suggestions and the information. I hadfound the goodness of fit measure do file from your discussions(svylogitgof)and thought there might be something similar for the estat clas orresiduals for svy.All I was trying to say in my note is that the strata andPSUs account for so little difference in the outcome that if itwere possibleto run residuals or classification tables using just pweights, Iwanted to keepthat option open. Such as:xi: logistic aepart i.agecat i.Incomequ i.HIGHEDUC female[pweight=FAWT]But it appears that I will have the same issues. Thank you so much for your responses and help. CarissaDate: Sun, 23 Nov 2008 11:42:05 -0300 From: jricardofl@gmail.com To: statalist@hsphsun2.harvard.edu Subject: Re: st: svy and pweight postestimation tools Dear Steve, I think that the option -predicit- with -residuals- is not valid in Stata 10.1 too. *****begin example******* webuse nhanes2f svyset psuid [pweight=finalwgt], strata(stratid) svy: logistic diabetes sex race age predict r, residuals ******end example******* Please Steve, what is your opinion about her note: "(Note: The strata and PSUs, when analyzed separately, provide design effects almost equal to 1 so the effects in my model are almost entirely from the weighting. So, Icould get results -except for standard errors - using just theweights.)"This make sense for you? Thanx and Best Regards, Joao Lima 2008/11/22 Steven Samuels :-- Carissa:-help logistic postestimation- will show you which commands areavailableafter -svy: logistic-. The -esttat clas- command is not one ofthem inStata 9 or 10. -predict- with a -residuals- option is valid inStata 10.1but not in Stata 9. You _can_ compute your own weighted survey -linktest-of fit. predict hat, xb gen hat2 = hat*hatsvy: logistic aepart hat hat2 //link test is the significanceof phat2You can also construct ROC Curves. Use -logistic- with fweights,the surveyweights rounded to the nearest integer. See the thread at:http://www.stata.com/statalist/archive/2007-08/msg00739.html#_jmp0_ .-Steve On Nov 21, 2008, at 11:45 AM, Carissa Moffat Miller wrote:StataList:I am conducting logistic regression for a complex survey designusingStata version 9. I have found in your past discussions and theuser manualsthat many postestimation tests are not appropriate with svycommands. I havenot found discussion on classification tables and residuals andhave beenunable to get the following commands to work either with an svycommand orby just using the pweights in Stata.I have been able to get these to work in another softwareprogram usingthe weights, but I'm concerned it isn't appropriately applied.Can someonetell me: 1) if these tests are appropriate with complex surveydata or justpweights, and 2) if so,what are the commands or where would Ifind them? or3) if not appropriate, a reference I might cite?(Note: The strata and PSUs, when analyzed separately, providedesigneffects almost equal to1 so the effects in my model are almost entirely from theweighting. So, Icould get results -except for standard errors - using just theweights.)Cheers, Carissa Syntax and error messages: svyset APSU [pweight=FAWT], strata (ASTRATUM)xi: svy: logistic aepart i.agecat i.Incomequ i.HIGHEDUC employedfemaleurban estat clas {ERROR}: invalid subcommand clas predict r, residuals summarize r, detail {ERROR}: option residuals not allowed * * 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/* * 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/-- ---------------------------------------- Joao Ricardo Lima, D.Sc. Professor UFPB-CCA-DCFS Fone: +553138923914 Skype: joao_ricardo_lima ---------------------------------------- * * 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/* * 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/

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

**References**:**st: svy and pweight postestimation tools***From:*Carissa Moffat Miller <carissamiller@vandals.uidaho.edu>

**Re: st: svy and pweight postestimation tools***From:*Steven Samuels <sjhsamuels@earthlink.net>

**Re: st: svy and pweight postestimation tools***From:*"Joao Ricardo F. Lima" <jricardofl@gmail.com>

**RE: st: svy and pweight postestimation tools***From:*Carissa Moffat Miller <carissamiller@vandals.uidaho.edu>

- Prev by Date:
**Re: st: svy and pweight postestimation tools** - Next by Date:
**st: multiple comparison after kruskall wallis test** - Previous by thread:
**RE: st: svy and pweight postestimation tools** - Next by thread:
**Re: st: svy and pweight postestimation tools** - Index(es):

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