make_pretty_lm_table: Format a set of numbers to have a certain number of sig figs

View source: R/tidy_data.R

make_pretty_lm_tableR Documentation

Format a set of numbers to have a certain number of sig figs

Description

Format a set of numbers to have a certain number of sig figs

Usage

make_pretty_lm_table(
  dat,
  voi,
  est = "Estimate",
  se = "StdErr",
  upper_CI = "97.5 %",
  lower_CI = "2.5 %",
  p = "Pr(>|t|)",
  arrange_by = p,
  output = c("se", "CI")
)

Arguments

dat

data

voi

variable of interest

est

effect estimate variable

se

SE variable

upper_CI

upper confidence interval variable name

lower_CI

lower confidence interval variable name

p

pvalue variable name

arrange_by

variable to arrange output by

output

either SE or CI or both in output

Value

character vector with all numbers formated


thomasbattram/usefunc documentation built on April 24, 2023, 1:46 p.m.