winsor.cor.test: Winsorized correlation test (for paired data)
Description
Test for association between paired samples, using winsorized correlation coefficient.
Usage
winsor.cor.test(x, ...)
## S3 method for class 'default':
winsor.cor.test(x, y, tr=0.2,alternative = c("two.sided", "less", "greater"), ...)
## S3 method for class 'paired':
winsor.cor.test(x,tr=0.2,alternative = c("two.sided", "less", "greater"), ...)
Arguments
x
an object of class paired or the first variable.
y
second variable.
tr
percentage of winsorizing.
alternative
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.
...
further arguments to be passed to or from methods.
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.
estimatethe winsorized correlation.
null.valuethe specified hypothesized value of the winsorized correlation (=0).
alternativea character string describing the alternative hypothesis.
data.namea character string giving the name(s) of the data.