rStats.js v1.3.0
    Preparing search index...

    Function esW2

    • 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.

      Parameters

      • p: readonly (readonly number[])[]

      Returns number

      esW2([[0.3, 0.2], [0.1, 0.4]]); // 0.40824829046386296