|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.inferential.nonparametrics.WilcoxonSignedRankTest
public class WilcoxonSignedRankTest
Wilcoxon Signed Rank test. A nonparametic test for claims regarding the median of a single population. Samples are ranked by their absolute distances from the hypothesized median. The ranks of sample values that are above the hypothesized median are given positive signs; those of values below the hypothesized median are given negative signs. The sums of the ranks corresponding to positive and negative signs are computed, respectively. The rank sums are used as test statistics.
Field Summary | |
---|---|
static int |
GREATER
Alternative hypothesis type: greater than |
static int |
LESS
Alternative hypothesis type: less than |
static int |
NOTEQUAL
Alternative hypothesis type: not equal to |
double |
significance
Significance of the test. |
Constructor Summary | |
---|---|
WilcoxonSignedRankTest(java.util.Vector<java.lang.Double> data,
double testMedian,
int testType,
double significance)
Constructor, given data values. |
Method Summary | |
---|---|
double |
getRankSum(java.util.Vector<java.lang.Double> data)
Returns the rank sum of the given data (negative rank sum for right-tailed test, positive rank sum for left-tailed, and minimum of the two rank sums for two-tailed). |
double |
pValue()
Returns the p-value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int LESS
public static int GREATER
public static int NOTEQUAL
public double significance
Constructor Detail |
---|
public WilcoxonSignedRankTest(java.util.Vector<java.lang.Double> data, double testMedian, int testType, double significance)
data
- vector of double valuestestMedian
- hypothesized mediantestType
- type of alternative hypothesisMethod Detail |
---|
public double pValue()
public java.lang.String toString()
toString
in class java.lang.Object
public double getRankSum(java.util.Vector<java.lang.Double> data)
data
- vector of Double values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |