| games.howell | R Documentation |
Performs pairwise comparisons using the Games-Howell test, which does not assume equal variances or equal sample sizes. This is the appropriate post-hoc test to use after a significant Welch's ANOVA.
games.howell(samples, groups, conf.level = 0.95)
samples |
Numeric vector; the dependent variable. |
groups |
Factor or vector; the grouping variable. |
conf.level |
Numeric; confidence level for confidence intervals (default: 0.95). |
The Games-Howell test uses the Welch-Satterthwaite approximation for degrees of freedom and does not pool variances. P-values are adjusted using the Holm method to control family-wise error rate.
A data frame with columns:
First group in comparison
Second group in comparison
Difference in means (group1 - group2)
Standard error of the difference
t-statistic
Degrees of freedom (Welch-Satterthwaite)
Unadjusted p-value
Holm-adjusted p-value for multiple comparisons
Lower bound of confidence interval
Upper bound of confidence interval
Logical; TRUE if p_adj < (1 - conf.level)
# Convert dose to factor
ToothGrowth$dose <- as.factor(ToothGrowth$dose)
# Perform Games-Howell test
result <- games.howell(ToothGrowth$len, ToothGrowth$dose)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.