pred_fun_Y | R Documentation |
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
)
model |
Model statement for the outcome variable. |
yrestrictions |
List of vectors. Each vector containins as its first entry
a condition and its second entry an integer. When the
condition is |
outcome_type |
Character string specifying the "type" of the outcome. The possible "types" are: |
outcome_name |
Character string specifying the name of the outcome variable in |
time_name |
Character string specifying the name of the time variable in |
obs_data |
Data on which the model is fit. |
model_fits |
Logical scalar indicating whether to return the fitted models. The default is |
ymodel_fit_custom |
Function specifying a custom outcome model. See the vignette "Using Custom Outcome Models in gfoRmula" for details. |
Fitted model for the outcome variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.