Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Stata coding to SAS


From   K C Wong <[email protected]>
To   [email protected]
Subject   st: Stata coding to SAS
Date   Sat, 12 Jan 2013 16:36:53 +1300

Hope you all had a great Christmas and New Year.
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;

Your help is greatly appreciated. Have a good day.
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index