confidenceInterval: Confidence Interval

Description Usage Arguments Value Examples

Description

Make a confidence interval for the mean of a vector of values.

Usage

1
confidenceInterval(x, confidence = 0.95, na.rm = TRUE, distr = c("normal", "t"))

Arguments

x

A vector of values for which the mean and its confidence interval will be calculated.

confidence

Desired level of confidence for the confidence interval. Defaults to 0.95.

na.rm

Logical indicating whether missing observations should be removed. Defaults to TRUE.

distr

Distribution used to find the critical value. Default is "normal".

Value

A vector of values giving the mean, confidence interval and standard error.

Examples

1
2

davidaarmstrong/uwo4419 documentation built on Sept. 22, 2020, 3:32 p.m.