bootstrap: Bootstrap

Description Usage Arguments Value

View source: R/Module1_code.R

Description

Bootstrap

Usage

1
bootstrap(data, FUN, ..., B = 1000)

Arguments

data

the original sample, as a vector, matrix or dataframe

FUN

a function to calculate an estimate of the parameter of interest. FUN must act on a vector in 1-dim case, or a matrix or data-frame in N-dim case. It must also return a single number.

B

the number of bootstrap replications

data

is a vector, matrix or data-frame

Value

a list consisting of

replicates

a matrix containing an estimate for the parameter of interest of each bootstrap replicate

se

the standard error of the parameter estimates


EllaKaye/Module1 documentation built on May 6, 2019, 3:25 p.m.