ci: Get a confidence interval for every column in a data frame

View source: R/ci.R

ciR Documentation

Get a confidence interval for every column in a data frame

Description

Returns a data frame with the columns 'mean', 'lower', and 'upper' reflecting the mean and lower and upper bounds of a confidence interval for every column in the data frame

Usage

ci(df, ci = 0.95)

Arguments

df

A data frame with all numeric columns.

ci

The sensitivity of the computed confidence interval (CI). Defaults to ci = 0.95, reflecting a 95% CI.

Examples

df <- data.frame(
  unif = runif(1000, 0, 1),
  norm = rnorm(1000, 0, 1),
  lnorm = rlnorm(1000, 0, 1)
)

ci(df)


emse-madd-gwu/maddTools documentation built on Oct. 31, 2022, 2:23 p.m.