The function anofaES()
compute effect size from observed frequencies
according to the ANOFA framework. See Laurencelle and Cousineau (2023)
for more.
anofaES( props )
the expected proportions;
The predicted effect size from a population with the given proportions.
The effect size is given as an eta-square.
Laurencelle L, Cousineau D (2023). “Analysis of frequency tables: The ANOFA framework.” The Quantitative Methods for Psychology, 19, 173--193. doi:10.20982/tqmp.19.2.p173 .
# if we assume the following proportions:
pred <- c(.35, .25, .25, .15)
# then eta-square is given by
anofaES( pred )
#> [1] 0.07602715