View source: R/perm.cor.test.R
perm.cor.test | R Documentation |
Performs a permutation Pearson's product-moment correlation test.
perm.cor.test(x, y, alternative = c("two.sided", "less", "greater"),
nperm = 999, progress = TRUE)
x, y |
numeric vectors of data values. |
alternative |
a character string specifying the alternative hypothesis, must be one of |
nperm |
number of permutations. |
progress |
logical indicating if the progress bar should be displayed. |
The function deals with the limitted floating point precision, which can bias calculation of p-values based on a discrete test statistic distribution.
method |
name of the test. |
data.name |
a character string giving the name(s) of the data. |
statistic |
test statistics of the parametric test. |
permutations |
number of permutations. |
p.value |
p-value of the permutation test. |
estimate |
the estimated correlation coefficient. |
alternative |
a character string describing the alternative hypothesis. |
null.value |
the value of the association measure under the null hypothesis, always 0. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
cor.test
x <- rnorm(50)
y <- runif(50)
perm.cor.test(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.