The SURVEYSELECT Procedure

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.

If you request random assignment, the procedure displays the "Random Assignment" 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. If you request random assignment, the procedure creates an output data set that contains the assignments. For more information, see the sections Sample Output Data Set, Allocation Output Data Set, and Random Assignment Output Data Set. 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.

Sample Selection Method Table

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

Sample Selection Summary Table

PROC SURVEYSELECT displays the following information in the "Sample Selection Summary" table:

Sample Allocation Method Table

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

  • Frequency Variable

  • Selection Method, if you specify the METHOD= option

Sample Allocation Summary Table

PROC SURVEYSELECT displays the following information in the "Sample Allocation Summary" table.

Random Assignment Table

If you specify the GROUPS= option, PROC SURVEYSELECT displays the following information in the "Random Assignment" table:

  • Input Data Set name

  • Strata Variables, if you specify a STRATA statement

  • Random Number Seed

  • Number of Groups

  • Total Number of Units, if you specify the GROUPS=n option and do not specify a STRATA statement

  • Number of Units per Group, if you specify the GROUPS=n option and do not specify a STRATA statement

  • Number of Replicates, if you specify the REPS= option

  • Number of Strata, if you specify a STRATA statement

  • Total Number of Groups, if you specify a STRATA statement or the REPS= option

  • Output Data Set name