Description Usage Arguments Value Author(s) Examples
This function takes as arguments the number of bootstrap replicates n
,
x
and y
which are two numerical vectors / data, then bootstrap from x ,y
, and calculate the correlation of these data for each resampling n times.
If plot
is chosen to be TRUE, then the function plots the histogram, as well as the 95
estimates.
1 | bootstrap.correlation(n=2000, x , y, plot = FALSE)
|
n |
number of bootstrap samples. |
x |
a numeric vector. |
y |
a numeric vector. |
plot |
specifies whether a plot should be created or not |
Returns a list containing: the estimated correlation of the two given vectors, the bootstrap estimated correlation of the data and the 95 percent confidence interval.
Nguyen Khanh Le Ho
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.