Example 9.10 Selecting Equal-Sized Samples from Different Groups
Goal
Randomly select the same number of observations from different groups in a data set. Do not allow an observation to be selected more than once. This method is commonly referred to as stratified random sampling without replacement and with equal allocation.
Additionally, create replicate samples by repeating the process of randomly selecting the same number of observations from different groups.
Examples 9.9 and 9.10 show different methods of sampling observations from data sets.
Example Features
Featured Step | PROC SURVEYSELECT |
Featured Step Options and Statements | PROC SURVEYSELECT statement options: METHOD=SRS, OUT=, REPS=, SAMPSIZE=, SEED= STRATA statement |
Related Technique ... |
Get Combining and Modifying SAS® Data Sets: Examples Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.