% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forest_utils.R
\name{get_cached_confint}
\alias{get_cached_confint}
\title{Retrieve confidence intervals with cache support}
\usage{
get_cached_confint(model, conf_level = 0.95)
}
\arguments{
\item{model}{Fitted model object. If the model carries a
\code{"cached_confint"} attribute (set by \code{fit()} during table
generation) and the cached confidence level matches \code{conf_level},
the cached result is returned directly.}

\item{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 \code{stats::confint()}.
}
\description{
Returns confidence intervals for a fitted model, using a cached result
when available from upstream \code{fit()} or \code{m2dt()} calls to avoid
redundant computation. This is particularly beneficial for GLM and negative
binomial models where \code{confint()} performs profile likelihood profiling,
which can be expensive for models with many parameters.
}
\keyword{internal}
