3
I’m having a problem getting some values given by the function boot
in R:
My data
dados<- c(16483.82, 16463.06, 15649.35, 15615.27, 20034.44, 16254.43, 16946.72)
meanFunc <- function(x,i){mean(x[i])}
bootMean <-(boot(data=x,statistic=meanFunc,R=1000))
After this, I do > bootMean
and the result is this:
ORDINARY NONPARAMETRIC BOOTSTRAP
Call:
boot(data = x, statistic = meanFunc, R = 1000)
Bootstrap Statistics :
original bias std. error
t1* 16778.16 -0.9335903 540.371
I took some of these codes at this link
I tried to convert to a data frame but it didn’t work.
You can mark your answer as accepted in this case.
– gmsantos