plot Tukey.HSD | R Documentation |
This function plots the results of 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).
## S3 method for class 'Tukey.HSD'
plot(x, ...)
x |
A fitted object of class |
... |
Extra graphical parameters to be passed to |
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.
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.