mt_twin: Build twin matrix linear predictor components

View source: R/mt_twin.R

mt_twinR Documentation

Build twin matrix linear predictor components

Description

This function provides the components of the matrix linear predictor suitable for fitting multivariate twin models.

Usage

mt_twin(N_DZ, N_MZ, n_resp, model, formula = NULL, data = NULL)

Arguments

N_DZ

Number of DZ twin pairs.

N_MZ

Number of MZ twin pairs.

n_resp

Number of response variables.

model

a string specifying the name of the twin model. Options are: "E", "AE", "CE", "ACE" and "ADE" models.

formula

formula specifying regression model for each dispersion component.

data

Data set.

Value

A list of matrices.

Author(s)

Wagner Hugo Bonat, wbonat@ufpr.br


wbonat/mglm4twin documentation built on Oct. 14, 2023, 9:37 p.m.