bptdmean <-
function(isub,x,tr){
#
# Compute trimmed means
# when comparing dependent groups.
# By default, 20% trimmed means are used.
# isub is a vector of length n,
# a bootstrap sample from the sequence of integers
# 1, 2, 3, ..., n
#
# This function is used by bptd.
#
bptdmean<-mean(x[isub],tr)
bptdmean
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.