bootstrap: Generalized bootstrapper

View source: R/statistics.R

bootstrapR Documentation

Generalized bootstrapper

Description

Computes bootstrap resamples of a statistic

Usage

bootstrap(x, y = NULL, fun, boot.reps = 1000, alpha = 0.05)

Arguments

x

A numeric vector.

y

NULL (default) or a numeric vector for statistics that require a second numeric vector

fun

A character vector of the desired statistic function. For instance, to calculate the variance of values in the numeric vector, pass "var".

boot.reps

The number of bootstrapping replications.

alpha

The significance level for calculating a confidence interval.


neyhartj/miscRutils documentation built on Jan. 17, 2024, 11:15 a.m.