spearman.ci | R Documentation |
Computes the confidence interval of a Spearman's rank correlation coefficient by bootstraping.
spearman.ci(var1, var2, nrep = 1000, conf.level = 0.95)
var1 |
numeric vector (first variable). |
var2 |
nuermic verctor (second variable). |
nrep |
number of replicates for bootstraping. |
conf.level |
confidence level of the interval. |
method |
name of the test. |
data.name |
a character string giving the name(s) of the data. |
conf.level |
confidence level. |
rep |
number of replicates. |
estimate |
Spearman's rank correlation coefficient. |
conf.int |
confidence interval. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
cor.test
, boot
var1 <- sample(1:50,15,replace=TRUE)
var2 <- sample(1:50,15,replace=TRUE)
spearman.ci(var1,var2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.