boot.dist.1d: Generate a bootstrap distribution for a statistic computed on...

Description Usage Arguments Value Examples

Description

Given data x, generates a bootstrap distribution with B bootstrap samples, computing a statistic speficied by FUN each time.

Usage

1
boot.dist.1d(x, B, FUN = mean, ...)

Arguments

x

A numeric vector of data.

B

The number of bootstrap samples to draw.

FUN

A function that computes the statistic of interest. FUN must have a vector of data as its first argument and must return a numeric vector of length 1 (i.e. a scalar).

...

Additional arguments passed to FUN.

Value

A numeric vector containing the bootstrap distribution of the statistic specified by FUN.

Examples

1
boot.dist.1d(rnorm(50, 0, 1), 1000, median)

mdedge/stfspack documentation built on May 9, 2019, 8:17 a.m.