% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_model_tidiers.R
\name{augment_ild_model}
\alias{augment_ild_model}
\title{Augment an ILD model fit with fitted values and residuals}
\usage{
augment_ild_model(fit, ...)
}
\arguments{
\item{fit}{A fitted model from [ild_lme()] (must have \code{attr(fit, "ild_data")}).}

\item{...}{Unused.}
}
\value{
A tibble; see \code{\link{ild_augment_schema}}.
}
\description{
Returns a tibble conforming to \code{\link{ild_augment_schema}}: \code{.ild_id},
\code{.ild_time}, \code{.outcome}, \code{.fitted}, \code{.resid}, \code{.resid_std},
\code{engine}, \code{model_class}, plus optional columns (see schema).
\code{.resid_std} is Pearson-type when \code{residuals(fit, type = "pearson")} is
available and length-matched; otherwise \code{NA} (principled but sparse).
Used internally by [ild_diagnostics()] and [ild_plot()]. Requires
\code{attr(fit, "ild_data")}; refit with [ild_lme()] if missing.
}
