# The SURVEYMEANS Procedure

#### Domain Statistics

When you use a DOMAIN statement to request a domain analysis, the procedure computes the requested statistics for each domain.

For a domain D, let be the corresponding indicator variable:

Let

The requested statistics for variable y in domain D are computed by using the new weights v.

##### Domain Mean

The estimated mean of y in the domain D is

where

The variance of is estimated by

where, if , then

and if , then

##### Domain Total

The estimated total in domain D is

and its estimated variance is

where, if , then

and if , then

##### Domain Ratio

The estimated ratio of Y to X in domain D is

and its estimated variance is

where, if , then

and if , then