% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blockfit_solve.R
\name{.bf_deviance}
\alias{.bf_deviance}
\title{Compute Deviance for Non-GEE Models}
\usage{
.bf_deviance(y_vec, mu_vec, obs_wt, ord, fam, ...)
}
\arguments{
\item{y_vec}{Numeric vector of observed responses.}

\item{mu_vec}{Numeric vector of fitted means.}

\item{obs_wt}{Numeric vector of observation weights.}

\item{ord}{Integer vector of observation indices (passed to
custom deviance residual functions).}

\item{fam}{GLM family object.}

\item{...}{Additional arguments forwarded to
\code{fam$custom_dev.resids}.}
}
\value{
Scalar; the mean deviance contribution.
}
\description{
Evaluates the mean deviance (or mean squared error as fallback) at
the current fitted values.  Used inside the damped Newton-Raphson outer loop of
\code{\link{blockfit_solve}} for convergence monitoring.
}
\keyword{internal}
