javanpst.tests.location.normalScoresTest
Class NormalScoresTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.location.normalScoresTest.NormalScoresTest
-
public class NormalScoresTest extends StatisticalTest
The Normal scores test. The Normal scores test (van der Warden test) uses inverse normal scores to asign ranks to data, before testing the null hypothesis of equal location. P-value is computed through a normal approximation. Ties are handled by the midranks method, and an appropriate reduction of variance is considered.
-
-
Constructor Summary
Constructors Constructor and Description NormalScoresTest()Default builderNormalScoresTest(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-valuedoublegetNormalStatistic1()Get Normal Statistic of the first sampledoublegetNormalStatistic2()Get Normal Statistic of the second sampledoublegetRightPValue()Get right tail p-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
-
NormalScoresTest
public NormalScoresTest()
Default builder
-
NormalScoresTest
public NormalScoresTest(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
-
getNormalStatistic1
public double getNormalStatistic1()
Get Normal Statistic of the first sample- Returns:
- normal Statistic of the first sample
-
getNormalStatistic2
public double getNormalStatistic2()
Get Normal Statistic of the second sample- Returns:
- normal Statistic of the second sample
-
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