design.1locus {fat2Lpoly} | R Documentation |
Setting-up design matrices for a polytomous model with a single biallelic marker.
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 model with the main effect of a single biallelic marker.
Usage
design.1locus(x, par.constrained, constraints)
Arguments
x |
A numeric vector of values representing genotypes of a biallelic marker. 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
are as follows:
Y_{1} = 1 , Y_{2} = 0 : \beta_{11} X
Y_{1} = 0 , Y_{2} = 1 : \beta_{21} X
Y_{1} = 1 , Y_{2} = 1 : \beta_{31} X
The vector X
constitute the design matrix for each linear predictor of the above model.
Value
x.e |
List of 3 design matrices containing the vector |
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>
See Also
fat2Lpoly, design.full, design.endo2disease