Description Usage Arguments Value Author(s) See Also Examples
A method designed for objects of class paired.
1 2 | ## S3 method for class 'paired'
wilcox.test(x, ...)
|
x |
An object of class paired. |
... |
further arguments to be passed to or from methods. |
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.) |
Stephane Champely
yuen.test
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)))
|
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.