Learn R Programming

sjstats (version 0.12.0)

eta_sq: Effect size statistics for anova

Description

Returns the (partial) eta-squared, omega-squared statistic or Cohen's F for all terms in an anovas. anova_stats() returns a tidy summary, including all these statistics and power for each term.

Usage

eta_sq(model, partial = FALSE)

omega_sq(model)

cohens_f(model)

anova_stats(model, digits = 3)

Arguments

model

A fitted anova-model of class aov or anova. Other models are coerced to anova.

partial

Logical, if TRUE, the partial eta-squared is returned.

digits

Number of decimal points in the returned data frame.

Value

A numeric vector with the effect size statistics; for anova_stats(), a tidy data frame with all these statistics.

References

Levine TR, Hullett CR (2002): Eta Squared, Partial Eta Squared, and Misreporting of Effect Size in Communication Research (pdf)

Examples

Run this code
# NOT RUN {
# load sample data
data(efc)

# fit linear model
fit <- aov(
  c12hour ~ as.factor(e42dep) + as.factor(c172code) + c160age,
  data = efc
)

eta_sq(fit)
omega_sq(fit)
eta_sq(fit, partial = TRUE)

anova_stats(car::Anova(fit, type = 2))

# }

Run the code above in your browser using DataLab