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

    Function pwr2p2nTest

    • Power of the test of two proportions with unequal sample sizes (arcsine transformation), or the effect size, a sample size or the significance level for a given power. Equivalent to pwr::pwr.2p2n.test() in R.

      Parameters

      Returns Pwr2p2nTestResult

      pwr2p2nTest({ h: 0.3, n1: 80, n2: 120 }).power; // 0.5471899635264242
      pwr2p2nTest({ h: 0.3, n1: 200, power: 0.8 }).n2; // 154.6399892648981