|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.statistics.ContigencyTable
public class 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 table| Method Detail |
|---|
public void setMatrix(int[][] tcontig)
contig - is the array of integers with observed statespublic 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)
reps - is the number of permutations used to the probability
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 | |||||||||