powered by
Create a matrix of bootstrap samples expressed as frequency weights
bootstrapWeights(size, times)
A matrix with bootstrap samples expressed as frequency weights. Each column represents a single bootstrap iteration and each row represents a case.
Number of values to bootstrap
Number of bootstraps
# 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)
Run the code above in your browser using DataLab