javanpst.tests.multiple.friedmanTest
Class FriedmanTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.multiple.friedmanTest.FriedmanTest
-
public class FriedmanTest extends StatisticalTest
The Friedman's test. This test can be applied to reject as null hypothesis that the n medians of the treatments (columns) are equal when applied to k blocks (rows). Ties are broken by the midrank method (e.g. a tie in ranks 6 and 7 is assumed as a 6.5 rank for both values). Variance of the statistic is adjusted as a consequence of ties A multiple-comparisons procedure (Bonferroni-Dunn), applied at 0.10 and 0.05 levels of significance is also provided.
-
-
Constructor Summary
Constructors Constructor and Description FriedmanTest()Default builderFriedmanTest(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 testdoublegetAvgRanks(int pop)Get average rank of the selected populationdoublegetPValue()Get p-valuedoublegetQ()Get Q statisticdoublegetS()Get S statisticjava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintMultipleComparisonsProcedureReport()Prints a report with the results of the multiple comparisons procedurejava.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
-
FriedmanTest
public FriedmanTest()
Default builder
-
FriedmanTest
public FriedmanTest(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
-
getS
public double getS()
Get S statistic- Returns:
- S statistic
-
getQ
public double getQ()
Get Q statistic- Returns:
- Q statistic
-
getPValue
public double getPValue()
Get p-value- Returns:
- p-value computed
-
getAvgRanks
public double getAvgRanks(int pop)
Get average rank of the selected population- Parameters:
pop- population index (from 1 to k)- Returns:
- average rank of the population
-
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
-
printMultipleComparisonsProcedureReport
public java.lang.String printMultipleComparisonsProcedureReport()
Prints a report with the results of the multiple comparisons procedure- Returns:
- Output report
-
-
DMelt 3.0 © DataMelt by jWork.ORG