fmt_beta: Round and format regression model coefficients

Description Usage Arguments Examples

Description

Takes in a vector of regression model coefficients, and returns a rounded and formatted coefficient vector. This is the default rounding for models formatted with fmt_regression(). Coefficients larger than 100 are rounded to the nearest integer, between 10 and 100 to one decimal place, and all others to 2 decimal places. These thresholds were selected with odds ratios and hazard ratios in mind.

Usage

1

Arguments

x

numeric vector

Examples

1
2
or <- c(100.2342, 11.234, 5.32423, 1.23423469, 0.234)
fmt_beta(or)

ddsjoberg/gtsummary-v0.1 documentation built on June 4, 2019, 7:48 a.m.