I tried it and had not worked. I went back to basics using the SASHELP data and got it to work. That should help me find out what is going on. Just sharing that code. Once I figure it out, I'll share it. Data Mybweight;
set sashelp.bweight;
run;
proc sort Data=Mybweight;
by MomEdLevel;
run;
proc boxplot data = Mybweight;
plot Weight * MomEdLevel;
run;
/* create a set for strata totals for surveymeans */
data strattot;
input MomEdLevel _total_;
cards; /* indicates that datalines follow */
0 17449
1 12129
2 12449
3 7973
;
proc surveymeans data=Mybweight total = strattot nobs mean sum clm clsum ;
stratum MomEdLevel ;
var Weight ;
run;
proc surveyselect data=mybweight out=srssamplebwt method=srs n=100 ;
run;
proc surveyselect data=mybweight out=propsamplebwt method=srs samprate=(0.4,0.25,0.25,0.1) seed=91118;
strata MomEdLevel;
run;
proc print data=propsamplebwt(obs=10);
run;
proc freq data=propsamplebwt;
TABLES MomEdLevel;
run;
... View more