format_nicely2: format_nicely2

View source: R/format_nicely2.R

format_nicely2R Documentation

format_nicely2

Description

Formats a list of moderated meta3 objects into a data.frame which can be used as a table in a LaTex document

Usage

format_nicely2(
  x,
  round = 2,
  transf = function(x) {     x },
  effect_name = NULL,
  transf_name = NULL,
  hide_insig = TRUE,
  escape_pc = FALSE,
  p_digits = 3,
  leading_zero = FALSE,
  ci_sep = ", ",
  include_i2 = FALSE
)

Arguments

x

a meta_list object

round

a scalar.

transf

a function. If provided will transform effects and confidence intervals.

effect_name

a string. If provided, will rename Estimate column with string provided.

transf_name

a character string. If provided, will name the transformed column.

hide_insig

a bool.

escape_pc

a bool. If TRUE, % symbols will be escaped in header, captions and notes.

p_digits

a scalar. The number of digits to round p to.

leading_zero

a bool. If TRUE, p-values will have leading zeros

ci_sep

separator for confidence intervals

include_i2

A bool, should i2 be included next to baseline?


JConigrave/msemtools documentation built on Aug. 10, 2022, 12:09 p.m.