wilcox.test: Wilcoxon's signed rank test for paired data

Description Usage Arguments Value Author(s) See Also Examples

Description

A method designed for objects of class paired.

Usage

1
2
## S3 method for class 'paired'
wilcox.test(x, ...)

Arguments

x

An object of class paired.

...

further arguments to be passed to or from methods.

Value

A list with class "htest" containing the following components:

statistic

the value of V statistic.

parameter

the parameter(s) for the exact distribution of the test statistic.

p.value

the p-value for the test.

null.value

the true location shift mu.

alternative

a character string describing the alternative hypothesis.

method

a character string indicating what type of test was performed (always paired here)

data.name

a character string giving the name(s) of the data.

conf.int

a confidence interval for the location parameter. (Only present if argument conf.int = TRUE.)

estimate

an estimate of the location parameter. (Only present if argument conf.int = TRUE.)

Author(s)

Stephane Champely

See Also

yuen.test

Examples

1
2
3
4
data(PrisonStress)
with(PrisonStress,wilcox.test(PSSbefore,PSSafter))
with(PrisonStress,wilcox.test(PSSbefore,PSSafter,paired=TRUE))
with(PrisonStress,wilcox.test(paired(PSSbefore,PSSafter)))

Example output

Loading required package: MASS
Loading required package: gld
Loading required package: mvtnorm
Loading required package: lattice
Loading required package: ggplot2

Attaching package: 'PairedData'

The following object is masked from 'package:base':

    summary


	Wilcoxon rank sum test with continuity correction

data:  PSSbefore and PSSafter
W = 320.5, p-value = 0.7554
alternative hypothesis: true location shift is not equal to 0

Warning message:
In wilcox.test.default(PSSbefore, PSSafter) :
  cannot compute exact p-value with ties

	Wilcoxon signed rank test with continuity correction

data:  PSSbefore and PSSafter
V = 158.5, p-value = 0.9249
alternative hypothesis: true location shift is not equal to 0

Warning messages:
1: In wilcox.test.default(PSSbefore, PSSafter, paired = TRUE) :
  cannot compute exact p-value with ties
2: In wilcox.test.default(PSSbefore, PSSafter, paired = TRUE) :
  cannot compute exact p-value with zeroes

	Wilcoxon signed rank test with continuity correction

data:  PSSbefore and PSSafter
V = 158.5, p-value = 0.9249
alternative hypothesis: true location shift is not equal to 0

Warning messages:
1: In wilcox.test.default(x = c(25, 17, 12, 21, 29, 28, 21, 18, 20,  :
  cannot compute exact p-value with ties
2: In wilcox.test.default(x = c(25, 17, 12, 21, 29, 28, 21, 18, 20,  :
  cannot compute exact p-value with zeroes

PairedData documentation built on May 1, 2019, 6:49 p.m.