format_CI: Manuscript-friendly confidence interval formatting

Description Usage Arguments Examples

View source: R/functions.R

Description

Formats confidence interval lower and upper bounds into a rounded string.

Usage

1
format_CI(lo, hi, digits = 2)

Arguments

lo

Confidence interval lower limit (numeric)

hi

Confidence interval upper limit (numeric)

digits

Digits for rounding

Examples

1
format_CI(0.36, 0.72, 3)

Example output

[1] "[0.360, 0.720]"

MetaUtility documentation built on Oct. 30, 2021, 5:07 p.m.