javanpst.tests.scale.klotzTest
Class KlotzTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.scale.klotzTest.KlotzTest
-
public class KlotzTest extends StatisticalTest
The Klotz test. Assuming the scale model (equal medians), this test can be employed to test whether the two distributions selected have equal scale parameter (with the null hypothesis of equality). The Klotz test uses the squares of the weights of the inverse-normal scores of van der Warden Normal Scores test for location. An approximation to the Normal distribution is employed to compute asymptotic p-values.
-
-
Constructor Summary
Constructors Constructor and Description KlotzTest()Default builderKlotzTest(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 testdoublegetPValue1()Get first sample p-valuedoublegetPValue2()Get second sample p-valuedoublegetTestStatistic1()Get test statistic associated to the first sampledoublegetTestStatistic2()Get test statistic associated to the second samplejava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testjava.lang.StringprintWeights()Prints the array of weightsvoidsetData(DataTable newData)Sets data to test-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
KlotzTest
public KlotzTest()
Default builder
-
KlotzTest
public KlotzTest(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
-
getTestStatistic1
public double getTestStatistic1()
Get test statistic associated to the first sample- Returns:
- normal Statistic of the first sample
-
getTestStatistic2
public double getTestStatistic2()
Get test statistic associated to the second sample- Returns:
- normal Statistic of the second sample
-
getPValue1
public double getPValue1()
Get first sample p-value- Returns:
- first sample p-value
-
getPValue2
public double getPValue2()
Get second sample p-value- Returns:
- second sample p-value
-
printWeights
public java.lang.String printWeights()
Prints the array of weights- Returns:
- string with the contents of the array
-
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