yrestrictions: List of vectors. Each vector containins as its first entry a condition and its second entry an integer. When the condition is TRUE, the outcome variable is simulated according to the fitted model; when the condition is FALSE, the outcome variable takes on the value in the second entry.
outcome_type: Character string specifying the "type" of the outcome. The possible "types" are: "survival", "continuous_eof", and "binary_eof".
outcome_name: Character string specifying the name of the outcome variable in obs_data.
time_name: Character string specifying the name of the time variable in obs_data.
obs_data: Data on which the model is fit.
model_fits: Logical scalar indicating whether to return the fitted models. The default is FALSE.
ymodel_fit_custom: Function specifying a custom outcome model. See the vignette "Using Custom Outcome Models in gfoRmula" for details.