public class WilcoxonSignedRank extends HypothesisTest
wilcox.test.| Constructor and Description |
|---|
WilcoxonSignedRank(double[] sample)
Perform the Wilcoxon Signed Rank test to test for the equality of medians.
|
WilcoxonSignedRank(double[] sample1,
double[] sample2)
Perform the Wilcoxon Signed Rank test to test for the equality of medians.
|
WilcoxonSignedRank(double[] sample1,
double[] sample2,
double mu,
boolean isExact)
Perform the Wilcoxon Signed Rank test to test for the equality of medians.
|
WilcoxonSignedRank(double[] sample,
int mu)
Perform the Wilcoxon Signed Rank test to test for the equality of medians.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlternativeHypothesis()
Get the description of the alternative hypothesis.
|
String |
getNullHypothesis()
Get a description of the null hypothesis.
|
double |
leftOneSidedPvalue()
Get the left, one-sided p-value.
|
double |
pValue()
Get the p-value for the test statistics.
|
double |
rightOneSidedPvalue()
Get the right, one-sided p-value.
|
double |
statistics()
Get the test statistics.
|
isNullRejected, nGroups, nObs, oneSidedPvaluepublic WilcoxonSignedRank(double[] sample1,
double[] sample2,
double mu,
boolean isExact)
sample1 - sample 1sample2 - sample 2mu - the hypothetical median that the distribution is symmetric aboutisExact - true if to use the exact distribution; otherwise, normal approximation is usedpublic WilcoxonSignedRank(double[] sample1,
double[] sample2)
sample1 - sample 1sample2 - sample 2public WilcoxonSignedRank(double[] sample,
int mu)
sample - a samplemu - the hypothetical median that the distribution is symmetric aboutpublic WilcoxonSignedRank(double[] sample)
sample - a samplepublic String getNullHypothesis()
HypothesisTestgetNullHypothesis in class HypothesisTestpublic String getAlternativeHypothesis()
HypothesisTestgetAlternativeHypothesis in class HypothesisTestpublic double statistics()
HypothesisTeststatistics in class HypothesisTestpublic double pValue()
HypothesisTestpValue in class HypothesisTestpublic double rightOneSidedPvalue()
public double leftOneSidedPvalue()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.