Skip to Main Content

  How do I analyze survey data with a one-stage cluster design? | SUDAAN FAQ

This example is taken from Levy and Lemeshow’s
Sampling of Populations.

page 250 simple one-stage cluster sampling
This example uses the tab9_1c data set.

proc descript data = tab9_1c filetype =sas design = wor means totals;
nest _one_  devlpmnt;
totcnt m _zero_;
weight wt1;
var nge65 nvstnrs hhneedvn;
setenv colwidth = 13 decwidth = 5;
run;
Number of observations read    :     40    Weighted count :      100
Denominator degrees of freedom :      1

Variance Estimation Method: Taylor Series (WOR)
by: Variable, One.

------------------------------------------------------
|                 |                  |
| Variable        |                  | One
|                 |                  | 1             |
------------------------------------------------------
|                 |                  |               |
| NGE65           | Sample Size      |      40.00000 |
|                 | Weighted Size    |     100.00000 |
|                 | Total            |     167.50000 |
|                 | SE Total         |       1.93649 |
|                 | Mean             |       1.67500 |
|                 | SE Mean          |       0.01936 |
------------------------------------------------------
|                 |                  |               |
| NVSTNRS         | Sample Size      |      40.00000 |
|                 | Weighted Size    |     100.00000 |
|                 | Total            |      57.50000 |
|                 | SE Total         |       1.93649 |
|                 | Mean             |       0.57500 |
|                 | SE Mean          |       0.01936 |
------------------------------------------------------
|                 |                  |               |
| HHNEEDVN        | Sample Size      |      40.00000 |
|                 | Weighted Size    |     100.00000 |
|                 | Total            |      52.50000 |
|                 | SE Total         |       1.93649 |
|                 | Mean             |       0.52500 |
|                 | SE Mean          |       0.01936 |
------------------------------------------------------

proc ratio data = tab9_1c filetype = sas design = wor;
nest _one_ devlpmnt;
totcnt M _zero_;
weight wt1;
numer nvstnrs;
denom nge65;
setenv colwidth = 13 decwidth = 5;
run;
Number of observations read    :     40    Weighted count :      100
Denominator degrees of freedom :      1

Variance Estimation Method: Taylor Series (WOR)
by: Variable, One.

------------------------------------------------------
|                 |                  |
| Variable        |                  | One
|                 |                  | 1             |
------------------------------------------------------
|                 |                  |               |
| NVSTNRS/NGE65   | Sample Size      |      40.00000 |
|                 | Weighted Size    |     100.00000 |
|                 | Weighted X-Sum   |     167.50000 |
|                 | Weighted Y-Sum   |      57.50000 |
|                 | Ratio Est.       |       0.34328 |
|                 | SE Ratio         |       0.00759 |
------------------------------------------------------

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

page 83 Table 3.6  Estimates from a one-stage
CLU sample (n = 8); the Province’91 population.

data page83;
input id str clu wt ue91 lab91;
fpc = 32;
datalines;
1 1 2 4 666 6016 
2 1 2 4 528 3818 
3 1 2 4 760 5919 
4 1 2 4 187 1448 
5 1 8 4 129 927 
6 1 8 4 128 819 
7 1 8 4 331 2543 
8 1 8 4 568 4011 
;
run;

proc descript data = page83 filetype = sas design = wor;
weight wt;
nest _one_ clu;
var ue91;
totcnt fpc _zero_;
print total setotal deffmean defftotal;
run;
Number of observations read    :      8    Weighted count :       32
Denominator degrees of freedom :      1
Variance Estimation Method: Taylor Series (WOR)
by: Variable, One.

-----------------------------------------------------
|                 |                  |
| Variable        |                  | One
|                 |                  | 1            |
-----------------------------------------------------
|                 |                  |              |
| UE91            | Total            |     13188.00 |
|                 | SE Total         |      3814.89 |
|                 | DEFF Mean #4     |         1.80 |
|                 | DEFF Total #4    |         1.80 |
-----------------------------------------------------
proc ratio data = page83 filetype = sas design = wor;
weight wt;
nest _one_ clu;
totcnt fpc _zero_;
numer ue91;
denom lab91;
run;
Number of observations read    :      8    Weighted count :       32
Denominator degrees of freedom :      1
Variance Estimation Method: Taylor Series (WOR)
by: Variable, One.

---------------------------------------------------
|                 |                  |
| Variable        |                  | One
|                 |                  | 1          |
---------------------------------------------------
|                 |                  |            |
| UE91/LAB91      | Sample Size      |          8 |
|                 | Weighted Size    |      32.00 |
|                 | Weighted X-Sum   |  102004.00 |
|                 | Weighted Y-Sum   |   13188.00 |
|                 | Ratio Est.       |       0.13 |
|                 | SE Ratio         |       0.01 |
---------------------------------------------------
proc descript data = page83 filetype = sas design = wor;
weight wt;
nest _one_ clu;
var ue91;
totcnt fpc _zero_ ;
percentile / median;
run;
Cannot extrapolate to compute confidence limit for 50.00th percentile.
Generating a missing value.
Cannot extrapolate to compute confidence limit for 50.00th percentile.
Generating a missing value.

Number of observations read    :      8    Weighted count :       32
Denominator degrees of freedom :      1
Variance Estimation Method: Taylor Series (WOR)
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       331.00          .            .
-----------------------------------------------------------------------------------
---------------------------------
One                    SE
   Percentiles         Quantile
---------------------------------
1
    50.00                     .
---------------------------------