|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.statcato.statistics.inferential.nonparametrics.WilcoxonSignedRankPValue
public class WilcoxonSignedRankPValue
A class that computes p-values and critical values for Wilcoxon Signed Rank Test using exact and normal approximation methods.
| Field Summary | |
|---|---|
static boolean[] |
calculated
One-dimensional array of boolean values indicating whether the p-values for each sample size are calculated. |
static int |
MAX_N
The maximum sample size calculated using exact method. |
static int |
MAX_SUM
The maximum rank sum given the maximum sample size. |
static double[][] |
pvalue
Two-dimensional array of double values representing the cumulative p-values of each rank sum corresponding to the sample size. |
static int[][] |
sum
Two-dimensional array of integers representing the number of occurrences of each rank sum corresponding to the sample size. |
| Constructor Summary | |
|---|---|
WilcoxonSignedRankPValue()
Constructor. |
|
| Method Summary | |
|---|---|
static double |
getCriticalValue(double alpha,
int n)
Returns the critical value corresponding to the given significance and sample size. |
static double |
getPValue(double s,
int n)
Returns the p-value corresponding to the given rank sum and sample size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_N
public static boolean[] calculated
public static final int MAX_SUM
public static int[][] sum
public static double[][] pvalue
| Constructor Detail |
|---|
public WilcoxonSignedRankPValue()
| Method Detail |
|---|
public static double getPValue(double s,
int n)
s - rank sumn - sample size
public static double getCriticalValue(double alpha,
int n)
alpha - significancen - sample size
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||