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

View source: R/cor.conf.R

cor.confR Documentation

Equality of a Pearson's linear correlation coefficient to a given value

Description

Performs 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

method

a character string giving the name of the test.

data.name

a character string giving the name(s) of the data.

statistic

test statistics.

p.value

p-value of the test.

null.value

the value of the theoretical coefficient.

alternative

a character string describing the alternative hypothesis.

estimate

the estimated correlation coefficient.

Author(s)

Maxime HERVE <maxime.herve@univ-rennes1.fr>

See Also

cor.test

Examples

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

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.