Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The TTEST Procedure

Computational Methods

The t Statistic

The form of the t statistic used varies with the type of test being performed.

The Folded Form F Statistic

The folded form of the F statistic, F', tests the hypothesis that the variances are equal, where
F' = [(max(s12,s22))/(min(s12,s22))]
A test of F' is a two-tailed F test because you do not specify which variance you expect to be larger. The p-value gives the probability of a greater F value under the null hypothesis that \sigma_1^2=\sigma_2^2.

The Approximate t Statistic

Under the assumption of unequal variances, the approximate t statistic is computed as
t^' = \frac{\bar{x}_1-\bar{x}_2}{\sqrt{w_1+w_2}}
where
w1 = [(s12)/(n1)],     w2 = [(s22)/(n2)]

The Cochran and Cox Approximation

The Cochran and Cox (1950) approximation of the probability level of the approximate t statistic is the value of p such that
t' = [(w1t1+w2t2)/(w1+w2)]
where t1 and t2 are the critical values of the t distribution corresponding to a significance level of p and sample sizes of n1 and n2, respectively. The number of degrees of freedom is undefined when n_1 \ne n_2.In general, the Cochran and Cox test tends to be conservative (Lee and Gurland 1975).

Satterthwaite's Approximation

The formula for Satterthwaite's (1946) approximation for the degrees of freedom for the approximate t statistic is:
df = [( (w1+w2)2 )/( ( [(w12)/(n1-1)]+[(w22)/(n2-1)] ) )]
Refer to Steel and Torrie (1980) or Freund, Littell, and Spector (1986) for more information.

Confidence Interval Estimation

The form of the confidence interval varies with the statistic for which it is computed. In the following confidence intervals involving means, t_{1-\frac{\alpha}2,n-1} is the 100(1-\frac{\alpha}2)% quantile of the t distribution with n-1 degrees of freedom. The confidence interval for

The distribution of the estimated standard deviation of a mean is not symmetric, so alternative methods of estimating confidence intervals are possible. PROC TTEST computes two estimates. For both methods, the data are assumed to have a normal distribution with mean \mu and variance \sigma^2, both unknown. The methods are as follows:

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.