format_interval: Format a 3-values statistic

format_intervalR Documentation

Format a 3-values statistic

Description

Useful to format a 3-values statistic in the "point statistic [interval boundaries]" format.

Usage

format_interval(interval, percent = FALSE)

Arguments

interval

A 3 values vector describing a point estimate and two interval boundaries.

percent

Whether to format the results as percentages.

Value

A string in the "point statistic [interval boundaries]" format.

Examples


BaySREn:::format_interval(qbeta(c(.05, .5, .95), 10, 14), percent = TRUE)


bakaburg1/BaySREn documentation built on March 30, 2022, 12:16 a.m.