UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

SAS FAQ 
How do I analyze survey data with a systematic sample design?

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

page 46 Table 2.6  Estimates from a systematic sample drawn from the Province'91 population using implicit stratification.

NOTE:  The standard error of the total is different from that shown in the text (the text shows 11802).  However, we get the 13627 in each of the statistical packages in which we have tried to recreate this example.

data page44 ;
  input id str clu wt ue91 lab91 smplrat;
  fpc = 32;
  cards;
  1 1 1 4 4123 33786 .25
  2 1 5 4 721 4930 .25
  3 2 9 4 194 2069 .25
  4 2 13 4 129 927 .25
  5 2 17 4 239 2144 .25
  6 2 21 4 61 573 .25
  7 2 25 4 262 1737 .25
  8 2 29 4 166 1615 .25
  ;
run;
proc surveymeans data = page44 sum std;
  weight wt;
  strata str;
  cluster clu;
  var ue91;
run;
The SURVEYMEANS Procedure

            Data Summary

Number of Strata                   2
Number of Clusters                 8
Number of Observations             8
Sum of Weights                    32

               Statistics

Variable             Sum         Std Dev
----------------------------------------
ue91               23580           13627
----------------------------------------

How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California