This internal function fits a generalized linear model (GLM) for a single covariate using the observed data.
fit_glm(covparams, covlink = NA, covfam, obs_data, j, model_fits)
Fitted model for the covariate at index \(j\).
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.).
Vector of link functions.
Vector of character strings specifying the names of the family functions to be used for fitting the GLM.
Data on which the model is fit.
Integer specifying the index of the covariate.
Logical scalar indicating whether to return the fitted models. The default is FALSE
.