get_cached_confint: Retrieve confidence intervals with cache support

View source: R/forest_utils.R

get_cached_confintR Documentation

Retrieve confidence intervals with cache support

Description

Returns confidence intervals for a fitted model, using a cached result when available from upstream fit() or m2dt() calls to avoid redundant computation. This is particularly beneficial for GLM and negative binomial models where confint() performs profile likelihood profiling, which can be expensive for models with many parameters.

Usage

get_cached_confint(model, conf_level = 0.95)

Arguments

model

Fitted model object. If the model carries a "cached_confint" attribute (set by fit() during table generation) and the cached confidence level matches conf_level, the cached result is returned directly.

conf_level

Numeric confidence level. Must match the cached level for the cache to be used.

Value

A matrix with one row per model coefficient and two columns (lower and upper bounds), as returned by stats::confint().


summata documentation built on May 7, 2026, 5:07 p.m.