es.w: Cohen w effect size calculation for chi-square tests
Description
Calculates the w effect size for chi-square tests. For chi-square goodness of fit tests, specify
p0vec and p1vec. For chi-square tests of independence, provide a matrix of cell probabilities.
Based on Cohen (1988).
Usage
es.w(p0vec = NULL, p1vec = NULL, pmatrix = NULL)
Value
A list of the arguments and the w effect size.
Arguments
p0vec
The first vector of probabilities. Both p0vec and p1vec, or pmatrix must be specified.
p1vec
The second vector of probabilities. Both p0vec and p1vec, or pmatrix must be specified.
pmatrix
The two-way probability table. Both p0vec and p1vec, or pmatrix must be specified.
Details
Cohen J (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd edition.
Lawrence Erlbaum Associates, Hillsdale, New Jersey