boot.CI {FertBoot}R Documentation

Bootstrap confidence intervals of mean

Description

Bootstrap confidence intervals of mean

Usage

boot.CI(x, alpha = 0.05, CI.type = "all")

Arguments

x

a vector of observation

alpha

significance level (default: 0.05)

CI.type

type of CI required (default: "all")

Value

boot.CI return list of confidence intervals of mean (CI.percent: percentile, CI.BC: bias-corrected and CI.BCa: bias-corrected and accelerated).

Examples


set.seed(12)
boot.CI(rnorm(1000, mean=0, sd=1), alpha=0.05, CI.type="per") # example of wrong input for type
boot.CI(rnorm(1000, mean=0, sd=1), alpha=0.05, CI.type="all") # require all type


[Package FertBoot version 0.5.0 Index]