| add_nevent_regression | R Documentation | 
Add event N
add_nevent(x, ...)
## S3 method for class 'tbl_regression'
add_nevent(x, location = "label", ...)
## S3 method for class 'tbl_uvregression'
add_nevent(x, location = "label", ...)
x | 
 (  | 
... | 
 These dots are for future extensions and must be empty.  | 
location | 
 ( When   | 
# Example 1 ----------------------------------
trial |>
  select(response, trt, grade) |>
  tbl_uvregression(
    y = response,
    exponentiate = TRUE,
    method = glm,
    method.args = list(family = binomial),
  ) |>
  add_nevent()
# Example 2 ----------------------------------
glm(response ~ age + grade, trial, family = binomial) |>
  tbl_regression(exponentiate = TRUE) |>
  add_nevent(location = "level")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.