Learn R Programming

RVAideMemoire (version 0.9-11)

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

  • 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.
  • H1a character string giving the explicit alternative hypothesis.
  • data.namea character string giving the names of the data.
  • conf.intthe 95% confidence interval for the correlation coefficient.

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