ci.boot | R Documentation |
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.
ci.boot(x, method = "all", sigma.t = NULL, conf = 0.95)
x |
For |
method |
CI interval method to be used. One of |
sigma.t |
Vector of standard errors in association with studentized intervals. |
conf |
Confidence level; 1 - P(Type I error). |
Ken Aho
Manly, B. F. J. (1997) Randomization and Monte Carlo Methods in Biology, 2nd edition. Chapman and Hall, London.
boot
, bootstrap
,
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.