|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpal.statistics.ContigencyTable
Class for permuting contigency tables and determining the likelihood of the table. If determining of the probability of a 2x2 table use FisherExact as it is much faster.
Constructor Summary | |
ContigencyTable(int maxSize)
constructor for Contigency table |
Method Summary | |
double |
calcContigencyChiSquare(int permutations)
This calculates the probability in the normal approach, using the Chi Square as the test statistic. |
double |
calcMonteCarloExactTest(int permutations)
This calculates the probability in the normal permutation approach, using the method described by Weir, B. |
double |
calcRapidContigencyChiSquare(int maxPermutations)
This calculates the probability in a rapid approach, using the Chi Square as the test statistic. |
double |
calcRapidMonteCarloExactTest(int maxPermutations)
This calculates the probability in the rapid permutational approach, using the method described by Weir, B. |
void |
setMatrix(int[][] tcontig)
sets the data for the contigency table, must be set before other methods are called. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContigencyTable(int maxSize)
maxSize
- is the maximum sum that will be encountered by contigency tableMethod Detail |
public void setMatrix(int[][] tcontig)
public double calcRapidContigencyChiSquare(int maxPermutations)
maxPermutations
- Number of permutations used to calculate the probability
public double calcContigencyChiSquare(int permutations)
permutations
- Number of permutations used to calculate the probability
public double calcRapidMonteCarloExactTest(int maxPermutations)
public double calcMonteCarloExactTest(int permutations)
permutations
- Number of permutations used to the probability
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |