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).
The number of events is added to the internal
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.
# S3 method for tbl_regression add_nevent(x, quiet = NULL, ...)
Logical indicating whether to print messages in console. Default is
Daniel D. Sjoberg