Hi to everyone,
I am trying to calculate the Bca bootstrap confidence intervals for the Pearson
coefficient.
x=Dataset$math.testy=Dataset$geo.testcor(x,y,method="pearson")[1] 0.6983799
boot.ci(cor, conf=0.95, type=bca)Erreur dans boot.out$t0 : objet de type
'closure' non indiçable
I have tried as well to calculate the Pearson coefficient using bootstrap and
then to calculate the Bca bootstrap CIs of the Pearson. It doesn't work either.
boot(data = cbind(x, y), statistic = cor, R = 200)
ORDINARY NONPARAMETRIC BOOTSTRAP
Call:
boot(data = cbind(x, y), statistic = cor, R = 200)
Bootstrap Statistics :
original bias std. error
t1* -0.6243713 0.6295142 0.2506267
t2* -0.1366533 0.1565392 0.2579134
> boot.ci(cor, conf=0.95, type=bca)
Erreur dans boot.out$t0 : objet de type 'closure' non indiçable
Many thanks to tell me how to correct my R script to get the Bca CIs for my
Pearson coefficient. Best regards, looking forward to reading you,
SV
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.