Effect size w of a test of association, for a matrix of cell probabilities (an array of rows): with the row sums r and column sums c, p0 = r c' and sqrt(sum((p - p0)^2 / p0)). Equivalent to pwr::ES.w2() in R.
p0 = r c'
sqrt(sum((p - p0)^2 / p0))
pwr::ES.w2()
esW2([[0.3, 0.2], [0.1, 0.4]]); // 0.40824829046386296 Copy
esW2([[0.3, 0.2], [0.1, 0.4]]); // 0.40824829046386296
Effect size w of a test of association, for a matrix of cell probabilities (an array of rows): with the row sums r and column sums c,
p0 = r c'andsqrt(sum((p - p0)^2 / p0)). Equivalent topwr::ES.w2()in R.