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; datalines; 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 descript data = page44 filetype = sas design = wr totals; weight wt; nest str; var ue91; run;
Number of observations read : 8 Weighted count : 32 Denominator degrees of freedom : 6 Variance Estimation Method: Taylor Series (WR) by: Variable, One. ----------------------------------------------------- | | | | Variable | | One | | | 1 | ----------------------------------------------------- | | | | | UE91 | Sample Size | 8 | | | Weighted Size | 32.00 | | | Total | 23580.00 | | | SE Total | 13627.19 | | | Mean | 736.88 | | | SE Mean | 425.85 | -----------------------------------------------------
proc ratio data = page44 filetype = sas design = wr; weight wt; nest str; numer ue91; denom lab91; setenv colwidth = 15; setenv decwidth = 5; run;
Number of observations read : 8 Weighted count : 32 Denominator degrees of freedom : 6 Variance Estimation Method: Taylor Series (WR) by: Variable, One. -------------------------------------------------------- | | | | Variable | | One | | | 1 | -------------------------------------------------------- | | | | | UE91/LAB91 | Sample Size | 8.00000 | | | Weighted Size | 32.00000 | | | Weighted X-Sum | 191124.00000 | | | Weighted Y-Sum | 23580.00000 | | | Ratio Est. | 0.12338 | | | SE Ratio | 0.00385 | --------------------------------------------------------
proc descript data = page44 filetype = sas design = strwr; weight wt; nest str; var ue91; percentile / median; run;
Number of observations read : 8 Weighted count : 32 Denominator degrees of freedom : 6 Variance Estimation Method: Taylor Series (STRWR) by: Variable, One, Percentiles. for: Variable = UE91. ----------------------------------------------------------------------------------- One Sample Weighted Lower 95% Upper 95% Percentiles Size Size Quantile Limit Limit ----------------------------------------------------------------------------------- 1 50.00 8 32.00 194.00 83.82 248.65 ----------------------------------------------------------------------------------- --------------------------------- One SE Percentiles Quantile --------------------------------- 1 50.00 33.68 ---------------------------------