Learn R Programming

SciencesPo (version 0.11.21)

get.ci: Confidence interval of a vector.

Description

Calculates the confidence interval of a vector of data.

Usage

get.ci(vector, ci = 0.95)

Arguments

vector
A vector of numeric values.
ci
The confidence interval to be calculated.

Value

  • upperUpper bound of interval.
  • meanMean of data.
  • lowerLower bound of interval.

encoding

UTF-8

Examples

Run this code
myvec <-rnorm(100)
get.ci(myvec)
get.ci(myvec, ci=.99)

Run the code above in your browser using DataLab