% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_msm_contrast.R
\name{ild_msm_contrast_over_time}
\alias{ild_msm_contrast_over_time}
\title{Compute MSM contrasts over time from a fitted weighted model}
\usage{
ild_msm_contrast_over_time(
  object,
  treatment = NULL,
  time_var = ".ild_seq",
  target_time = "all",
  conf_level = 0.95
)
}
\arguments{
\item{object}{Output from [ild_msm_fit()] or a \code{lmerMod}.}

\item{treatment}{Optional treatment column name. Defaults to
\code{object$estimand$treatment} for \code{ild_msm_fit}, otherwise required.}

\item{time_var}{Occasion column (default \code{".ild_seq"}).}

\item{target_time}{Optional target subset: \code{"all"} (default), \code{"final"},
or numeric vector of occasions.}

\item{conf_level}{Confidence level for Wald intervals (default \code{0.95}).}
}
\value{
Tibble with `ild_tidy_schema` columns plus \code{method},
  \code{terms}, and \code{target_time}.
}
\description{
Computes marginal treatment contrasts by occasion using model fixed effects.
This helper is intentionally standalone: it accepts either an \code{ild_msm_fit}
object or a weighted \code{lmerMod} with attached \code{ild_data}.
}
