cil: Confidence interval length

View source: R/cil.R

cilR Documentation

Confidence interval length

Description

The cil() function calculates the confidence interval parameters of a numeric vector. It takes in as input the numeric vector and the level of significance desired for the computation. As an output, it gives the population mean’s confidence interval lower and upper bounds, as well as a number that represents the length of the confidence interval, i.e., the difference between the upper bound and the lower bound of the confidence interval.

Usage

cil(x, alpha)

Arguments

x

numeric vector

alpha

level of significance

Value

confidence interval length at the given level of significance

Examples


## Not run: vecx <- rnorm(100)
cil(vecx, 0.05)
## End(Not run)


pgrugwiro/variant documentation built on Aug. 2, 2022, 12:08 p.m.