IC95: Ninety-five percent confidence interval

Description Usage Arguments Value Examples

View source: R/ScriptHomemadeFunctions.R

Description

Computes the 95 percent confidence interval of a mean. Only trustworthy for normally distributed data (or data with n > 30).

Usage

1
IC95(x)

Arguments

x

A vector.

Value

The range of a confidence interval.

Examples

1
2
3
4
myvector <- rnorm(n = 100, mean = 48, sd = 16)
IC95(x = myvector)
# Gives a result of 2.992398. It means that the mean of myvector
# has 95% chance to be comprised in an interval of +/- 2.992398.

mrelnoob/airpoumpoum documentation built on Feb. 11, 2020, 8:19 p.m.