SciencesPo (version 1.3.8)

ci: Confidence Intervals

Description

Calculates the confidence intervals of a vector.

Usage

ci(x, conf.level = 0.95, alpha = 1 - conf.level, ...)

## S3 method for class 'ANY': ci(x, conf.level = 0.95, alpha = 1 - conf.level, na.rm = FALSE, ...)

Arguments

x
a vector of data.
conf.level
confidence level. Default is 0.95.
alpha
confidence level. Default is 1-conf.level.
na.rm
A logical value, default is FALSE
...
Extra parameters.

Value

  • CI lowerLower bound of interval.
  • Est. MeanMean of data.
  • CI upperUpper bound of interval.
  • Std. ErrorStandard Error of the mean.

encoding

UTF-8

Examples

Run this code
set.seed(51)
x = rnorm(1000)
ci(x, conf.level=.95)

Run the code above in your browser using DataLab