Learn R Programming

RVAideMemoire (version 0.9-6)

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

  • r.theotheoretical coefficient.
  • r.obsobserved coefficient.
  • utest statistics.
  • pp-value.
  • conformdata.frame of results.

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