bootstrap: Bootstrap Estimator

Description Usage Arguments Value Author(s) Examples

Description

This function takes 3 arguments to estimate the correlation between them, as well as the bootstrap estimation of the correlation, standard error, bias and confidence interval, using these arguments.

Usage

1
bootstrap(n=200, x, y, plot=FALSE)

Arguments

n

is a positive integer that specifies how many bootstrap replicates should be used for estimation.

x

is a vector of numeric values to be used with y to estimate correlation and bootstrap estimates.

y

is a vector of numeric values to be used with x to estimate correlation and bootstrap estimates. y has to be of the same length as x.

plot

is a boolean value that specifies whether a plot should be created or not

Value

returns the Correlation, as well as bootstrap estimation of correlation(BootstrapCor), standard error(StandardError), bias(Bias) and confidence interval(CI).

Author(s)

Emil H. Andersen
Department of Mathematics and Computer Science (IMADA)
University of Southern Denmark, Denmark
emila14@student.sdu.dk

Examples

1
2
#Add examples for the function to explain to others how they can be used
bootstrap(n=1000, x=rnorm(30),y=rnorm(30), plot = TRUE)

Chaiji/ChaijiExamST522 documentation built on May 6, 2019, 9:55 a.m.