edu.ucla.stat.SOCR.analyses.model
Class FisherExact

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.model.FisherExact
All Implemented Interfaces:
Analysis

public class FisherExact
extends java.lang.Object
implements Analysis


Field Summary
static java.lang.String COL_NAMES
           
static java.lang.String OBSERVED_DATA
           
static java.lang.String ROW_NAMES
           
static java.lang.String SIGNIFICANCE_LEVEL
           
 
Constructor Summary
FisherExact()
           
 
Method Summary
 Result analyze(Data data, short analysisType)
           
 double ErrorMatrix(ContingencyTable A1, ContingencyTable A2)
           
 double get1TailPCutoff(ContingencyTable contTable, double p_naught)
           
 double get1TailPCutoffHigherOrder(ContingencyTable contTable, double p_naught)
           
 double get2TailPCutoff(ContingencyTable contTable, double p_naught)
           
 double get2TailPCutoffHigherOrder(ContingencyTable contTable, double p_naught)
           
 java.lang.String getAnalysisType()
           
 ContingencyTable getNewMaskMetropolisMatrix(ContingencyTable contTable, double p_naught)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBSERVED_DATA

public static final java.lang.String OBSERVED_DATA
See Also:
Constant Field Values

SIGNIFICANCE_LEVEL

public static final java.lang.String SIGNIFICANCE_LEVEL
See Also:
Constant Field Values

ROW_NAMES

public static final java.lang.String ROW_NAMES
See Also:
Constant Field Values

COL_NAMES

public static final java.lang.String COL_NAMES
See Also:
Constant Field Values
Constructor Detail

FisherExact

public FisherExact()
Method Detail

getAnalysisType

public java.lang.String getAnalysisType()
Specified by:
getAnalysisType in interface Analysis

analyze

public Result analyze(Data data,
                      short analysisType)
               throws WrongAnalysisException,
                      DataIsEmptyException,
                      NumberTooBigException
Specified by:
analyze in interface Analysis
Throws:
WrongAnalysisException
DataIsEmptyException
NumberTooBigException

get1TailPCutoff

public double get1TailPCutoff(ContingencyTable contTable,
                              double p_naught)
                       throws NumberTooBigException
Throws:
NumberTooBigException

get2TailPCutoff

public double get2TailPCutoff(ContingencyTable contTable,
                              double p_naught)
                       throws NumberTooBigException
Throws:
NumberTooBigException

get1TailPCutoffHigherOrder

public double get1TailPCutoffHigherOrder(ContingencyTable contTable,
                                         double p_naught)
                                  throws NumberTooBigException
Throws:
NumberTooBigException

get2TailPCutoffHigherOrder

public double get2TailPCutoffHigherOrder(ContingencyTable contTable,
                                         double p_naught)
                                  throws NumberTooBigException
Throws:
NumberTooBigException

ErrorMatrix

public double ErrorMatrix(ContingencyTable A1,
                          ContingencyTable A2)

getNewMaskMetropolisMatrix

public ContingencyTable getNewMaskMetropolisMatrix(ContingencyTable contTable,
                                                   double p_naught)
                                            throws NumberTooBigException
Throws:
NumberTooBigException