javanpst.tests.scale.siegel_TukeyTest
Class Siegel_TukeyTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.scale.siegel_TukeyTest.Siegel_TukeyTest
-
public class Siegel_TukeyTest extends StatisticalTest
The Siegel-Tukey 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 Siegel-Tukey test ranks elements using the same set of weights defined for the Wilcoxon Ranks-Sum test. An approximation to the Normal distribution is employed to compute asymptotic p-values. Exact p-values, if the size of both samples is lower than 10, are also computed
-
-
Constructor Summary
Constructors Constructor and Description Siegel_TukeyTest()Default builderSiegel_TukeyTest(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 testdoublegetDoublePValue()Get double tail p-valuedoublegetExactDoublePValue()Get double tail exact p-valuedoublegetExactLeftPValue()Get left tail exact p-valuedoublegetExactRightPValue()Get right tail exact p-valuedoublegetLeftPValue()Get left tail p-valuedoublegetRightPValue()Get right tail 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
-
Siegel_TukeyTest
public Siegel_TukeyTest()
Default builder
-
Siegel_TukeyTest
public Siegel_TukeyTest(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
-
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
-
getExactLeftPValue
public double getExactLeftPValue()
Get left tail exact p-value- Returns:
- left tail p-value computed
-
getExactRightPValue
public double getExactRightPValue()
Get right tail exact p-value- Returns:
- right tail p-value computed
-
getExactDoublePValue
public double getExactDoublePValue()
Get double tail exact p-value- Returns:
- double tail p-value computed
-
getLeftPValue
public double getLeftPValue()
Get left tail p-value- Returns:
- left tail p-value computed
-
getRightPValue
public double getRightPValue()
Get right tail p-value- Returns:
- right tail p-value computed
-
getDoublePValue
public double getDoublePValue()
Get double tail p-value- Returns:
- double tail p-value computed
-
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