in_text: In-Text Summary Statistics

Description Usage Arguments Value Examples

View source: R/in_text.R

Description

Generate in-text summary statistics for posterior distributions from Bayesian models. Most useful when used in Rmarkdown documents.

Usage

1
in_text(x, text = NULL, suffix = NULL, inside = T, probs = 0.95, digits = 1)

Arguments

x

The distribution to summarise

text

A character string that follows and describes the point estimate.

suffix

A character string that follows each estimate.

inside

Should the median be inside or outside the brackets? Defaults to T.

probs

The level at which to compute the lower and upper bounds. Defaults to 0.95.

digits

How many digits to round the summary statistics to. Defaults to 1.

Value

A text string.

Examples

1
in_text(rnorm(1e3, 0.5, .1))

jackobailey/jbmisc documentation built on Dec. 14, 2021, 12:11 a.m.