Learn R Programming

PairedData (version 0.5)

yuen1.test: Yuen test for one sample

Description

Robust test of location for one sample based on the trimmed mean, greatly inspired from Wilcox (2005)

Usage

yuen1.test(x,tr=.2,conf.level = 0.95,mu=0,alternative=c("two.sided", "less", "greater"))

Arguments

x
Sample
tr
Percentage of trimming
conf.level
Confidence level
mu
A priori value of the (population) trimmed mean
alternative
Alternative hypothesis

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 trimmed mean appropriate to the specified alternative hypothesis
  • estimateThe estimated trimmed mean
  • null.valueThe specified hypothesized value of the (population) trimmed mean
  • 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, yuenp.test, wilcox.test

Examples

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

Run the code above in your browser using DataLab