javanpst.tests.scale.freund_Ansari_BradleyTest
Class Freund_Ansari_BradleyTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.scale.freund_Ansari_BradleyTest.Freund_Ansari_BradleyTest
-
public class Freund_Ansari_BradleyTest extends StatisticalTest
The Freund-Ansari-Bradley 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). The Freund-Ansari-Bradley test ranks elements with the following weights: 1,2,3 ... N/2 ... 3,2,1 for N even 1,2,3 ... (N+1/2) ... 3,2,1 for N odd An approximation to the Normal distribution is employed to compute p-values.
-
-
Constructor Summary
Constructors Constructor and Description Freund_Ansari_BradleyTest()Default builderFreund_Ansari_BradleyTest(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-valuedoublegetLeftPValue()Get left tail p-valuedoublegetRightPValue()Get right tail p-valuedoublegetTestStatistic1()Get test statistic associated to the first sampledoublegetTestStatistic2()Get test statistic associated to the second samplejava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testjava.lang.StringprintWeights()Prints the array of weightsvoidsetData(DataTable newData)Sets data to test-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
Freund_Ansari_BradleyTest
public Freund_Ansari_BradleyTest()
Default builder
-
Freund_Ansari_BradleyTest
public Freund_Ansari_BradleyTest(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
-
getTestStatistic1
public double getTestStatistic1()
Get test statistic associated to the first sample- Returns:
- normal Statistic of the first sample
-
getTestStatistic2
public double getTestStatistic2()
Get test statistic associated to 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
-
printWeights
public java.lang.String printWeights()
Prints the array of weights- Returns:
- string with the contents of the array
-
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