calcCI: Calculate 95% CI from the mean and SD (normal assumption)

Description Usage Arguments Value

View source: R/calcCI.R

Description

From: http://www.cookbook-r.com/Graphs/Plotting_means_and_error_bars_(ggplot2)

Usage

1
calcCI(in.dt, in.col.mn, in.col.sd, in.col.n, in.clevel = 0.95)

Arguments

in.dt

Input data table

in.col.mn

Name of the column containing the mean

in.col.sd

Name of the column containing SD

in.col.n

Name of the column containing sample size

in.clevel

Confidence level, default 95%

Value

Data table with additional columns with lower and upper CI bounds


dmattek/tca-package documentation built on Dec. 10, 2019, 4:10 p.m.