javanpst.tests.equality.JTTest
Class JTTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.equality.JTTest.JTTest
-
public class JTTest extends StatisticalTest
The Jonckheere and Terpstra test (JT test) This test can be applied to test the null hypotheses of equal medians between populations. Alternative is that the location parameter is in increasing order: M1 <= M2 <= ... <= Mn P-values are computed through a normal distribution approximation. All samples must have the same number of elements.
-
-
Constructor Summary
Constructors Constructor and Description JTTest()Default builderJTTest(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()Performs the testdoublegetB()Get B statisticdoublegetPValue()Get p-valuedoublegetZ()Get Z valuejava.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
-
JTTest
public JTTest()
Default builder
-
JTTest
public JTTest(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()
Performs the test- Specified by:
doTestin classStatisticalTest
-
getB
public double getB()
Get B statistic- Returns:
- B statistic
-
getZ
public double getZ()
Get Z value- Returns:
- Z value
-
getPValue
public double getPValue()
Get p-value- Returns:
- p-value computed
-
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