bootstrap.correlation: Bootstrap Estimation of Correlation

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1
bootstrap.correlation(n=2000, x , y, plot = FALSE)

Arguments

n

number of bootstrap samples.

x

a numeric vector.

y

a numeric vector.

plot

specifies whether a plot should be created or not

Value

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.

Author(s)

Nguyen Khanh Le Ho

Examples

1

Honguyen14/anything documentation built on May 7, 2019, 4:02 a.m.