oneSided

fun oneSided(a: Int, b: Int, c: Int, d: Int): PValue(source)

The one-sided exact p-value of the 2x2 table [[a, b], [c, d]]: the probability, with all margins fixed, of a or more in the top-left cell. For an experiment a is the failures in the treatment arm, b its passes, c and d the control's.