latex_ci: pretty print confidence interval from a vector

View source: R/knitr_utils.R

latex_ciR Documentation

pretty print confidence interval from a vector

Description

pretty print a confidence interval from a vector of three values (first: estimate, second: lower ci, third: upper ci) in a latex document

Usage

latex_ci(
  x,
  type = c("num", "int", "perc"),
  measurement_unit = "",
  digits = 1,
  conf_lev_string = "95\\% CI",
  style = c("brack_est_ci_brack", "est_brack_ci_brack"),
  display_brackets = TRUE
)

Arguments

x

the length-3 vector

type

is it a numerics, integers or percentages vector

measurement_unit

used string for measurement unit

digits

number of digits displayed

conf_lev_string

used string for confidence level

style

brack_est_ci_brack puts estimate and ci between brackets, while est_brack_ci_brack put the estimate out of them

display_brackets

whether to print bracket or not


lbraglia/lbmisc documentation built on March 28, 2024, 10:03 a.m.