eta_squared | R Documentation |
Compute eta-squared and partial eta-squared for all terms in an ANOVA model.
eta_squared(model) partial_eta_squared(model)
model |
an object of class aov or anova. |
a numeric vector with the effect size statistics
eta_squared()
: compute eta squared
partial_eta_squared()
: compute partial eta squared.
# Data preparation df <- ToothGrowth df$dose <- as.factor(df$dose) # Compute ANOVA res.aov <- aov(len ~ supp*dose, data = df) summary(res.aov) # Effect size eta_squared(res.aov) partial_eta_squared(res.aov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.