Skip to contents

Returns the stable model-information rows retained by regtab() or survtab(), including analysed N, estimator, convergence, boundary, failure, and error fields where applicable. Unlike the conventional accessors, model_info() may select a failed outcome because its purpose is to inspect that failure.

Usage

model_info(object, outcome = NULL, ...)

Arguments

object

A computed regtab() or survtab() result.

outcome

Optional single outcome name.

...

Unused.

Value

A data frame with one row per requested model.

Examples

data(epitabl)
fit <- regtab(
  epitabl, "rehospitalized", ~ age + sex,
  family = binomial("logit"), robust = FALSE
)
model_info(fit)
#>          outcome    n   family  link robust vcov method dispersion events
#> 1 rehospitalized 1500 binomial logit  FALSE none    glm         NA    520
#>   exponentiate converged boundary failed error
#> 1         TRUE      TRUE    FALSE  FALSE  <NA>