ci.boot {asbio}R Documentation

Bootstrap confidence intervals

Description

Bootstrap confidence intervals for the output of function bootstrap. Up to five different interval estimation methods can be called simultaneously: the normal approximation, the basic bootstrap, the percentile method, the bias corrected and accelerated method (BCa), and the studentized bootstrap method.

Usage


ci.boot(x, method = "all", sigma.t = NULL, conf = 0.95)

Arguments

x

For ci.boot the list output from bootstrap.

method

CI interval method to be used. One of "all", "norm", "basic", "perc", "BCa", or "student". Partial matches are allowed.

sigma.t

Vector of standard errors in association with studentized intervals.

conf

Confidence level; 1 - P(Type I error).

Author(s)

Ken Aho

References

Manly, B. F. J. (1997) Randomization and Monte Carlo Methods in Biology, 2nd edition. Chapman and Hall, London.

See Also

boot, bootstrap,

Examples



data(vs)
# A partial set of observations from a single plot for a Scandinavian 
# moss/vascular plant/lichen survey.
site18<-t(vs[1,])

#Shannon-Weiner diversity
SW<-function(data){
d<-data[data!=0]
p<-d/sum(d)
-1*sum(p*log(p))
}

b <- bootstrap(site18[,1],SW)
ci.boot(b)

[Package asbio version 1.9-7 Index]