add_nevent.tbl_regression: Add number of events to a regression table
Description
This function adds a column of the number of events to tables created with
tbl_regression. Supported
model types include GLMs with binomial distribution family (e.g.
stats::glm, lme4::glmer, and
geepack::geeglm) and Cox
Proportion Hazards regression models (survival::coxph).
Usage
# S3 method for tbl_regression
add_nevent(x, ...)
Arguments
x
tbl_regression object
...
Not used
Value
A tbl_regression object
Reporting Event N
The number of events is added to the internal .$table_body tibble,
and not printed in the default output table (similar to N). The number
of events is accessible via the inline_text function for printing in a report.