The function mc_non
builds the components
of the matrix linear predictor used for fitting non-structured
covariance matrix. In general this model is hard to fit due to the
large number of parameters.
mc_ns(id, data, group = NULL, marca = NULL)
id | name of the column (string) containing the subject index. Note this structure was designed to deal with longitudinal data. For times series or spatial data use the same id for all observations (one unit sample). |
---|---|
data | data set. |
group | name of the column (string) containing a group specific for which the covariance should change. |
marca | level (string) of the column group for which the covariance should change. |
Bonat, W. H. (2018). Multiple Response Variables Regression Models in R: The mcglm Package. Journal of Statistical Software, 84(4):1--30.
A list of a n*(n-1)/2 matrices.
mc_id
, mc_dglm
, mc_dist
, mc_ma
,
mc_rw
and mc_mixed
.