# 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