i have vector of bootstrap-calculated statistics, , want calculate confidence intervals. i'd use boot.ci() bootstrap stats weren't produced in r, aren't 'boot' object. know how convert these boot object? i've had google , tried few things such saving relevant info in list , trying convert boot object, can't figure out. bootstrap output (simplified version) is:
x <- c(0.2, 0.4, 0.47, 0.27, 0.27, 0.2) (which corresponds '$t' bit in output tsboot()/input boot.ci, r=6 , l=3 blocked ). in advance help.
update: works:
library(boot) x <- as.matrix(c(0.2, 0.4, 0.47, 0.27, 0.27, 0.2), ncol=6) outs <- list(t0=.27, t=x, r=6, l=3) boot.ci(outs, type=c('norm', 'basic'))
Comments
Post a Comment