javanpst.tests.oneSample.wilcoxonTest
Class WilcoxonTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.oneSample.wilcoxonTest.WilcoxonTest
-
public class WilcoxonTest extends StatisticalTest
The Wilcoxon Signed-Ranks test This test is proposed for use with paired-sample data in making inferences concerning the value of the median of the population of differences. Zero differences are shared between both samples. If there is a odd number of them, one is discarded. Ties are handled by the midrank method. An exact p-value (for p-values equal or lower than 0.2, and sample size equal or lower than 50) is provided. An asymptotic approximation to the normal distribution is also provided. Furthermore, this version of the test also provides two confidence intervals (at 0.90 and 0.95 levels) for the location of the median of the differences, through the use of Walsh averages.
-
-
Constructor Summary
Constructors Constructor and Description WilcoxonTest()Default builderWilcoxonTest(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-valuedoublegetRMinus()Get R- statistic of the second sampledoublegetRPlus()Get R+ statistic of the first samplejava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testvoidsetData(DataTable newData)Load data to test.-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
WilcoxonTest
public WilcoxonTest()
Default builder
-
WilcoxonTest
public WilcoxonTest(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)
Load data to test.- Parameters:
newData- data to test.
-
doTest
public void doTest()
Performs the test- Specified by:
doTestin classStatisticalTest
-
getRPlus
public double getRPlus()
Get R+ statistic of the first sample- Returns:
- R+ statistic
-
getRMinus
public double getRMinus()
Get R- statistic of the second sample- Returns:
- R- statistic
-
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
-
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