Statistics::SignTest Function

Overload List

#SignatureDescription
1double SignTest(TVec *Data, double Median, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, const THypothesisType hType = THypothesisType::htTwoTailed, const double Alpha = 0.05);One or two-sample Sign test.
2double SignTest(TVec *Data1, TVec *Data2, THypothesisResult &hRes, double &Signif, DewArray<double> &ConfInt, const THypothesisType hType = THypothesisType::htTwoTailed, const double Alpha = 0.05);Performs paired Sign test. The routine tests the null hypothesis that Data1 and Data2 have equal median value.

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

One or two-sample Sign test.

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

Performs one-sample Sign test by comparing Data median value with given Median. The null hypothesis is that Data median is equal to Median. Additional assumption is that underlying population is continuous.

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

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

Performs paired Sign test. The routine tests the null hypothesis that Data1 and Data2 have equal median value.

#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 Sign test statistics.

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