% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_design_check.R
\name{ild_design_check}
\alias{ild_design_check}
\title{ILD design diagnostics: spacing, WP/BP, missingness, and recommendations}
\usage{
ild_design_check(x, vars = NULL)
}
\arguments{
\item{x}{An ILD object (see [is_ild()]).}

\item{vars}{Optional character vector of variable names for decomposition
and missingness. If \code{NULL}, only spacing and summary are computed;
\code{wp_bp} and \code{missingness} will be \code{NULL}.}
}
\value{
A list of class \code{ild_design_check}: \code{summary} (from ild_summary),
  \code{spacing_class} (regular-ish / irregular-ish), \code{spacing} (from ild_spacing),
  \code{recommendation} (AR1/CAR1 text), \code{wp_bp} (decomposition tibble or NULL),
  \code{missingness} (list with \code{summary} tibble and \code{pct_na} overall, or NULL).
  Use \code{print()} for a human-readable summary.
}
\description{
Aggregates [ild_summary()], [ild_spacing()], [ild_spacing_class()], and
optionally [ild_decomposition()] and [ild_missing_pattern()] into one
design summary. Use before modeling to see spacing class, correlation
recommendation, within- vs between-person variance, and missingness.
}
\details{
Also a **section provider** for [ild_diagnose()] (see [ild_diagnostics_utilities]).
}
\section{Bundle integration}{

[ild_diagnose()] embeds this object in \code{design$ild_design_check} on the
\code{\link{ild_diagnostics_bundle}}.
}

\examples{
d <- ild_simulate(n_id = 10, n_obs_per = 8, irregular = TRUE, seed = 1)
x <- ild_prepare(d, id = "id", time = "time", gap_threshold = 7200)
ild_design_check(x, vars = "y")
}
\seealso{
[ild_diagnose()], [ild_diagnostics_bundle()]

Other ild_diagnostics_utilities: 
\code{\link{ild_ipcw_weights}()},
\code{\link{ild_iptw_msm_weights}()},
\code{\link{ild_iptw_weights}()},
\code{\link{ild_ipw_weights}()},
\code{\link{ild_joint_msm_weights}()},
\code{\link{ild_missing_cohort}()},
\code{\link{ild_missing_compliance}()},
\code{\link{ild_missing_hazard_first}()},
\code{\link{ild_missing_model}()},
\code{\link{ild_missing_pattern}()},
\code{\link{ild_missingness_report}()}
}
\concept{ild_diagnostics_utilities}
