% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calibrate.R
\name{et_diagnose}
\alias{et_diagnose}
\title{Diagnose a fitted ErrorTracer model}
\usage{
et_diagnose(model, loo = TRUE, ...)
}
\arguments{
\item{model}{An \code{et_model} or \code{et_model_list}.}

\item{loo}{Logical.  Whether to run LOO-CV (can be slow; default
\code{TRUE}).}

\item{...}{Unused.}
}
\value{
A list with elements:
  \describe{
    \item{convergence}{List: \code{rhat_max}, \code{rhat_all_ok},
      \code{neff_min}, \code{neff_all_ok}, \code{n_divergences}.}
    \item{loo}{List or \code{NULL}: \code{elpd_loo}, \code{p_loo},
      \code{looic}, \code{n_bad_pareto_k}, \code{loo_object}.}
    \item{summary}{Printed summary from \code{brms::summary()}.}
  }
  For \code{et_model_list}, a named list of per-group diagnostic lists
  plus an aggregated \code{summary} data.frame.
}
\description{
Computes Rhat, effective sample size ratios, divergent transitions, and
leave-one-out cross-validation (LOO-CV) for a fitted \code{et_model}.
}
