|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.inferential.nonparametrics.SignTest
public class SignTest
Sign test. Determines the likelihood of observing a specified number of observations above and below the hypothesized median.
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 |
static int |
THRESHOLD
Sample size threshold for for normal approximation to binomial |
Constructor Summary | |
---|---|
SignTest(int numPositive,
int numNegative,
double testMedian,
int testType)
Constructor, given summary data. |
|
SignTest(java.util.Vector<java.lang.Double> data,
double testMedian,
int testType)
Constructor, given data values. |
Method Summary | |
---|---|
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 static int THRESHOLD
Constructor Detail |
---|
public SignTest(int numPositive, int numNegative, double testMedian, int testType)
numPositive
- number of positive signsnumNegative
- number of negative signstestMedian
- hypothesized mediantestType
- type of alternative hypothesispublic SignTest(java.util.Vector<java.lang.Double> data, double testMedian, int testType)
data
- vector of double data valuestestMedian
- hypothesized mediantestType
- type of alternative hypothesisMethod Detail |
---|
public double pValue()
THRESHOLD
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |