% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ild_msm_simulation.R
\name{ild_msm_simulate_scenario}
\alias{ild_msm_simulate_scenario}
\title{Simulate a simple longitudinal MSM scenario}
\usage{
ild_msm_simulate_scenario(
  n_id = 60L,
  n_obs_per = 10L,
  true_ate = 0.5,
  censoring = TRUE,
  positivity_stress = 1,
  treatment_strength = 0.8,
  censoring_strength = 0.6,
  seed = 42L
)
}
\arguments{
\item{n_id}{Number of persons.}

\item{n_obs_per}{Planned observations per person.}

\item{true_ate}{True additive treatment effect on outcome.}

\item{censoring}{If \code{TRUE}, apply monotone dropout and return observed rows only.}

\item{positivity_stress}{Multiplier for treatment/censoring logits
(>1 worsens overlap; <1 improves overlap).}

\item{treatment_strength}{Base strength of treatment dependence on confounders/history.}

\item{censoring_strength}{Base strength of dropout dependence on stress/treatment.}

\item{seed}{Integer seed.}
}
\value{
ILD object with columns \code{stress} and binary \code{trt}; attributes include
  \code{true_ate}.
}
\description{
Generates ILD with time-varying treatment, confounding, and optional monotone
censoring/dropout under a known treatment effect (\code{true_ate}).
}
\examples{
d <- ild_msm_simulate_scenario(n_id = 20, n_obs_per = 8, true_ate = 0.5, seed = 12)
ild_summary(d)$summary
}
