% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary_maihda.R
\name{summary.maihda_model}
\alias{summary.maihda_model}
\title{Summarize MAIHDA Model}
\usage{
\method{summary}{maihda_model}(object, bootstrap = FALSE, n_boot = 1000, conf_level = 0.95, ...)
}
\arguments{
\item{object}{A maihda_model object from \code{fit_maihda()}.}

\item{bootstrap}{Logical indicating whether to compute bootstrap confidence
intervals for VPC/ICC. Default is FALSE. Currently supported for lme4
models only.}

\item{n_boot}{Number of bootstrap samples if bootstrap = TRUE. Default is 1000.}

\item{conf_level}{Confidence level for bootstrap intervals. Default is 0.95.}

\item{...}{Additional arguments (not currently used).}
}
\value{
A maihda_summary object containing:
  \item{vpc}{Variance Partition Coefficient (ICC) with optional CI}
  \item{variance_components}{Data frame of variance components}
  \item{stratum_estimates}{Data frame of stratum-specific random effects with labels if available}
  \item{fixed_effects}{Fixed effects estimates}
  \item{model_summary}{Original model summary}
}
\description{
Provides a summary of a MAIHDA model including variance partition coefficients
(VPC/ICC) and stratum-specific estimates.
}
\examples{
\donttest{
strata_result <- make_strata(maihda_sim_data, vars = c("gender", "race"))
model <- fit_maihda(health_outcome ~ age + (1 | stratum), data = strata_result$data)
summary_result <- summary(model)

# With bootstrap CI
# summary_boot <- summary(model, bootstrap = TRUE, n_boot = 50)
}

}
