% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_missing_extensions.R
\name{ild_missing_cohort}
\alias{ild_missing_cohort}
\title{Cohort-level fraction observed by occasion index}
\usage{
ild_missing_cohort(x, outcome, plot = TRUE)
}
\arguments{
\item{x}{An ILD object.}

\item{outcome}{Character; outcome column.}

\item{plot}{Logical; if `TRUE`, return a `ggplot2` object in `$plot`.}
}
\value{
A list with `by_occasion` (tibble: `.ild_seq`, `n_rows`, `n_obs`,
  `pct_observed`) and if `plot = TRUE`, `plot`.
}
\description{
For each distinct `.ild_seq` value, computes how many rows exist and what
fraction has a non-missing outcome. Optional line plot.
}
\details{
Uses **within-study sequence** (`.ild_seq`), not calendar time. For irregular
timing, interpret as ordinal wave position rather than equal time spacing.
}
\seealso{
[ild_missing_pattern()], [ild_missing_compliance()]

Other ild_diagnostics_utilities: 
\code{\link{ild_design_check}()},
\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_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}
