javanpst.tests.scale.sukhatmeTest
Class SukhatmeTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.scale.sukhatmeTest.SukhatmeTest
-
public class SukhatmeTest extends StatisticalTest
The Sukhatme 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). This test assumes that the median of both populations is 0. Hence, samples' values can be arranged into negative and positive ones, to obtain a Mann-Whitney based statistic to test hypothesis of equal scale. An approximation to the Normal distribution is employed to compute asymptotic p-values.
-
-
Constructor Summary
Constructors Constructor and Description SukhatmeTest()Default builderSukhatmeTest(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 testdoublegetDoublePValue()Get double tail p-valuedoublegetLeftPValue()Get left tail p-valuedoublegetRightPValue()Get right tail p-valuedoublegetTestStatistic()Get the test 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
-
SukhatmeTest
public SukhatmeTest()
Default builder
-
SukhatmeTest
public SukhatmeTest(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
-
getTestStatistic
public double getTestStatistic()
Get the test statistic- Returns:
- Sukhatme statistic
-
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
-
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