Description Usage Arguments Details Value Dependencies Author(s) Examples
Computes one and two-sample Wilcoxon tests on vectors of data.
1 2 3 |
x |
a character, the name of a numeric vector of data values. |
y |
a character, the name of an optional numeric vector of data values. |
alternative |
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter. |
mu |
anumber specifying an optional parameter used to form the null hypothesis. |
paired |
a logical indicating whether you want a paired test. |
exact |
a logical indicating whether an exact p-value should be computed. |
correct |
a logical indicating whether to apply continuity correction in the normal approximation for the p-value. |
conf.int |
a logical indicating whether a confidence interval should be computed. |
conf.level |
confidence level of the interval. |
datasources |
a list of opal object(s) obtained after login in to opal servers;
these objects hold also the data assign to R, as |
The formula interface is only applicable for the 2-sample tests. f only x is given, or if both x and y are given and paired is TRUE, a Wilcoxon signed rank test of the null that the distribution of x (in the one sample case) or of x - y (in the paired two sample case) is symmetric about mu is performed. Otherwise, if both x and y are given and paired is FALSE, a Wilcoxon rank sum test is carried out. In this case, the null hypothesis is that the distributions of x and y differ by a location shift of mu and the alternative is that they differ by some other location shift (and the one-sided alternative "greater" is that x is shifted to the right of y).
A list containg the following components:
statistic |
the value of the test statistic with a name describing it. |
parameter |
the parameter(s) for the exact distribution of the test statistic. |
p.value |
the p-value for the test. |
null.value |
the location parameter mu. |
conf.int |
a confidence interval for the location parameter. If argument conf.int = TRUE. |
estimate |
an estimate of the location parameter. If argument conf.int = TRUE. |
getLength
, getVariance
Paula Raissa Costa e Silva
1 2 3 4 | {
ds.wilcoxTest(x)
ds.wilcoxTest(x, y)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.