| mc_twin | R Documentation |
Constructs the components of the matrix linear predictor for twin data analysis under ACDE-type models. The function generates covariance structures suitable for monozygotic (MZ) and dizygotic (DZ) twins and supports several biologically motivated and flexible model parameterizations.
mc_twin(id, twin.id, type, replicate = NULL, structure, data)
mc_twin_bio(id, twin.id, type, replicate = NULL, structure, data)
mc_twin_full(id, twin.id, type, replicate, formula, data)
id |
A string indicating the name of the column in |
twin.id |
A string indicating the name of the column in |
type |
A string indicating the name of the column in |
replicate |
An optional string indicating the name of the column in |
structure |
A string specifying the covariance structure to be constructed.
Available options are |
data |
A data frame containing all variables referenced by the model. |
formula |
Internal argument used to define flexible and unstructured covariance models. Not intended for direct user specification. |
For biologically motivated structures ("ACE", "ADE",
"AE", "CE", "E"), the function builds covariance
matrices based on classical twin modeling assumptions. For flexible
and unstructured options ("full", "flex", "uns"),
the covariance structure is constructed using matrix linear predictors.
A list of sparse matrices of class dgCMatrix, representing the
components of the matrix linear predictor to be used in the
matrix_pred argument of mcglm.
Wagner Hugo Bonat, wbonat@ufpr.br
Bonat, W. H. (2018). Multiple Response Variables Regression Models in R: The mcglm Package. Journal of Statistical Software, 84(4), 1–30.
mc_id, mc_dist, mc_car,
mc_rw, mc_ns, mc_dglm,
mc_mixed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.