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

    Function pairwisePropTest

    • Pairwise two-group tests of equal proportions, with adjusted p-values. Equivalent to R's pairwise.prop.test().

      Parameters

      • x: readonly number[]

        Numbers of successes per group.

      • n: readonly number[]

        Numbers of trials per group. Groups with NaN in x or n are dropped (the rows and columns are then numbered over the groups kept, as in R).

      • options: PairwisePropTestOptions = {}

      Returns PairwiseResult

      pairwisePropTest([15, 25, 40], [50, 50, 50]).pValue; // [[0.06619257972219345, NaN], [0.000004217380554293543, 0.006666708050273146]]