|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.statcato.statistics.inferential.ContingencyTable
public class ContingencyTable
A contingency table. Provides methods that perform computations relevant to a test of independence in a contingency table.
| Constructor Summary | |
|---|---|
ContingencyTable(java.util.Vector<java.util.Vector<java.lang.Double>> table)
Constructor. |
|
| Method Summary | |
|---|---|
double |
criticalValue(double confidenceLevel)
Returns the critical value corresponding to the given confidence level and degrees of freedom of the contingency table. |
int |
DOF()
Returns the degrees of freedom of a contingency table. |
double |
pValue()
Returns the p-Value corresponding to the test statistic in a chi-square distribution. |
double |
testStatistics()
Returns the test statistic for a test of independence between the row and column variable in the contingency table. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContingencyTable(java.util.Vector<java.util.Vector<java.lang.Double>> table)
table - vector of vector of Double representing
the table of observed frequencies| Method Detail |
|---|
public double testStatistics()
public int DOF()
public double criticalValue(double confidenceLevel)
public double pValue()
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 | |||||||||