mestseb <-
function(x,nboot=1000,bend=1.28,SEED=TRUE){
#
# Compute bootstrap estimate of the standard error of the
# M-estimators with Huber's Psi.
# The default percentage bend is bend=1.28
# The default number of bootstrap samples is nboot=100
#
if(SEED)set.seed(1) # set seed of random number generator so that
# results can be duplicated.
data<-matrix(sample(x,size=length(x)*nboot,replace=T),nrow=nboot)
bvec<-apply(data,1,mest,bend=bend)
mestseb<-sqrt(var(bvec))
mestseb
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.