theta.boot <- function(dat, ind) {
#function to compute the statistic
y <- dat[ind, 1]
z <- dat[ind, 2]
mean(y) / mean(z)
}
y <- patch$y
z <- patch$z
dat <- cbind(y, z)
boot.obj <- boot(dat, statistic = theta.boot, R = 2000)
请教各位,上面首先定义的那个函数中有一个参数ind没有定义,这个参数后面boot函数里面也没有设定,这个参数是什么意思,还请懂的同仁指点一下。谢谢。