edu.ucla.stat.SOCR.analyses.data
Class ContingencyTable

java.lang.Object
  extended by 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)
           
 
Method Summary
 double findPearsonChiSquare()
           
 java.lang.String[] getColNames()
           
 int[] getColSum()
           
 int[] getColSumObserved()
           
 int getDF()
           
 double[][] getExpected()
           
 int getGrandTotal()
           
 int getNumberCol()
           
 int getNumberRow()
           
 double[][] getObserved()
           
 double getObserved(int i, int j)
           
 double getPCutoff()
           
 double getPCutoff(boolean b)
           
 java.lang.String[] getRowNames()
           
 int[] getRowSum()
           
 int[] getRowSumObserved()
           
static void main(java.lang.String[] args)
           
 void setExpected(double[][] expected)
           
 void setExpectedProbabilities()
           
 void setExpectedProbabilities(double[] rowProbability, double[] colProbability)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)