javanpst.tests.twoSample.controlMedianTest
Class ControlMedianTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.twoSample.controlMedianTest.ControlMedianTest
-
public class ControlMedianTest extends StatisticalTest
The control median test This test can be applied to test the null hypotheses of equal medians between populations. P-values are computed through a chi-square distribution approximation. Exact p-value is computed through U and V statistics (number of values below of the opposite sample median). An asymptotic approximation to the normal distribution is also computed.
-
-
Constructor Summary
Constructors Constructor and Description ControlMedianTest()Default builderControlMedianTest(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-valuedoublegetMedian()Get median of the sample 1doublegetMedian2()Get median of the sample 2doublegetRightPValue()Get right tail p-valuedoublegetU()Get U statisticdoublegetV()Get V 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
-
ControlMedianTest
public ControlMedianTest()
Default builder
-
ControlMedianTest
public ControlMedianTest(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
-
getU
public double getU()
Get U statistic- Returns:
- U statistic
-
getV
public double getV()
Get V statistic- Returns:
- V statistic
-
getMedian
public double getMedian()
Get median of the sample 1- Returns:
- median value
-
getMedian2
public double getMedian2()
Get median of the sample 2- Returns:
- median value
-
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