cor.conf | R Documentation |
Performs a test for equality of a Pearson's linear correlation coefficient to a given value.
cor.conf(var1, var2, theo)
var1 |
numeric vector (first variable). |
var2 |
numeric vector (second variable). |
theo |
theoretical 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. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.