Hi,
I'm afraid boot() doesn't want to become friends with me.
I tried to boot a very simple regression and I did it exactly as told by the Quick-R: Bootstrapping site. But it won't calculate the bias and the standard error...
My script looks as followed:
TPfunction <- function(formula, data, coefficients) {
d <- data[coefficients, ]
fitTP <- lm(formula, data = d)
return(coef(fitTP))
}
boot_JSTP <- boot(data = data_JS2, statistic = TPfunction, R = 1000, formula = JS.All2 ~ TP.All2)
boot.ci(boot_JSTP,
conf = .95,
type = "bca",
replace = T, index = 2)
And the output like that:
> boot_JSTP
ORDINARY NONPARAMETRIC BOOTSTRAP
Call:
boot(data = data_JS2, statistic = TPfunction, R = 1000, formula = JS.All2 ~
TP.All2)
Bootstrap Statistics :
original bias std. error
t1* 5.784360 0 0
t2* -0.174887 0 0
Does anybody know what I miss?