hdseb <-
function(x,q=.5,nboot=100,SEED=TRUE){
#
# Compute bootstrap estimate of the standard error of the
# Harrell-Davis estimator of the qth quantile.
# The default quantile is the median, q=.5
# The default number of bootstrap samples is nboot=100
#
if(SEED)set.seed(2) # set seed of random number generator so that
# results can be duplicated.
data<-matrix(sample(x,size=length(x)*nboot,replace=TRUE),nrow=nboot)
bvec<-apply(data,1,hd,q)
hdseb<-sqrt(var(bvec))
hdseb
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.