Thin wrapper for DescTools::EtaSq to retrieve $eta^2$ for a simple use case without having to fit an aov model beforehand. Only use this for a simple one-way design, e.g. only one independent variable.
DescTools::EtaSq
aov
etasq(formula, data)
The model formula for stats::aov.
stats::aov
The data.frame.
data.frame
A single numeric value
# NOT RUN { etasq(stunzahl ~ jahrgang, ngo) # }
Run the code above in your browser using DataLab