Learn R Programming

PairedData (version 0.9.9)

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

Description

A method designed for objects of class paired.

Usage

## 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:
  • statisticthe value of V statistic.
  • parameterthe parameter(s) for the exact distribution of the test statistic.
  • p.valuethe p-value for the test.
  • null.valuethe true location shift mu.
  • alternativea character string describing the alternative hypothesis.
  • methoda character string indicating what type of test was performed (always paired here)
  • data.namea character string giving the name(s) of the data.
  • conf.inta confidence interval for the location parameter. (Only present if argument conf.int = TRUE.)
  • estimatean estimate of the location parameter. (Only present if argument conf.int = TRUE.)

See Also

yuen.test

Examples

Run this code
data(PrisonStress)
with(PrisonStress,wilcox.test(PSSbefore,PSSafter))
with(PrisonStress,wilcox.test(PSSbefore,PSSafter,paired=TRUE))
with(PrisonStress,wilcox.test(paired(PSSbefore,PSSafter)))

Run the code above in your browser using DataLab