Displayed Output |
By default, PROC SURVEYSELECT displays two tables that summarize the sample selection: the "Sample Selection Method" table and the "Sample Selection Summary" table.
If you request sample allocation but no sample selection, PROC SURVEYSELECT displays two tables that summarize the allocation: the "Sample Allocation Method" table and the "Sample Allocation Summary" table.
You can suppress display of these tables by specifying the NOPRINT option.
PROC SURVEYSELECT creates an output data set that contains the units that are selected for the sample. Or if you request sample allocation but no sample selection, PROC SURVEYSELECT creates an output data set that contains the sample size allocation results. (See the sections Sample Output Data Set and Allocation Output Data Set for information about these output data sets.) The procedure does not display the output data set that it creates. Use PROC PRINT, PROC REPORT, or any other SAS reporting tool to display the output data set.
PROC SURVEYSELECT displays the following information in the "Sample Selection Method" table:
Selection Method
Sampling Unit Variables, if you specify a SAMPLINGUNIT statement
Size Measure variable, if you specify a SIZE statement
Size Measure: Number of Observations, if you specify the PPS option in the SAMPLINGUNIT statement and do not specify a SIZE statement
Minimum Size Measure, if you specify the MINSIZE= option
Maximum Size Measure, if you specify the MAXSIZE= option
Certainty Size Measure, if you specify the CERTSIZE= option
Certainty Proportion, if you specify the CERTSIZE=P= option
Strata Variables, if you specify a STRATA statement
Control Variables, if you specify a CONTROL statement
Control Sorting (Serpentine or Nested), if you specify a CONTROL statement
Allocation (Proportional, Neyman, Optimal, or Input), if you specify the ALLOC= option in the STRATA statement
Margin of Error, if you specify the MARGIN= option in the STRATA statement
Confidence Level, if you specify the ALPHA= option in the STRATA statement
PROC SURVEYSELECT displays the following information in the "Sample Selection Summary" table:
Input Data Set name
Sorted Data Set name, if you specify the OUTSORT= option
Random Number Seed
Sample Size or Stratum Sample Size, if you specify the SAMPSIZE=n option
Sample Size Data Set, if you specify the SAMPSIZE=SAS-data-set option
Sampling Rate or Stratum Sampling Rate, if you specify the SAMPRATE=r option
Sampling Rate Data Set, if you specify the SAMPRATE=SAS-data-set option
Minimum Sample Size or Stratum Minimum Sample Size, if you specify the NMIN= option with the SAMPRATE= option
Maximum Sample Size or Stratum Maximum Sample Size, if you specify the NMAX= option with the SAMPRATE= option
Allocation Input Data Set name, if you specify the ALLOC=SAS-data-set option in the STRATA statement
Variance Input Data Set name, if you specify the VAR=SAS-data-set option in the STRATA statement
Cost Input Data Set name, if you specify the COST=SAS-data-set option in the STRATA statement
Selection Probability, if you specify METHOD=SRS, METHOD=SYS, or METHOD=SEQ and do not specify a SIZE statement or a STRATA statement
Expected Number of Hits, if you specify METHOD=URS and do not specify a STRATA statement
Sampling Weight, if you specify an equal probability selection method (METHOD=SRS, METHOD=URS, METHOD=SYS, or METHOD=SEQ) and do not specify a STRATA statement
Number of Strata, if you specify a STRATA statement
Stratum Minimum Sample Size, if you specify the ALLOCMIN= option in the STRATA statement
Number of Replicates, if you specify the REPS= option
Total Sample Size, if you specify a STRATA statement or the REPS= option
Expected Margin of Error, if you specify the STATS option with the MARGIN= option in the STRATA statement
Expected Variance, if you specify the STATS option without the MARGIN= option in the STRATA statement for ALLOC=OPTIMAL or ALLOC=NEYMAN
Total Stratum Costs, if you specify the STATS option with ALLOC=OPTIMAL in the STRATA statement
Output Data Set name
If you specify the NOSAMPLE option in the STRATA statement, PROC SURVEYSELECT allocates the total sample among the strata but does not select the sample. When you specify the NOSAMPLE option, PROC SURVEYSELECT displays the "Sample Allocation Method" table and the "Sample Allocation Summary" table. The "Sample Allocation Method" table includes the following information:
Allocation (Proportional, Neyman, Optimal, or Input)
Margin of Error, if you specify the MARGIN= option in the STRATA statement
Confidence Level, if you specify the ALPHA= option in the STRATA statement
Sampling Unit Variables, if you specify a SAMPLINGUNIT statement
Strata Variables
Selection Method, if you specify the METHOD= option
PROC SURVEYSELECT displays the following information in the "Sample Allocation Summary" table.
Input Data Set name
Allocation Input Data Set name, if you specify the ALLOC=SAS-data-set option in the STRATA statement
Variance Input Data Set name, if you specify the VAR=SAS-data-set option in the STRATA statement
Cost Input Data Set name, if you specify the COST=SAS-data-set option in the STRATA statement
Number of Strata
Stratum Minimum Sample Size, if you specify the ALLOCMIN= option in the STRATA statement
Total Sample Size
Expected Margin of Error, if you specify the STATS option with the MARGIN= option in the STRATA statement
Expected Variance, if you specify the STATS option without the MARGIN= option in the STRATA statement for ALLOC=OPTIMAL or ALLOC=NEYMAN
Total Stratum Costs, if you specify the STATS option with ALLOC=OPTIMAL in the STRATA statement
Allocation Output Data Set name