% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/recipe_sim_datagen.R
\name{validate_recipe}
\alias{validate_recipe}
\title{Validate a simulation recipe (list-only schema)}
\usage{
validate_recipe(recipe)
}
\arguments{
\item{recipe}{A named list defining n, covariates, treatment (optional),
event_time (model, baseline, effects, optional frailty), and censoring.}
}
\value{
A validated recipe list.
}
\description{
Checks/normalizes the simulation recipe and fills reasonable defaults.
This function does not use or require an analysis horizon; specify \code{L}
later in downstream analysis functions.
}
\examples{
r <- recipe_quick_aft(
  n = 100,
  model = "aft_lognormal",
  baseline = list(mu = 2.2, sigma = 0.5),
  treat_effect = -0.2,
  covariates = list(list(name="x", type="continuous", dist="normal",
                         params=list(mean=0, sd=1))),
  target_censoring = 0.25, allocation = "1:1"
)
r2 <- validate_recipe(r)
}
