boot: Bootstrap

View source: R/boot.R

bootR Documentation

Bootstrap

Description

A generic function to boostrap the desired statistics.

Usage

boot(data, FUN, alpha = 0.05, nrep = 5000, ...)

Arguments

data

The data sets.

FUN

A function comuting the desired statistics.

alpha

Type I error rate. Default is .05.

nrep

Number of repetitions for the boostrap. Default is 5000.

...

Optional arguments for FUN.

Value

Return the estimates computed by FUN, their standard error and their 100 * (1-\alpha)% confidence interval.

Examples

boot(data = rpois(n = 10, lambda = 5), FUN = median, nrep = 10)

quantmeth/pathanalysis documentation built on Aug. 6, 2023, 8:56 a.m.