The SURVEYSELECT Procedure

Example 117.2 PPS Selection of Two Units per Stratum

(View the complete code for this example.)

This example describes hospital selection for a survey by using PROC SURVEYSELECT. A state health agency plans to conduct a statewide survey of a variety of different hospital services. The agency plans to select a probability sample of individual discharge records within hospitals by using a two-stage sample design. First-stage units are hospitals, and second-stage units are patient discharges during the study period. Hospitals are stratified first according to geographic region and then by rural/urban type and size of hospital. Two hospitals are selected from each stratum with probability proportional to size.

The data set HospitalFrame contains all hospitals in the first geographical region of the state:

data HospitalFrame;
   input Hospital$ Type$ SizeMeasure @@;
   if (SizeMeasure < 20) then Size='Small ';
      else if (SizeMeasure < 50) then Size='Medium';
      else Size='Large ';
   datalines;
034 Rural  0.870   107 Rural  1.316
079 Rural  2.127   223 Rural  3.960
236 Rural  5.279   165 Rural  5.893
086 Rural  0.501   141 Rural 11.528
042 Urban  3.104   124 Urban  4.033
006 Urban  4.249   261 Urban  4.376
195 Urban  5.024   190 Urban 10.373
038 Urban 17.125   083 Urban 40.382
259 Urban 44.942   129 Urban 46.702
133 Urban 46.992   218 Urban 48.231
026 Urban 61.460   058 Urban 65.931
119 Urban 66.352
;

In the SAS data set HospitalFrame, the variable Hospital identifies the hospital. The variable Type equals 'Urban' if the hospital is located in an urban area, and 'Rural' otherwise. The variable SizeMeasure contains the hospital’s size measure, which is constructed from past data on service utilization for the hospital together with the target sampling rates for each service. This size measure reflects the amount of relevant survey information expected from the hospital. For information about this type of size measure, see Drummond et al. (1982). The value of the variable Size is 'Small', 'Medium', or 'Large', depending on the value of the hospital’s size measure.

The following PROC PRINT statements display the data set Hospital Frame and produce Output 117.2.1:

title1 'Hospital Utilization Survey';
title2 'Sampling Frame, Region 1';
proc print data=HospitalFrame;
run;

Output 117.2.1: Sampling Frame

Hospital Utilization Survey
Sampling Frame, Region 1

ObsHospitalTypeSizeMeasureSize
1034Rural0.870Small
2107Rural1.316Small
3079Rural2.127Small
4223Rural3.960Small
5236Rural5.279Small
6165Rural5.893Small
7086Rural0.501Small
8141Rural11.528Small
9042Urban3.104Small
10124Urban4.033Small
11006Urban4.249Small
12261Urban4.376Small
13195Urban5.024Small
14190Urban10.373Small
15038Urban17.125Small
16083Urban40.382Medium
17259Urban44.942Medium
18129Urban46.702Medium
19133Urban46.992Medium
20218Urban48.231Medium
21026Urban61.460Large
22058Urban65.931Large
23119Urban66.352Large


The following PROC SURVEYSELECT statements select a probability sample of hospitals from the HospitalFrame data set by using a stratified design with PPS selection of two units from each stratum:

title1 'Hospital Utilization Survey';
title2 'Stratified PPS Sampling';
proc surveyselect data=HospitalFrame method=pps_brewer
                  seed=48702 out=SampleHospitals;
   size SizeMeasure;
   strata Type Size notsorted;
run;

The STRATA statement names the stratification variables Type and Size. The NOTSORTED option specifies that observations with the same STRATA variable values are grouped together but are not necessarily sorted in alphabetical or increasing numerical order. In the HospitalFrame data set, Size = 'Small' precedes Size = 'Medium'.

In the PROC SURVEYSELECT statement, the METHOD=PPS_BREWER option requests sample selection by Brewer’s method, which selects two units per stratum with probability proportional to size. The SEED= option specifies 48702 as the initial seed for random number generation. The SIZE statement names SizeMeasure as the size measure variable. It is not necessary to specify the sample size in the N= option because Brewer’s method selects two units from each stratum.

Output 117.2.2 displays the output from PROC SURVEYSELECT. A total of 8 hospitals are selected from the 4 strata. The data set SampleHospitals contains the selected hospitals.

Output 117.2.2: Sample Selection Summary

Hospital Utilization Survey
Stratified PPS Sampling

The SURVEYSELECT Procedure

Selection MethodBrewer's PPS Method
Size MeasureSizeMeasure
Strata VariablesType
 Size

Input Data SetHOSPITALFRAME
Random Number Seed48702
Stratum Sample Size2
Number of Strata4
Total Sample Size8
Output Data SetSAMPLEHOSPITALS


The following PROC PRINT statements display the sample hospitals and produce Output 117.2.3:

title1 'Hospital Utilization Survey';
title2 'Sample Selected by Stratified PPS Design';
proc print data=SampleHospitals;
run;

Output 117.2.3: Sample Hospitals

Hospital Utilization Survey
Sample Selected by Stratified PPS Design

ObsTypeSizeHospitalSizeMeasureSelectionProbSamplingWeightJtSelectionProb
1RuralSmall1655.8930.374472.670460.22465
2RuralSmall14111.5280.732541.365110.22465
3UrbanSmall19010.3730.429672.327390.25370
4UrbanSmall03817.1250.709341.409750.25370
5UrbanMedium08340.3820.355402.813740.08953
6UrbanMedium13346.9920.413572.417950.08953
7UrbanLarge02661.4600.634451.576170.31940
8UrbanLarge11966.3520.684951.459960.31940


The variable SelectionProb contains the selection probability for each hospital in the sample. The variable JtSelectionProb contains the joint probability of selection for the two sample hospitals in the same stratum. The variable SamplingWeight contains the sampling weight component for this first stage of the design. The final-stage weight components, which correspond to patient record selection within hospitals, can be multiplied by the hospital weight components to obtain the overall sampling weights.