|
Chapter Contents |
Previous |
Next |
| The SURVEYMEANS Procedure |

where
For a categorical variable
C, let l denote the
number of levels of C, and denote the level values
as c1, c2, ... , cl. Then there are l
indicator variables
associated with these levels.
That is, for level C=ck (k = 1, 2, ... , l), a
y(q)
contains the
values of the indicator variable for the category
C=ck, with the value of observation j in cluster
i of stratum h:

Also, fh denotes the sampling rate for stratum h. You can use the TOTAL= option or the RATE= option to input population totals or sampling rates. If you input stratum totals, PROC SURVEYMEANS computes fh as the ratio of the stratum sample size to the stratum total. If you input stratum sampling rates, PROC SURVEYMEANS uses these values directly for fh. If you do not specify the TOTAL= option or the RATE= option, then the procedure assumes that the stratum sampling rates fh are negligible, and a finite population correction is not used when computing variances.
This notation is also applicable to other sample designs. For example, for a sample design without stratification, you can let H=1; for a sample design without clusters, you can let mhi=1 for every h and i.
Suppose that you want to calculate the ratio of variable Y over variable X. Let xhij be the value of variable X for the jth member in cluster i in the hth stratum.
The ratio of Y over X is

PROC SURVEYMEANS uses the Taylor series expansion
method to estimate the variance of
the ratio
as




If you specify the keyword CVSUM, PROC SURVEYMEANS computes the coefficient of variation for the estimated total, which is the ratio of the standard deviation of the sum to the estimated total.

|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.