Specifically. the surveyselect procedure. It prints
The SURVEYSELECT Procedure
Selection Method | Simple Random Sampling |
---|---|
Strata Variable | STRATA |
Input Data Set | FRAME |
---|---|
Random Number Seed | 78070001 |
Stratum Sample Size | 2 |
Number of Strata | 1 |
Total Sample Size | 2 |
Output Data Set | SAMPLESTRATA4 |
Try :
proc sort data=sashelp.class out=class; by sex age; run;
proc surveyselect data=class out=test sampsize=2;
strata sex;
ods output summary=classSummary;
run;
proc print data=classSummary; run;
or simply choose your own seed= option on the proc surveyselect statement.
PG
Try :
proc sort data=sashelp.class out=class; by sex age; run;
proc surveyselect data=class out=test sampsize=2;
strata sex;
ods output summary=classSummary;
run;
proc print data=classSummary; run;
or simply choose your own seed= option on the proc surveyselect statement.
PG
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.