javanpst.tests.countData.fisherTest
Class FisherTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.countData.fisherTest.FisherTest
-
public class FisherTest extends StatisticalTest
The Fisher test. Fisher's exact test can be used to test the significance of the association (contingency) between two kinds of classifications (in 2 x 2 contingency matrixes). A chi-square based approximation is also provided.
-
-
Constructor Summary
Constructors Constructor and Description FisherTest()Default builderFisherTest(DataTable newData)Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclearData()Clears the data stored in the testvoiddoTest()Perform the testdoublegetAsymptoticPValue()Get asymptotic p-valuedoublegetExactLeftPValue()Get exact left tail p-valuedoublegetExactRightPValue()Get exact right tail p-valuedoublegetQ()Get Q statisticjava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testvoidsetData(DataTable newData)Sets data to test-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
FisherTest
public FisherTest()
Default builder
-
FisherTest
public FisherTest(DataTable newData)
Builder. Load data to test.- Parameters:
newData- data to test.
-
-
Method Detail
-
clearData
public void clearData()
Clears the data stored in the test- Specified by:
clearDatain classStatisticalTest
-
setData
public void setData(DataTable newData)
Sets data to test- Parameters:
newData- data to test.
-
doTest
public void doTest()
Perform the test- Specified by:
doTestin classStatisticalTest
-
getQ
public double getQ()
Get Q statistic- Returns:
- Q statistic
-
getExactLeftPValue
public double getExactLeftPValue()
Get exact left tail p-value- Returns:
- exact p-value
-
getExactRightPValue
public double getExactRightPValue()
Get exact right tail p-value- Returns:
- exact p-value
-
getAsymptoticPValue
public double getAsymptoticPValue()
Get asymptotic p-value- Returns:
- asymptotic p-value
-
printData
public java.lang.String printData()
Prints the data stored in the test- Specified by:
printDatain classStatisticalTest- Returns:
- Data stored
-
printReport
public java.lang.String printReport()
Prints a report with the results of the test- Specified by:
printReportin classStatisticalTest- Returns:
- Output report
-
-
DMelt 3.0 © DataMelt by jWork.ORG