| WilcoxonSignedRankTestComputeExactPValue Method |
Computes an exact p-value by enumerating all possible rank sums.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double ComputeExactPValue(
double statistic,
int n
)
Public Shared Function ComputeExactPValue (
statistic As Double,
n As Integer
) As Double
public:
static double ComputeExactPValue(
double statistic,
int n
)
static member ComputeExactPValue :
statistic : float *
n : int -> float
Parameters
- statistic Double
- The test statistic.
- n Int32
- The sample size.
Return Value
DoubleRemarks
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