posthoc: Perform Post-hoc Analysis on ANOVA Results

View source: R/posthoc.R

posthocR Documentation

Perform Post-hoc Analysis on ANOVA Results

Description

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.

Usage

posthoc(ANOVA.object, ...)

Arguments

ANOVA.object

An object of class "ANOVA" containing the analysis results

...

Additional arguments passed to phia::testInteractions

Details

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.

Value

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

Examples

# 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")


ccamp83/mu documentation built on Nov. 7, 2024, 5:17 p.m.