![]() Chapter Contents |
![]() Previous |
![]() Next |
| The MEANS Procedure |
PROC MEANS uses single-pass algorithms to compute the moment statistics (such as mean, variance, skewness, and kurtosis). See Keywords and Formulas for the statistical formulas.
| Confidence Limits |
A two-sided
% confidence interval for the mean has upper and lower limits
where
is
and
is the (
) critical value of the Student's t statistics
with
degrees of freedom.
A one-sided
% confidence interval is computed as
A two-sided
% confidence interval for the standard deviation has lower
and upper limits
where
and
are the
and
critical values of the chi-square statistic with
degrees of freedom. A one-sided
% confidence interval is computed by replacing
with
.
where
is the weighted mean,
is the weighted standard deviation,
is the weight for
observation, and
is the
critical value for the Student's t distribution
with
degrees of freedom.
| Student's t Test |
PROC MEANS calculates the t statistic as
where
is the sample mean,
is the number of nonmissing values for a variable, and
is the sample standard deviation. Under the null hypothesis,
the population mean equals
. When the data values are approximately normally distributed,
the probability under the null hypothesis of a t statistic as
extreme, or more extreme, than the observed value (the p-value)
is obtained from the t distribution with
degrees of freedom. For large
, the t statistic is asymptotically equivalent
to a z test.
where
is the weighted mean,
is the weighted standard deviation, and
is the weight for
observation. The
statistic is treated as having a Student's t
distribution with
degrees of freedom. If you specify the EXCLNPWGT option
in the PROC statement,
is the number of nonmissing observations when the value
of the WEIGHT variable is positive. By default,
is the number of nonmissing observations for the WEIGHT
variable.
| Quantiles |
The options QMETHOD=, QNTLDEF=, and QMARKERS= determine how PROC MEANS calculates quantiles. QNTLDEF= deals with the mathematical definition of a quantile. See Calculating Percentiles. QMETHOD= deals with the mechanics of how PROC MEANS handles the input data. The two methods are
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.