Skip to contents

This is a custom render for table1 stratification variables which performs GEMINI "cell suppression" for any levels which contain fewer than 6 observations.

Note that even with strata variable cell suppression, it is possible to reverse-calculate the total given the overall column. Therefore it is recommended to also hide the "Overall" column in the call to table1::table1().

Usage

render_cell_suppression.strat(label, n, transpose = FALSE)

Arguments

label

(character)
A character vector containing the labels.

n

(numeric or character)
A numeric vector containing the sizes.

transpose

(logical)
Used internally by table1::table1().

Value

named (character)
Concatenated with "" to shift values down one row for proper alignment.

Note

Arguments from this function should not be passed directly and are defined here to work internally with table1::table1().