Statistics::WilcoxonSign Function

Overload List

#SignatureDescription
1double WilcoxonSign(TVec *Data, const double Median, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, const THypothesisType hType = THypothesisType::htTwoTailed, const double Alpha = 0.05);One or two-sample Wilcoxon signed rank test.
2double WilcoxonSign(TVec *Data1, TVec *Data2, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, const THypothesisType hType = THypothesisType::htTwoTailed, const double Alpha = 0.05);Performs two-sample Wilcoxon Signed-Rank test by comparing Data1 and Data2 medians.

Overload 1: double WilcoxonSign(TVec *Data, const double Median, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, const THypothesisType hType = THypothesisType::htTwoTailed, const double Alpha = 0.05);

One or two-sample Wilcoxon signed rank test.

#NameTypeDescription
1DataTVec *
2Medianconst double
3hResTHypothesisResult &
4Signifdouble &
5ConfIntDewArray<double> &
6hType = THypothesisType::htTwoTailedconst THypothesisType
7Alpha = 0.05const double
Remarks:

Performs one-sample Wilcoxon Signed-Rank test by comparing Data median value with given Median. The null hypothesis is that Data median is equal to Median.

Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler

Overload 2: double WilcoxonSign(TVec *Data1, TVec *Data2, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, const THypothesisType hType = THypothesisType::htTwoTailed, const double Alpha = 0.05);

Performs two-sample Wilcoxon Signed-Rank test by comparing Data1 and Data2 medians.

#NameTypeDescription
1Data1TVec *First set of data from which to compute the median.
2Data2TVec *Second set of data from which to compute the median.
3hResTHypothesisResult &Returns the result of the null hypothesis (default assumption is that the means are equal).
4Signifdouble &(Significance level) returns the probability of observing the given result by chance given that the null hypothesis is true.
5ConfIntDewArray<double> &Returns the 100*(1-Alpha) percent confidence interval for the mean.
6hType = THypothesisType::htTwoTailedconst THypothesisTypeDefines the type of the null hypothesis (left, right and two - tailed).
7Alpha = 0.05const doubleDefines the desired significance level. If the significance probability (Signif) is bellow the desired significance (Alpha), the null hypothesis is rejected.

Returns: The Wilcoxon W statistics.

Remarks:

The routine tests the null hypothesis that Data1 and Data2 have equal median value.

See Also: Statistics::SignTest
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler