Thursday, May 29, 2014

Post-Hoc Testing For Single-Factor ANOVA

This is one of the following sixteen articles on Single-Factor ANOVA in Excel

Overview of Single-Factor ANOVA

Single-Factor ANOVA in 5 Steps in Excel 2010 and Excel 2013

Shapiro-Wilk Normality Test in Excel For Each Single-Factor ANOVA Sample Group

Kruskal-Wallis Test Alternative For Single Factor ANOVA in 7 Steps in Excel 2010 and Excel 2013

Levene’s and Brown-Forsythe Tests in Excel For Single-Factor ANOVA Sample Group Variance Comparison

Single-Factor ANOVA - All Excel Calculations

Overview of Post-Hoc Testing For Single-Factor ANOVA

Tukey-Kramer Post-Hoc Test in Excel For Single-Factor ANOVA

Games-Howell Post-Hoc Test in Excel For Single-Factor ANOVA

Overview of Effect Size For Single-Factor ANOVA

ANOVA Effect Size Calculation Eta Squared in Excel 2010 and Excel 2013

ANOVA Effect Size Calculation Psi – RMSSE – in Excel 2010 and Excel 2013

ANOVA Effect Size Calculation Omega Squared in Excel 2010 and Excel 2013

Power of Single-Factor ANOVA Test Using Free Utility G*Power

Welch’s ANOVA Test in 8 Steps in Excel Substitute For Single-Factor ANOVA When Sample Variances Are Not Similar

Brown-Forsythe F-Test in 4 Steps in Excel Substitute For Single-Factor ANOVA When Sample Variances Are Not Similar

 

Overview Post-Hoc

Testing
For Single-Factor

ANOVA

The F-test in ANOVA is classified as an omnibus test. An omnibus test is one that-Tests the overall significance of a model to determine whether a difference exists but not exactly where the difference is. ANOVA test the Null Hypothesis that all of the group means are the same. When this Null Hypothesis is rejected, further testing must be performed to determine which pairs of means are significantly different. That type of testing is called Post-Hoc testing.

Post-Hoc testing is a pairwise comparison. Groups means are compared two at a time to determine whether the difference between the pair of means is significant.

 

The Many Types of Post-Hoc Tests

Available

There are many types of Post-Hoc tests available in most major statistical software packages but two have become the preferred tests. These two are the Tukey-Kramer test and the Games-Howell test. The Tukey-Kramer test should be used when group variances are similar. The Games-Howell test should be used with group variances are dissimilar. Both tests can be used when group sizes are unequal.

The Tukey-Kramer test is a slight variation of the well-known Tukey HSD test. The Tukey-Kramer can be used when group sizes are unequal, which the Tukey HSD test is not designed for.

 

Post-Hoc Tests Used When Group Variances Are Equal

SPSS lists the following Post-Hoc tests or corrections available when groups variances are equal:

LSD

Bonferroni

Sidak

Scheffe

REGWF

REGWQ

S-N-K

Tukey (Tukey’s HSD or Tukey-Kramer)

Tukey’s b

Duncan

Hochberg’s GT2

Gabriel

Waller-Duncan

Dunnett

Of all of the Post-Hoc tests available when groups variances are found to be similar, Tukey’s HSD test is used much more often than the others. A slight variation of Tukey’s HSD called the Tukey-Kramer test is normally used when group variances are the same but group sample sizes are different. Tukey’s HSD can only be used when group sizes are exactly the same.

The Tukey test (Tukey’s HSD test or the Tukey-Kramer test) is generally a good choice when group variances are similar. Hochberg’s GT2 produces the best result when group sizes are very different. REGWQ is slightly more accurate than the Tukey test but should only be used when group sizes are the same.

 

Post-Hoc Tests Used When Group Variances Are Not Equal

SPSS lists the following Post-Hoc tests available when groups variances are not equal:

Tamhane’s T2

Dunnett’s T3

Games-Howell

Dunnett’s C

The Games-Howell test is the most widely used of the above and is generally a good choice when group variances are not similar. The Games-Howell test can be used when group sizes are not the same.

 

Tukey’s HSD (Honestly Significant Difference) Test

Used When Group Sizes and Group Variances Are Equal

Tukey’s HSD test compares the difference between each pair of group means to determine which differences are large enough to be considered significant.

Tukey’s HSD test is very similar to a t-test except that it makes a correction for the experiment-wide error rate that a t-test doesn’t. The experiment-wide error rate is the increased probability of type 1 errors (false positives) when multiple comparisons are made.

Tukey’s HSD test can be summarized as follows:

The means of all groups are arranged into as many unique pair combinations as possible. The pair combination with the largest difference between the two means is tested first. A test statistic for this pair of means is calculated as follows:

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

where

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

n = number of samples in any group (all groups must be of equal size for Tukey’s HSD Post-Hoc test)

This test statistic is compared to qCritical . The critical q values are found on the Studentized Range q table. A unique critical q value is calculated for each unique combination of level of significance (usually set at 0.05), the degrees of freedom, and the total number of groups in the ANOVA analysis.

Tukey’s test calculates degrees of freedom as follows:

df = Degrees of freedom = (total number of samples in all groups combined) – (total number of groups)

The difference between the two means is designated as significant if its test statistic q is larger than the critical q value from the table.

If the difference between the means with the largest difference is found to be significant, the next inside pair of means is tested. This step is repeated until an innermost pair is found to have a difference that is not significant. Once an inner pair of means is found to have a difference that is not large enough to be significant, no further testing needs to be done because all untested pairs will be inside this one and have even smaller differences between the means.

 

Tukey-Kramer Test

Used When Group Variances Are Equal But Group Sizes Are Unequal

A slightly variation of Tukey’s HSD test should be used when group sizes are not the same. This variation of Tukey’s HSD test is called the Tukey-Kramer test.

This Tukey-Kramer test will normally be performed instead Tukey’s HSD test by most statistical packages. The Tukey-Kramer test produces the same answer as Tukey’s HSD when group sizes are the same and can be used when group sizes are different (unlike Tukey’s HSD).

Recall that the Tukey’s HSD test statistic for a pair of means is calculated as follows:

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

where

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

The Tukey-Kramer test makes the following adjustment to standard error to account for unequal group sizes. The pooled variance MSWithin_Groups is multiplied by the average of ( 1/ni + 1/nj ) instead of 1/n.

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

As with Tukey’s HSD test, the Tukey-Kramer test calculates Test Statistic q for each pair of means. This Test Statistic is compared to qCritical . The critical q values are found on the Studentized Range q table. A unique critical q value is calculated for each unique combination of level of significance (usually set at 0.05), the degrees of freedom, and the total number of groups in the ANOVA analysis. An Excel lookup function can be conveniently used to obtain the critical q value. The easiest Excel lookup function in this case is Index(array, row, column).

The Tukey-Kramer test calculates degrees of freedom in the same way as Tukey’s HSD test as follows:

df = Degrees of freedom = (total number of samples) – (total number of groups)

The difference between the two means is designated as significant if its test statistic q is larger than the critical q value from the table.

The Tukey-Kramer test will be performed on the sample data shortly.

 

Games-Howell Test

Used When Groups Variances Are Not Equal. Groups Sizes Can Be Unequal.

The Games-Howell test is the Post-Hoc test used when group variances cannot be confirmed to be homogeneous (similar). The Games-Howell test can be used whether or not sample sizes are the same.

When group variances are shown to be dissimilar, the Single-factor ANOVA test should be replaced by either Welch’s ANOVA or the Brown-Forsythe F-Test. Both of these tests will be performed on the sample data at the end of this chapter.

The two main tests used to evaluate samples for homogeneity (sameness) of variance are Levene’s test and the Brown-Forsythe test.

Levene’s test is an ANOVA test the compares distances between sample values and group means.

The Brown-Forsythe test is an ANOVA test that compares distances between sample values and group medians. The Brown-Forsythe test is more robust because it is less affected by outliers since it is based on the median and not the mean as Levene’s test is.

The F-test is not a good test to compare variances because it is extremely sensitive to non-normality of sample data.

The Games-Howell Post-Hoc test is performed in the same manner as Tukey’ HSD and the Tukey-Kramer test. The only differences are the formulas used to calculate standard error and the degrees of freedom.

Recall that the Tukey’s HSD test statistic for a pair of means is calculated as follows:

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

where

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

The Tukey-Kramer test makes the following adjustment to standard error to account for unequal group sizes. The pooled variance MSWithin_Groups is multiplied by the average of ( 1/ni + 1/nj ) instead of 1/n.

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

Notice that both Tukey’s HSD and the Tukey-Kramer test use a pooled variance MSWithin_Groups because groups variances are similar. The Games-Howell test assumes dissimilar groups variances and calculates the standard error using individual variances of each group as follows:

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

The Games-Howells test calculates degrees of freedom in a different way as well. The formula for df is as follows:

post hoc,anova statistics, excel,excel 2010,excel 2013,tukey,tukey's,tukeys,games-howell
(Click Image To See a Larger Version)

In Excel terms, the formula is expressed as the following:

df = ( ( (Var1/n1) + (Var2/n2) )^2 ) / ( ((Var1/n1)^2 / (n1 - 1) ) + ( (Var2/n2)^2 / (n2-1) } )

This is the same formula used to calculate degrees of freedom for a two-independent sample, unpooled t-test. This t-test is known as Welch’s t-test. As mentioned, when group variances are unequal, Single-Factor ANOVA is replaced by Welch’s ANOVA or the Brown-Forsythe F-Test.

As with Tukey’s HSD test and the Tukey-Kramer test, the Games-Howell test calculates Test Statistic q for each pair of means. This Test Statistic is compared to qCritical . The critical q values are found on the Studentized Range q table. A unique critical q value is calculated for each unique combination of level of significance (usually set at 0.05), the degrees of freedom, and the total number of groups in the ANOVA analysis. An Excel lookup function can be conveniently used to obtain the critical q value. The easiest Excel lookup function in this case is Index(array, row, column).

The difference between the two means is designated as significant if its test statistic q is larger than the critical q value from the table.

The Games-Howell test will be performed on the sample data shortly.

 

Excel Master Series Blog Directory

Statistical Topics and Articles In Each Topic

No comments:

Post a Comment