The function mc_dglm builds the components of the matrix linear predictor used for fitting double generalized linear models.

mc_dglm(formula, id, data)

Arguments

formula

a formula spefying the components of the covariance structure.

id

name of the column (string) containing the subject index. (If ts is not repeated measures, use id = 1 for all observations).

data

data set.

Source

Bonat, W. H. (2018). Multiple Response Variables Regression Models in R: The mcglm Package. Journal of Statistical Software, 84(4):1--30.

Value

A list of a diagonal matrices, whose values are given by the covariates assumed to describe the covariance structure.

See also

mc_id, mc_dist, mc_ma, mc_rw
and mc_mixed.