Click or drag to resize

WilcoxonSignedRankTestComputeExactPValue Method

Computes an exact p-value by enumerating all possible rank sums.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double ComputeExactPValue(
	double statistic,
	int n
)

Parameters

statistic  Double
The test statistic.
n  Int32
The sample size.

Return Value

Double
Remarks
All 2^n possible distributions of signs over ranks are generated as bit-patterns. The algorithm is adapted from http://www.fon.hum.uva.nl/Service/Statistics/Signed_Rank_Algorihms.html#C.
Equivalent to the R psignrank() method.
See Also