javanpst.tests.location.wilcoxonRankSumTest
Class WilcoxonRankSumTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.location.wilcoxonRankSumTest.WilcoxonRankSumTest
-
public class WilcoxonRankSumTest extends StatisticalTest
The Wilcoxon Ranks-Sum test. This test can be used for testing the null hypothesis of equal medians between two samples, assuming the location model. An exact and a normal approximation of p-values is provided. (exact p-values are only computes if samples' size is equal or lower than 10). Moreover, confidence intervals for the differences of medians (at 0.90 and 0.95 level) are computed. Asymptotic 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 WilcoxonRankSumTest()Default builderWilcoxonRankSumTest(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 testdoublegetAsymptoticDoublePValue()Get asymptotic double tail p-valuedoublegetAsymptoticLeftPValue()Get asymptotic left tail p-valuedoublegetAsymptoticRightPValue()Get asymptotic right tail p-valuedoublegetExactConfidence90()Get exact confidence of the 0.90 confidence intervaldoublegetExactConfidence95()Get exact confidence of the 0.95 confidence intervaldoublegetExactDoublePValue()Get exact double tail p-valuedoublegetExactLeftPValue()Get exact left tail p-valuedoublegetExactRightPValue()Get exact right tail p-valuedoublegetStatistic1()Get Wilcoxon Statisticjava.lang.StringprintConfidenceInterval90()Prints the confidence interval for median difference at 0.90 level.java.lang.StringprintConfidenceInterval95()Prints the confidence interval for median difference at 0.95 level.java.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
-
WilcoxonRankSumTest
public WilcoxonRankSumTest()
Default builder
-
WilcoxonRankSumTest
public WilcoxonRankSumTest(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
-
getStatistic1
public double getStatistic1()
Get Wilcoxon Statistic- Returns:
- Wilcoxon Statistic
-
getExactLeftPValue
public double getExactLeftPValue()
Get exact left tail p-value- Returns:
- left tail p-value computed
-
getExactRightPValue
public double getExactRightPValue()
Get exact right tail p-value- Returns:
- right tail p-value computed
-
getExactDoublePValue
public double getExactDoublePValue()
Get exact double tail p-value- Returns:
- double tail p-value computed
-
getAsymptoticLeftPValue
public double getAsymptoticLeftPValue()
Get asymptotic left tail p-value- Returns:
- left tail p-value computed
-
getAsymptoticRightPValue
public double getAsymptoticRightPValue()
Get asymptotic right tail p-value- Returns:
- right tail p-value computed
-
getExactConfidence90
public double getExactConfidence90()
Get exact confidence of the 0.90 confidence interval- Returns:
- double tail p-value computed
-
getExactConfidence95
public double getExactConfidence95()
Get exact confidence of the 0.95 confidence interval- Returns:
- double tail p-value computed
-
printConfidenceInterval90
public java.lang.String printConfidenceInterval90()
Prints the confidence interval for median difference at 0.90 level.- Returns:
- Data stored
-
printConfidenceInterval95
public java.lang.String printConfidenceInterval95()
Prints the confidence interval for median difference at 0.95 level.- Returns:
- Data stored
-
getAsymptoticDoublePValue
public double getAsymptoticDoublePValue()
Get asymptotic 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