![]() Chapter Contents |
![]() Previous |
![]() Next |
| The MEANS Procedure |
| Default: | If you omit the VAR statement, PROC MEANS analyzes all numeric variables that are not listed in the other statements. When all variables are character variables, PROC MEANS produces a simple count of observations. |
| Tip: | You can use multiple VAR statements. |
| See also: | The SUMMARY Procedure |
| Featured in: | Computing Specific Descriptive Statistics |
| VAR variable(s) </ WEIGHT=weight-variable>; |
| Required Arguments |
| Option |
| Weight value... | PROC MEANS... |
| 0 | counts the observation in the total number of observations |
| less than 0 | converts the value to zero and counts the observation in the total number of observations |
| missing | excludes the observation |
The weight variable does not change how the procedure determines the range, extreme values, or number of missing values.
| Restriction: | To compute weighted quantiles, use QMETHOD=OS in the PROC statement. |
| Restriction: | Skewness and kurtosis are not available with the WEIGHT option. |
| Tip: | When you use the WEIGHT option, consider which value of the VARDEF= option is appropriate. See the discussion of VARDEF= . |
| Tip: | Use the WEIGHT option in multiple VAR statements to specify different weights for the analysis variables. |
Note: Prior to Version 7 of the SAS System, the procedure
did not exclude the observations with missing weights from the count of
observations. ![[cautionend]](../common/images/cautend.gif)
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.