Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Stas Kolenikov <skolenik@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: st: Stata coding to SAS |
Date | Wed, 16 Jan 2013 09:57:42 -0600 |
Stata's -postweight()- is the target sum of weights for a given poststrata, rather than a weight variable as you specified for SAS. Besides, I am not sure SAS supports poststratification, unlike Stata. -- -- Stas Kolenikov, PhD, PStat (SSC) :: http://stas.kolenikov.name -- Senior Survey Statistician, Abt SRBI :: work email kolenikovs at srbi dot com -- Opinions stated in this email are mine only, and do not reflect the position of my employer On Wed, Jan 16, 2013 at 9:05 AM, Steve Samuels <sjsamuels@gmail.com> wrote: > KC > > You will have a better chance of getting an answer to your question if, > as the FAQ request, you show the results of all commands. > > Also note that the one "rule" on Statalist is to use full names. > If you are professionally known as "KC Wong", then please give your > affiliation. > > Steve > > > Steven Samuels > Consulting Statistician > 18 Cantine's Island > Saugerties, NY 12477 USA > 845-246-0774 > > > On 12 January 2013 KC Wong wrote: > > >> I wish to translate the below Stata coding to SAS and I'm wondering if >> I have the SAS coding right because the result from Stata differs from >> SAS's. >> I'm now using StataIC 11. >> >> Stata: >> svyset _n, poststrata(poststrata) postweight(aweight) >> svy, subpop(european): logistic case i.age_cat i.interviewmethod >> i.status i.deprivation >> >> SAS: >> proc surveylogistic data=bc; >> strata poststrata; >> weight aweight; >> domain european; >> class age_cat(ref="0") interviewmethod(ref="3") deprivation(ref="0") >> / param=ref; >> model case(event="1") = age_cat interviewmethod status deprivation; >> run; > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/