This function first computes a Cohen's d (D) and Hedges' g (G) from the eta squared of a binary predictor (ANOVA model). Odds ratio (OR) and correlation coefficients (R/Z) are then converted from the Cohen's d.
To estimate a Cohen's d the following formula is used (Cohen, 1988):
d=2∗1−etasqetasq
To estimate other effect size measures , calculations of the es_from_cohen_d() are applied.
Examples
es_from_etasq(etasq =0.28, n_exp =20, n_nexp =22)
References
Cohen, J. (1988). Statistical power analysis for the behavioral sciences. Routledge.