Description Usage Arguments Value
This internal function fits a model for each covariate using the observed data.
1 2 3 4 5 6 7 8 9 10  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 timevarying 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 timevarying covariates in 
covtypes 
Vector of character strings specifying the "type" of each timevarying covariate included in 
covfits_custom 
Vector containing custom fit functions for timevarying covariates that
do not fall within the predefined 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.