bootstrapWeights {rapidsplithalf} | R Documentation |
Create a matrix of bootstrap samples expressed as frequency weights
bootstrapWeights(size, times)
size |
Number of values to bootstrap |
times |
Number of bootstraps |
A matrix with bootstrap samples expressed as frequency weights. Each column represents a single bootstrap iteration and each row represents a case.
# 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)