se: Standard error and confidence interval

Description Usage Arguments Author(s) See Also Examples

View source: R/se.R

Description

These wrapper functions compute the standard error (SE) or the confidence interval (CI) of the values in x. If na.rm is TRUE, missing values are removed before the computation proceeds.

Usage

1
2
3
se(x, na.rm = FALSE)

CI(x, level = 0.95, na.rm = FALSE)

Arguments

x

a numeric vector or an R object which is coercible to one by as.vector(x, "numeric").

na.rm

logical. Should missing values be removed?

level

the confidence level required.

Author(s)

Zacharias Steinmetz

See Also

sd() for the standard deviation.

Examples

1
2
se(1:5)
CI(1:5)

envalysis documentation built on March 6, 2021, 1:07 a.m.