Specifies weights for analysis variables in the statistical calculations.
||For information about calculating weighted
statistics and for an example that uses the WEIGHT statement, see WEIGHT
specifies a numeric variable whose values weight the values
of the analysis variables. The values of the variable do not have to be integers.
If the value of the weight variable is
counts the observation in the total number of observations
less than 0
converts the weight value to zero and counts the observation in the
total number of observations
excludes the observation from the calculation of mean and standard deviation
To exclude observations
that contain negative and zero weights
from the calculation of mean and standard deviation, use EXCLNPWGT. Note that
most SAS/STAT procedures, such as PROC GLM, exclude negative and zero weights
When you use the WEIGHT statement, consider
which value of the VARDEF= option is appropriate. See VARDEF= and
the calculation of weighted statistics in Keywords and Formulas for more
Note: Before Version 7 of the SAS System,
the procedure did not exclude the observations with missing weights from the
count of observations.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.