% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_missing_extensions.R
\name{ild_missing_hazard_first}
\alias{ild_missing_hazard_first}
\title{Discrete hazard of first missing outcome on an ordinal schedule}
\usage{
ild_missing_hazard_first(x, outcome)
}
\arguments{
\item{x}{An ILD object.}

\item{outcome}{Character; outcome column.}
}
\value{
A tibble with `.ild_seq`, `n_at_risk`, `n_missing`, `hazard`.
}
\description{
For each `.ild_seq`, estimates the fraction of person-occasions **at risk**
(previous occasion observed, or first occasion) that are **missing** on the
outcome. This is a coarse discrete-time hazard for **first** missing spell
when missingness is intermittent; under **monotone dropout** it matches the
usual discrete hazard of dropout.
}
\details{
**Assumptions:** Rows are ordered within person by `.ild_seq`. The first row
per person is always at risk. Later rows are at risk only if the previous
row (same person) was non-missing—so a person who is already missing is not
counted again. This targets a **first event** narrative; it is not a full
repeated-events model.
}
\seealso{
[ild_missing_cohort()], [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_cohort}()},
\code{\link{ild_missing_compliance}()},
\code{\link{ild_missing_model}()},
\code{\link{ild_missing_pattern}()},
\code{\link{ild_missingness_report}()}
}
\concept{ild_diagnostics_utilities}
