javanpst.tests.oneSample.signTest
Class SignTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.oneSample.signTest.SignTest
-
public class SignTest extends StatisticalTest
The sign test This is a special case of the Population Quantile test where the quantile is 0.5 (the median) and the hypothesis value is 0. If a sequence is tested, the null hypothesis will be median=0 If a two-column table is analyzed, then the population of differences will be tested, thus testing which population is greater
-
-
Constructor Summary
Constructors Constructor and Description SignTest()Default builderSignTest(DataTable newData)Builder.SignTest(NumericSequence newSequence)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-valuedoublegetK()Get K statistic of the first sampledoublegetK2()Get K statistic of the second sampledoublegetLeftPValue()Get left tail p-valuedoublegetRightPValue()Get right tail p-valuejava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testvoidsetData(DataTable newData)Sets data from two populations to testvoidsetData(NumericSequence newSequence)Sets data to test-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
SignTest
public SignTest()
Default builder
-
SignTest
public SignTest(NumericSequence newSequence)
Builder. Load data to test.- Parameters:
newSequence- data to test.
-
SignTest
public SignTest(DataTable newData)
Builder. Load data from two populations 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(NumericSequence newSequence)
Sets data to test- Parameters:
newSequence- data to test.
-
setData
public void setData(DataTable newData)
Sets data from two populations to test- Parameters:
newData- data to test.
-
doTest
public void doTest()
Performs the test- Specified by:
doTestin classStatisticalTest
-
getK
public double getK()
Get K statistic of the first sample- Returns:
- K statistic
-
getK2
public double getK2()
Get K statistic of the second sample- Returns:
- K 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