Learn R Programming

RVAideMemoire (version 0.9-35)

perm.cor.test: Permutational Pearson's correlation test

Description

Perform a permutational Pearson's product-moment correlation test.

Usage

perm.cor.test(x, y, alternative = c("two.sided", "less", "greater"), nperm = 999)

Arguments

x, y
numeric vectors of data values. x and y must have the same length.
alternative
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less".
nperm
number of permutations.

Value

  • methodname of the test.
  • data.namea character string giving the name(s) of the data.
  • statistictest statistics of the parametric test.
  • permutationsnumber of permutations.
  • p.valuep-value of the permutational test.
  • estimatethe estimated correlation coefficient.
  • alternativea character string describing the alternative hypothesis.
  • null.valuethe value of the association measure under the null hypothesis, always 0.

See Also

cor.test

Examples

Run this code
x <- rnorm(50)
y <- runif(50)
perm.cor.test(x,y)

Run the code above in your browser using DataLab