pred_fun_cov | R Documentation |
This internal function fits a model for each covariate using the observed data.
pred_fun_cov(
covparams,
covnames,
covtypes,
covfits_custom,
restrictions,
time_name,
obs_data,
model_fits
)
covparams |
List of vectors, where each vector contains information for
one parameter used in the modeling of the time-varying covariates (e.g.,
model statement, family, link function, etc.). Each vector
must be the same length as |
covnames |
Vector of character strings specifying the names of the time-varying covariates in |
covtypes |
Vector of character strings specifying the "type" of each time-varying covariate included in |
covfits_custom |
Vector containing custom fit functions for time-varying covariates that
do not fall within the pre-defined covariate types. It should be in
the same order |
restrictions |
List of vectors. Each vector contains as its first entry a covariate for which
a priori knowledge of its distribution is available; its second entry a condition
under which no knowledge of its distribution is available and that must be |
time_name |
Character string specifying the name of the time variable in |
obs_data |
Data on which the models are fit. |
model_fits |
Logical scalar indicating whether to return the fitted models. The default is |
A list of fitted models, one for each covariate in covnames
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.