ci_fmt: Calculate a CI and return it as a formatted string

Description Usage Arguments Value

View source: R/trahelyk.R

Description

Calculate a CI and return it as a formatted string

Usage

1
ci_fmt(x, d = 2, dist = "normal")

Arguments

x

A numeric or integer vector

d

An integer specifying the number of significant digits to be presented in the point estimate and interval.

dist

A character string specifying the distribution from which the interval should be calculated. Currently supports "normal" or "t".

Value

A character string with the point estimate of the mean, followed by the interval in parentheses.


trahelyk/trahelyk_pkg documentation built on June 14, 2021, 9:25 p.m.