Skip to Main Content

  How do I analyze survey data with a two-stage cluster with equal probabilities design? | SAS FAQ

This example is taken from Lehtonen and Pahkinen’s
Practical Methods for Design and Analysis of Complex Surveys.

page 88 Table 3.8  Estimates from a two-stage CLU sample (n = 8); the
Province’91 population.

data page88;
  input id str clu wt ue91 lab91 fpc1 fpc2 smplrat;
  cards;
  1 1 2 4 760 5919 8 4 .5
  2 1 2 4 187 1448 8 4 .5
  3 1 3 4 767 5823 8 4 .5
  4 1 3 4 142 675 8 4 .5
  5 1 4 4 94 831 8 4 .5
  6 1 4 4 98 545 8 4 .5
  7 1 7 4 262 1737 8 4 .5
  8 1 7 4 219 1330 8 4 .5
  ;
run;
proc surveymeans data = page88 r = .5 sum std;
  weight wt;
  cluster clu;
  strata str;
  var ue91 lab91;
run;
The SURVEYMEANS Procedure

            Data Summary

Number of Strata                   1
Number of Clusters                 4
Number of Observations             8
Sum of Weights                    32

               Statistics

Variable             Sum         Std Dev
----------------------------------------
ue91               10116     2045.755932
lab91              73232           16000
----------------------------------------