Skip to content

Commit

Permalink
More explicit effect size in power_chi2
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvallat committed Oct 26, 2023
1 parent 8745ee6 commit c66e225
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pingouin/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ def power_chi2(dof, w=None, n=None, power=None, alpha=0.05):
dof : float
Degree of freedom (depends on the chosen test).
w : float
Effect size.
Cohen's w effect size [1]_.
n : int
Total number of observations.
power : float
Expand Down Expand Up @@ -1024,6 +1024,10 @@ def power_chi2(dof, w=None, n=None, power=None, alpha=0.05):
Results have been tested against GPower and the
`pwr <https://cran.r-project.org/web/packages/pwr/pwr.pdf>`_ R package.
References
----------
.. [1] Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.).
Examples
--------
1. Compute achieved power
Expand Down

0 comments on commit c66e225

Please sign in to comment.