Tukey.HSD | R Documentation |
This function conducts Tukey's Honest Significance Difference (HSD; Tukey, 1949) test that allows for making post hoc comparisons of the group means. Tukey's HSD can only be conducted when the mean structure of the Stage 1 model only contains qualitative independent variables (i.e., when the fitted regression model is essentially an ANOVA).
Tukey.HSD(Stage.1.Model, ...)
Stage.1.Model |
A fitted stage one model that only contains qualitative variables. |
... |
Arguments to be passed to the plot function of the Tukey HSD procedure. |
No return value, called for side effects.
Wim Van der Elst
Tukey, J. (1949). Comparing individual means in the Analysis of Variance. Biometrics, 5, 99-114.
Van der Elst, W. (2024). Regression-based normative data for psychological assessment: A hands-on approach using R. Springer Nature.
plot.Tukey.HSD
data(Personality)
Model.Openness <- Stage.1(Dataset = Personality, Model = Openness ~ LE)
# conduct post hoc comparisons for the levels of education
Tukey.Openness <- Tukey.HSD(Model.Openness)
summary(Tukey.Openness)
plot(Tukey.Openness)
# conduct post hoc comparisons for the levels of education by education combinations
data(Substitution)
Model.Substitution <- Stage.1(Dataset = Substitution, Model = LDST ~ LE*Gender)
Tukey.Substitution <- Tukey.HSD(Model.Substitution)
summary(Tukey.Substitution)
plot(Tukey.Substitution)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.