|
WilcoxonSignedRankTest Constructor
|
Tests the null hypothesis that the sample median is equal to a hypothesized value.
Namespace:
Accord.Statistics.Testing
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public WilcoxonSignedRankTest(
double[] sample,
double hypothesizedMedian = 0,
OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis,
Nullable<bool> exact = null,
bool adjustForTies = true
)
Public Sub New (
sample As Double(),
Optional hypothesizedMedian As Double = 0,
Optional alternate As OneSampleHypothesis = OneSampleHypothesis.ValueIsDifferentFromHypothesis,
Optional exact As Nullable(Of Boolean) = Nothing,
Optional adjustForTies As Boolean = true
)
Request Example
View SourceParameters
- sample
- Type: SystemDouble
The data samples from which the test will be performed. - hypothesizedMedian (Optional)
- Type: SystemDouble
The constant to be compared with the samples. - alternate (Optional)
- Type: Accord.Statistics.TestingOneSampleHypothesis
The alternative hypothesis (research hypothesis) to test. - exact (Optional)
- Type: SystemNullableBoolean
True to compute the exact distribution. May require a significant
amount of processing power for large samples (n > 12). If left at null, whether to
compute the exact or approximate distribution will depend on the number of samples.
Default is null. - adjustForTies (Optional)
- Type: SystemBoolean
Whether to account for ties when computing the
rank statistics or not. Default is true.
See Also