boot.CI: Bootstrap confidence intervals of mean

Description Usage Arguments Value Examples

View source: R/boot.CI.R

Description

Bootstrap confidence intervals of mean

Usage

1
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

1
2
3
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

FertBoot documentation built on Feb. 20, 2021, 1:06 a.m.

Related to boot.CI in FertBoot...