|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.math.statistics.ContingencyTable
public class ContingencyTable
Statistical analysis of a two-way contingency table.
Constructor Summary | |
---|---|
protected |
ContingencyTable()
Don't allow instantiation but do allow overrides. |
Method Summary | |
---|---|
static double |
chisquare(Matrix table)
Compute chisquare for a table of frequencies. |
static double[] |
fishersExactTest(Matrix table)
Compute Fisher's exact test for a 2x2 table. |
static double |
likelihoodRatio(Matrix table)
Compute likelihood ratio for a table of frequencies. |
protected static double |
logLikelihood(Matrix p,
double total,
Matrix k,
int columns)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ContingencyTable()
Method Detail |
---|
public static double chisquare(Matrix table)
table
- A matrix containing the table.
protected static double logLikelihood(Matrix p, double total, Matrix k, int columns)
public static double likelihoodRatio(Matrix table)
table
- A matrix containing the table.
public static double[] fishersExactTest(Matrix table)
table
- The table (must be 2x2).
java.lang.RuntimeException
- If the
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |