Learn R Programming

maicplus (version 0.1.2)

reformat: Reformat maicplus_bucher alike object

Description

Reformat maicplus_bucher alike object

Usage

reformat(
  x,
  ci_digits = 2,
  pval_digits = 3,
  show_pval = TRUE,
  exponentiate = FALSE
)

Arguments

x

a list, structured like a maicplus_bucher object

ci_digits

an integer, number of decimal places for point estimate and derived confidence limits

pval_digits

an integer, number of decimal places to display Z-test p-value

show_pval

a logical value, default is TRUE. If FALSE, p-value will not be output as the second element of the character vector

exponentiate

whether the treatment effect and confidence interval should be exponentiated. This applies to relative treatment effects. Default is set to false.