cor.boot.ci | R Documentation |
Returns a bootstrap confidence interval for any of the correlations available in the base R
cor
function.
cor.boot.ci(x, y, method = "spearman", conf = 0.95, nbs = 3000)
x |
n by 1 vector |
y |
n by 1 vector |
method |
Which correlation to use. Argument passed to |
conf |
Confidence level. |
nbs |
number of bootstrap samples to base CI on. |
Obtains a percentile bootstrap confidence interval.
The bootstrap samples are obtained via the function boot
.
A confidence interval.
John Kloke, Joseph McKean
See Also as cor
library(boot)
with(bb2010,cor.boot.ci(ave,hr))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.