SAS FAQ How do I analyze survey data with a simple random sample design?
This example is taken from Levy and Lemeshow’s Sampling of Populations. page 53 simple random sampling NOTE: The n on the proc surveymeans statement indicates that there are 773 primary sampling units (PSUs). Because this is simple random sampling, the elements and the PSUs are the same thing. Hence, 773 is the population total from which the sample was drawn. This example uses the momsag data set. proc surveymeans data = momsag n = 773 mean sum std; weight weight1; var momsag; run; The SURVEYMEANS Procedure- Data Summary Number of Observations 25 Sum of Weights 773.000002 Statistics Std Error Variable Mean of Mean Sum Std Dev ———————————————————————— MOMSAG 0.920000 0.054475 711.160002 42.108894 ———————————————————————— This example is taken from Lehtonen and Pahkinen’s Practical Methods for Design and Analysis of Complex Surveys. page 29 Table 2.4 Estimates from a simple random sample draw