mal_estimate: Formats estimates and 95% confidence intervals for nice...

Description Usage Arguments Value Examples

View source: R/rmarkdown.R

Description

Rounds estimates to 1 decimal place and copies similarly formatted confidence intervals inside brackets. If you want a really good inline output from a regression model, see Benjamin Nutter's dust_inline from his package pixiedust

Usage

1
mal_estimate(estimate, lci, uci, type = "OR")

Arguments

estimate

An estimate such as a rate ratio

lci

The lower confidence interval

uci

The upper confidence interval

Value

A string in format d.d (95% CI: d.d-d.d)

Examples

1
2
nice_estimate(100.111, 90.0, 110.000002)
nice_estimate(0.9, 0.8001, 0.95)

mcguinlu/mal documentation built on Sept. 22, 2020, 11:44 p.m.