or_pct: or_pct function

View source: R/calcs.R

or_pctR Documentation

or_pct function

Description

given an odds ratio this function will convert it into a percent change

Usage

or_pct(x, digs = 0, knit = FALSE)

Arguments

x

value to change

digs

digits to round to

knit

a boolean indicating if the value and the label should be knit together (e.g. "10pct increase" vs c("10pct","increase")). Default is FALSE (i.e. c("10pct","increase"))

Examples

or_pct()


clmacleod/highlandr documentation built on April 17, 2025, 3:30 a.m.