Learn R Programming

sjstats (version 0.10.2)

eta_sq: Eta-squared of fitted anova

Description

Returns the eta-squared value for one-way-anovas.

Usage

eta_sq(...)

Arguments

...

Fitted one-way-anova model or a dependent and grouping variable (see 'Examples').

Value

The eta-squared value.

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), data = efc)

# print eta sqaured
eta_sq(fit)

# grouping variable will be converted to factor autoamtically
eta_sq(efc$c12hour, efc$e42dep)

# }

Run the code above in your browser using DataLab