powered by
Performs a test for equality of a Pearson's linear correlation coefficient to a given value.
cor.conf(var1, var2, theo)
a character string giving the name of the test.
a character string giving the name(s) of the data.
test statistics.
p-value of the test.
the value of the theoretical coefficient.
a character string describing the alternative hypothesis.
the estimated correlation coefficient.
numeric vector (first variable).
numeric vector (second variable).
theoretical value.
Maxime HERVE <maxime.herve@univ-rennes1.fr>
cor.test
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