javanpst.tests.countData.orderedEqualityTest
Class OrderedEqualityTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.countData.orderedEqualityTest.OrderedEqualityTest
-
public class OrderedEqualityTest extends StatisticalTest
A multinomial equality test for ordered categories This test can be applied in 2 x K tables with ordered categories, with the aim of testing if column probabilities are the same, that is, if p11=p12, p21 = p22, .. , p1k = p2k. Alternative is that probabilities are in increasing or decreasing order (directional). A normal approximation, through a modification of the Wilcoxon rank-sum statistic (Mann-Whitney statistic) is provided for all the alternatives.
-
-
Constructor Summary
Constructors Constructor and Description OrderedEqualityTest()Default builderOrderedEqualityTest(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 testdoublegetDoublePValue()Get double tail p-valuedoublegetLeftPValue()Get left tail p-valuedoublegetRightPValue()Get right tail p-valuedoublegetWx()Get W statistic for first rowdoublegetWy()Get W statistic for second rowdoublegetZleft()Get Z value for left tailed hypothesisdoublegetZright()Get Z value for right tailed hypothesisjava.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
-
OrderedEqualityTest
public OrderedEqualityTest()
Default builder
-
OrderedEqualityTest
public OrderedEqualityTest(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
-
getWx
public double getWx()
Get W statistic for first row- Returns:
- W statistic for first row
-
getWy
public double getWy()
Get W statistic for second row- Returns:
- W statistic for second row
-
getZleft
public double getZleft()
Get Z value for left tailed hypothesis- Returns:
- W statistic for second row
-
getZright
public double getZright()
Get Z value for right tailed hypothesis- Returns:
- W statistic for second row
-
getRightPValue
public double getRightPValue()
Get right tail p-value- Returns:
- p-value computed
-
getLeftPValue
public double getLeftPValue()
Get left tail p-value- Returns:
- p-value computed
-
getDoublePValue
public double getDoublePValue()
Get double tail p-value- Returns:
- 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