This internal function fits a generalized linear model (GLM) for the outcome variable using the observed data.
pred_fun_Y(
model,
yrestrictions,
outcome_type,
outcome_name,
time_name,
obs_data,
model_fits,
ymodel_fit_custom
)
Fitted model for the outcome variable.
Model statement for the outcome variable.
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.
Character string specifying the "type" of the outcome. The possible "types" are: "survival"
, "continuous_eof"
, and "binary_eof"
.
Character string specifying the name of the outcome variable in obs_data
.
Character string specifying the name of the time variable in obs_data
.
Data on which the model is fit.
Logical scalar indicating whether to return the fitted models. The default is FALSE
.
Function specifying a custom outcome model. See the vignette "Using Custom Outcome Models in gfoRmula" for details.