bootstrap: Bootstrap

Description Usage Arguments Value Author(s) Examples

Description

Run a bootstrap for two random variables and estimate the correlation between them.

Usage

1
bootstrap(n,x,y)

Arguments

n

is a positive integer of bootstrap replicates.

x

is the first variable.

y

is the second variable. The length of y has to be the same as the length of x.

Value

Returns a list containing: correlation between the variables x and y, the bootstrap estimation of the correlation, the bootstrap estimation of the standard error, the bias, and the confidence interval.

Author(s)

Tobias Mortensen
Department of mathematics and computer science (IMADA)
University of southern Denmark, Odense
tomor14@student.sdu.dk

Examples

1
bootstrap(n=1000, x=cars$speed, y=cars$dist)

tomor14/Examst522 documentation built on May 31, 2019, 6:20 p.m.