posthoc | R Documentation |
This function performs post-hoc analysis on an ANOVA object using the phia package's testInteractions functionality. It allows for detailed examination of interaction effects and pairwise comparisons following an ANOVA analysis.
posthoc(ANOVA.object, ...)
ANOVA.object |
An object of class "ANOVA" containing the analysis results |
... |
Additional arguments passed to phia::testInteractions |
The function checks if the input object is of the correct class ("ANOVA") and then performs post-hoc analysis using the model fit and interaction data stored in the ANOVA object.
Returns the results of phia::testInteractions, which includes:
F-tests |
F statistics for the specified contrasts |
p-values |
Associated p-values for the contrasts |
effect sizes |
Effect sizes for the contrasts |
# Assuming you have performed an ANOVA analysis:
my_anova <- ANOVA(data = mydata, dv = "score", formula = ~ group)
# Perform post-hoc analysis
posthoc(my_anova)
# With additional arguments
posthoc(my_anova, adjustment = "bonferroni")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.