original_units_var_formatter: Formatting suitable for stat expressed in units specific to...

View source: R/print.xbal.R

original_units_var_formatterR Documentation

Formatting suitable for stat expressed in units specific to var

Description

formats a var-stat-strata array by var, with rounding potentially rounding a bit less for an "adj.diff" column

Usage

original_units_var_formatter(arr, digits, var_format = list())

Arguments

arr

numeric array

digits

number of digits for rounding

var_format

A list of lists. Each named item of the outer list will be matched to a variable. The inner lists should have two items, 'mean' and 'diff'. The first formats statistics based on averages. The 'diff' item should format statistics that are differences.

Value

array of same dimension as arr but of type character

Author(s)

Hansen


RItools documentation built on March 31, 2023, 7:17 p.m.