design.full {fat2Lpoly} | R Documentation |
Setting-up design matrices for a full polytomous model with two biallelic markers.
Description
This function sets up two identical lists of three design matrices, one for each linear predictor of the logit of the three outcome levels defined by the combination of two dichotomous traits against the reference level (0,0) under a full model with main effects and product terms for two biallelic markers.
Usage
design.full(x, par.constrained, constraints)
Arguments
x |
A 2-column matrix of numeric values representing genotypes of biallelic markers, with one column per marker and one row per subject. The two homozygous genotypes must be coded 0 and 1, and the heterozygous genotype value depends on the genetic model: 0 (recessive), 1/2 (allelic) or 1 (dominant). |
par.constrained |
Optional matrix of dimensions ( |
constraints |
Optional matrix of dimensions ( |
Details
Let Y_{1}
and Y_{2}
be binary variables coding the presence (1) or absence (0) of the two traits (e.g. and endophenotype and a disease trait, respectively).
The linear predictors (without intercept) of the logistic functions between outcome levels and the reference level Y_{1} = 0
and Y_{2} = 0
for the full model are as follows:
Y_{1} = 1 , Y_{2} = 0 : \beta_{11} X_{1} + \beta_{12} X_{2} + \beta_{13} X_{1} X_{2}
Y_{1} = 0 , Y_{2} = 1 : \beta_{21} X_{1} + \beta_{22} X_{2} + \beta_{23} X_{1} X_{2}
Y_{1} = 1 , Y_{2} = 1 : \beta_{31} X_{1} + \beta_{32} X_{2} + \beta_{33} X_{1} X_{2}
The design matrices for the above model are constructed by this function.
Value
x.e |
List of 3 design matrices containing all terms forming the full model |
x.loc.e |
list of character strings containing the indices of the variables in |
x.l |
identical to |
x.loc.l |
identical to |
Author(s)
Alexandre Bureau <alexandre.bureau@msp.ulaval.ca>
References
Bureau A., Croteau J., Chagnon, Y.C., Roy, M.-A. and Maziade, M. Extension of the Generalized Disequilibrium Test to polytomous phenotypes and two locus models. Frontiers in Genetics, 5: Article 258.
See Also
fat2Lpoly, design.endo2disease