bootstrapWeights {rapidsplithalf}R Documentation

Bootstrap Weights

Description

Create a matrix of bootstrap samples expressed as frequency weights

Usage

bootstrapWeights(size, times)

Arguments

size

Number of values to bootstrap

times

Number of bootstraps

Value

A matrix with bootstrap samples expressed as frequency weights. Each column represents a single bootstrap iteration and each row represents a case.

Examples

# Rapidly compute a bootstrapped median to obtain its standard error
myweights<-bootstrapWeights(size=50, times=100)
meds<-mediansByWeight(x=rnorm(50),weights=myweights)
# SE
sd(meds)


[Package rapidsplithalf version 0.2 Index]