twolsregsub <-
function(isub, x, y)
{
#
# Compute least squares estimate of the
# slope using x[isub] and y[isub]
# isub is a vector of length n,
# a bootstrap sample from the sequence of integers
# 1, 2, 3, ..., n
#
twolsregsub<-lsfit(x[isub],y[isub])$coef[2]
twolsregsub
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.