![]() |
![]() |
The STDIZE Procedure |
WEIGHT Statement |
The WEIGHT statement specifies a numeric variable in the input data set with values that are used to weight each observation. Only one variable can be specified.
The WEIGHT variable values can be nonintegers. An observation is used in the analysis only if the value of the WEIGHT variable is greater than zero.
The WEIGHT variable applies only when you specify the following standardization methods: AGK, EUCLEN, IQR, L, MAD, MEAN, MEDIAN, STD, SUM, and USTD. Note that weights are used for the METHOD=MAD, MEDIAN, or IQR only when PCTLMTD=ORD_STAT is specified; if PCTLMTD=ONEPASS is specified, the WEIGHT statement is ignored.
PROC STDIZE uses the value of the WEIGHT variable to calculate the following statistics:
The sample mean and sample variances are computed as
(sample mean)
(uncorrected sample variances)
(sample variances)
where is the weight value of the
th observation,
is the value of the
th observation, and
is the divisor controlled by the VARDEF= option (see the VARDEF= option for details).
the weighted mean,
the weighted sum,
the weighted uncorrected standard deviation,
the weighted standard deviation,
the weighted Euclidean length, computed as the square root of the weighted uncorrected sum of squares:
![]() |
the weighted median. See the section Weighted Percentiles for the formulas and descriptions.
the weighted median absolute deviation from the weighted median. See the section Weighted Percentiles for the formulas and descriptions.
the weighted median, 25th percentile, and the 75th percentile. See the section Weighted Percentiles for the formulas and descriptions.
the AGK estimate. This estimate is documented further in the ACECLUS procedure as the METHOD=COUNT option. See the discussion of the WEIGHT statement in Chapter 22, The ACECLUS Procedure, for information about how the WEIGHT variable is applied to the AGK estimate.
the estimate. This estimate is documented further in the FASTCLUS procedure as the LEAST= option. See the discussion of the WEIGHT statement in
Chapter 34,
The FASTCLUS Procedure,
for information about how the WEIGHT variable is used to compute weighted cluster means. Note that the number of clusters is always 1.
![]() |
![]() |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.