bootstrap: bootstrap

Description Usage Arguments Author(s) Examples

View source: R/bootstrap.R

Description

This function is used for estimating standard errors when the distribution is not know.

Usage

1
  bootstrap(x, boots = 100, fn)

Arguments

x

a vector.

boots

The number of bootstraps.

fn

the function you want to bootstrap, ie., mean, var, cov, etc.

Author(s)

Tyler Hunt tyler@psychoanalytix.com

Examples

1
2
x = runif(10, 0, 1)
bootstrap(x,fn=mean)

JackStat/CompPack documentation built on May 7, 2019, 10:16 a.m.