ds.wilcoxTest: Distributed Wilcoxon Rank Sum and Signed Rank Tests

Description Usage Arguments Details Value Dependencies Author(s) Examples

Description

Computes one and two-sample Wilcoxon tests on vectors of data.

Usage

1
2
3
ds.wilcoxTest(x, y = NULL, alternative = c("two.sided", "less",
  "greater"), mu = 0, paired = FALSE, exact = NULL, correct = TRUE,
  conf.int = FALSE, conf.level = 0.95, datasources = NULL)

Arguments

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 data frame, from opal datasources.

Details

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).

Value

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.

Dependencies

getLength, getVariance

Author(s)

Paula Raissa Costa e Silva

Examples

1
2
3
4

paularaissa/distStatsClient documentation built on June 19, 2019, 12:43 a.m.