An S4 Class to Confidence Intervals

Description

Calculates the confidence intervals for a vector of data values.

Usage

1
2
3
CI(x, level = 0.95, alpha = 1 - level, na.rm = FALSE, ...)

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

Arguments

x

A vector of data values.

level

The confidence level. Default is 0.95.

alpha

The significance level. Default is 1-level. If alpha equals 0.05, then your confidence level is 0.95.

na.rm

A logical value, default is FALSE

...

Additional arguements (currently ignored)

Value

CI lower
Est. Mean

Mean of data.

CI upper

Upper bound of interval.

Std. Error

Standard Error of the mean.

Slots

lower

Lower bound of interval.

mean

Estimated mean.

upper

Upper bound of interval.

stderr

Standard Error of the mean.

Author(s)

Daniel Marcelino, dmarcelino@live.com.

Examples

1
2
3
x <- c(1, 2.3, 2, 3, 4, 8, 12, 43, -1,-4)

CI(x, level=.90)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.