Learn R Programming

PairedData (version 0.5)

yuenp.test: Yuen test for paired samples

Description

Robust test of location for paired samples based on trimmed means, greatly inspired from Wilcox (2005)

Usage

yuenp.test(x, y = NULL, alternative = c("two.sided", "less", "greater"),
         mu = 0, conf.level = 0.95,tr=0.2)

Arguments

x
First sample
y
Second sample
alternative
Alternative hypothesis
mu
A priori difference of trimmed means
conf.level
Confidence level
tr
Percentage of trimming

Value

  • A list with class "htest" containing the following components:
  • statisticThe value of the t-statistic.
  • parameterThe degrees of freedom for the t-statistic.
  • p.valueThe p-value for the test.
  • conf.intA confidence interval for the difference in trimmed means appropriate to the specified alternative hypothesis.
  • estimateThe estimated trimmed means
  • null.valueThe specified hypothesized value of the trimmed mean difference.
  • alternativeA character string describing the alternative hypothesis.
  • methodA character string indicating what type of test was performed.
  • data.nameA character string giving the name(s) of the data.

References

Wilcox, R.R. (2005). Introduction to robust estimation and hypothesis testing. Academic Press.

See Also

t.test

Examples

Run this code
z<-rnorm(20)
x<-rnorm(20)+z
y<-rnorm(20)+z+1
yuenp.test(x,y)

Run the code above in your browser using DataLab