CI.mean: CI.mean

Description Usage Arguments Value Examples

Description

Computes the confidence interval for the mean of the sample

Usage

1
CI.mean(sample, sd = NULL, level = 0.95, B = 0)

Arguments

sample

numeric: data vector

sd

numeric: if given then the standard deviation is assumed to be known (default: NULL)

level

numeric: level of the confidence interval() default: 0.95)

B

numeric: if larger than zero then an bootstrapped confidence interval is computed (default: 0)

Value

confidence interval

Examples

1
2
3
4
x <- runif(100)
CI.mean(x)
CI.mean(x, sd=1/sqrt(12))
CI.mean(x, B=1000)

sigbertklinke/mmstat documentation built on May 14, 2019, 8:36 a.m.