ANOVA.GetConfidenceInterval Method |
Namespace: Imsl.Stat
public virtual double[] GetConfidenceInterval( double conLevel, int i, int j, ANOVA. ComputeOption compMethod )
compMethod | Description |
---|---|
Tukey | Uses the Tukey method. This method is valid for balanced one-way designs. |
TukeyKramer | Uses the Tukey-Kramer method. This method simplifies to the Tukey method for the balanced case. |
DunnSidak | Uses the Dunn-Sidak method. |
Bonferroni | Uses the Bonferroni method. |
Scheffe | Uses the Scheffe method. |
OneAtATime | Uses the One-at-a-Time (Fisher's LSD) method. |
Array Element | Description |
---|---|
0 | Group number for the i-th mean. |
1 | Group number for the j-th mean. |
2 | Difference of means (i-th mean) - (j-th mean). |
3 | Lower confidence limit for the difference. |
4 | Upper confidence limit for the difference. |
GetConfidenceInterval computes the simultaneous
confidence interval on the pairwise comparison of means and
in the one-way analysis of
variance model. Any of several methods can be chosen. A good review of
these methods is given by Stoline (1981). Also the methods are discussed
in many elementary statistics texts, e.g., Kirk (1982, pages 114-127).
Let
be the estimated variance of a single
observation. Let
be the degrees of freedom
associated with
. Let
Tukey method: The Tukey method gives the narrowest simultaneous
confidence intervals for the pairwise differences of means in balanced
one-way designs. The method is exact and uses
the Studentized range distribution. The formula for the difference
is given by
where is the
percentage point of the Studentized range distribution with
parameters
and
. If the
group sizes are unequal, the Tukey-Kramer method is used instead.
Tukey-Kramer method: The Tukey-Kramer method is an approximate
extension of the Tukey method for the unbalanced case. (The method
simplifies to the Tukey method for the balanced case.) The method always
produces confidence intervals narrower than the Dunn-Sidak and Bonferroni
methods. Hayter (1984) proved that the method is conservative, i.e., the
method guarantees a confidence coverage of at least . Hayter's proof gave further support to
earlier recommendations for its use (Stoline 1981). (Methods that are
currently better are restricted to special cases and only offer
improvement in severely unbalanced cases, see, e.g., Spurrier and Isham
1985). The formula for the difference
is given by the following:
Dunn-Sidak method: The Dunn-Sidak method is a conservative
method. The method gives wider intervals than the Tukey-Kramer method.
(For large and small
and k, the difference is only slight.) The method is slightly
better than the Bonferroni method and is based on an improved Bonferroni
(multiplicative) inequality (Miller, pages 101, 254-255). The method uses
the t distribution. The formula for the difference
is given by
where is the 100f percentage point
of the t distribution with
degrees of
freedom.
Bonferroni method: The Bonferroni method is a conservative
method based on the Bonferroni (additive) inequality (Miller, page 8).
The method uses the t distribution. The formula for the difference
is given by
Scheffè method: The Scheffè; method is an overly conservative method for simultaneous confidence intervals on pairwise difference of means. The method is applicable for simultaneous confidence intervals on all contrasts, i.e., all linear combinations
where the following is true:
The method can be recommended here only if a large number of
confidence intervals on contrasts in addition to the pairwise differences
of means are to be constructed. The method uses the F
distribution. The formula for the difference is given by
where is the
percentage point of the
F distribution with
and
degrees of freedom.
One-at-a-time t method (Fisher's LSD): The one-at-a-time
t method is the method appropriate for constructing a single
confidence interval. The confidence percentage input is appropriate for
one interval at a time. The method has been used widely in conjunction
with the overall test of the null hypothesis by the use of the F statistic. Fisher's LSD
(least significant difference) test is a two-stage test that proceeds to
make pairwise comparisons of means only if the overall F test is
significant. Milliken and Johnson (1984, page 31) recommend LSD
comparisons after a significant F only if the number of
comparisons is small and the comparisons were planned prior to the
analysis. If many unplanned comparisons are made, they recommend
Scheffe's method. If the F test is insignificant, a few planned
comparisons for differences in means can still be performed by using
either Tukey, Tukey-Kramer, Dunn-Sidak or Bonferroni methods. Because the
F test is insignificant, Scheffe's method will not yield any
significant differences. The formula for the difference
is given by