as_modelsummary: Convert regression results to modelsummary input

View source: R/output-interop.R

as_modelsummaryR Documentation

Convert regression results to modelsummary input

Description

Convert regression results to modelsummary input

Usage

as_modelsummary(x, ...)

## S3 method for class 'polyreg'
as_modelsummary(
  x,
  event = c("both", "event1", "event2"),
  conf.int = x$conf.int,
  variance = NULL,
  ...
)

Arguments

x

A supported fitted model.

...

Model-specific inference and coefficient-selection arguments.

event

For polyreg, event1, event2, or both (the default).

conf.int

Interval level. For polyreg, defaults to its fitted level.

variance

Covariance estimator: if or bootstrap for polyreg. Omitting it preserves the stored inference.

Value

A modelsummary_list, or a named list of these for multiple outcomes. Each contains tidy and glance data frames. Extraction does not require modelsummary. Inference settings are recorded in glance and metadata.


cifmodeling documentation built on Nov. 12, 2026, 5:07 p.m.