I am getting very different coefficients and p-values with STATA and SAS. It would be great to figure out which program is set up wrong.
My sampling weights variable is samp_wt. My cluster variable is sta3n. My binary response is Screened.
STATA:
svyset sta3n [pweight=samp_wt]
svy: logit screened i.group
margins group
SAS:
proc surveylogistic data=mydata;
class screened (ref='no') ;
model screened=group;
cluster sta3n;
weight samp_wt;
run;
My sampling weights variable is samp_wt. My cluster variable is sta3n. My binary response is Screened.
STATA:
svyset sta3n [pweight=samp_wt]
svy: logit screened i.group
margins group
SAS:
proc surveylogistic data=mydata;
class screened (ref='no') ;
model screened=group;
cluster sta3n;
weight samp_wt;
run;