edu.ucla.stat.SOCR.analyses.data
Class ContingencyTable
java.lang.Object
edu.ucla.stat.SOCR.analyses.data.ContingencyTable
public class ContingencyTable
- extends java.lang.Object
Constructor Summary |
ContingencyTable(double[][] observed)
|
ContingencyTable(double[][] observed,
double[][] expected,
java.lang.String[] rowName,
java.lang.String[] colName)
|
ContingencyTable(double[][] observed,
java.lang.String[] rowName,
java.lang.String[] colName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContingencyTable
public ContingencyTable(double[][] observed)
ContingencyTable
public ContingencyTable(double[][] observed,
java.lang.String[] rowName,
java.lang.String[] colName)
ContingencyTable
public ContingencyTable(double[][] observed,
double[][] expected,
java.lang.String[] rowName,
java.lang.String[] colName)
setExpected
public void setExpected(double[][] expected)
setExpectedProbabilities
public void setExpectedProbabilities()
throws DataException
- Throws:
DataException
setExpectedProbabilities
public void setExpectedProbabilities(double[] rowProbability,
double[] colProbability)
throws DataException
- Throws:
DataException
getGrandTotal
public int getGrandTotal()
getRowSumObserved
public int[] getRowSumObserved()
getColSumObserved
public int[] getColSumObserved()
getRowNames
public java.lang.String[] getRowNames()
getNumberRow
public int getNumberRow()
getNumberCol
public int getNumberCol()
getColNames
public java.lang.String[] getColNames()
getPCutoff
public double getPCutoff()
throws NumberTooBigException
- Throws:
NumberTooBigException
getPCutoff
public double getPCutoff(boolean b)
findPearsonChiSquare
public double findPearsonChiSquare()
getExpected
public double[][] getExpected()
getObserved
public double getObserved(int i,
int j)
getObserved
public double[][] getObserved()
getRowSum
public int[] getRowSum()
getColSum
public int[] getColSum()
getDF
public int getDF()
main
public static void main(java.lang.String[] args)