Learn R Programming

RVAideMemoire (version 0.9-35)

cor.conf: Equality of a Pearson's linear correlation coefficient to a given value

Description

Perform a test for equality of a Pearson's linear correlation coefficient to a given value.

Usage

cor.conf(var1, var2, theo)

Arguments

var1
numeric vector (first variable).
var2
numeric vector (second variable).
theo
theoretical value.

Value

  • methoda character string giving the name of the test.
  • data.namea character string giving the name(s) of the data.
  • statistictest statistics.
  • p.valuep-value of the test.
  • null.valuethe value of the theoretical coefficient.
  • alternativea character string describing the alternative hypothesis.
  • estimatethe estimated correlation coefficient.

See Also

cor.test

Examples

Run this code
var1 <- 1:30+rnorm(30,0,4)
var2 <- 1:30+rnorm(30,0,4)
cor.conf(var1,var2,theo=0.5)

Run the code above in your browser using DataLab