Description Usage Arguments Value Author(s) References See Also Examples
The function transf.inter
creates a new variable with 9 categories
out of a pair of variables with 3 categories (e.g. SNPs). The new variable
is generated as described in Boulesteix et al (2007): =1 if x1=1 and x2=1, =2
if x1=2 and x2=1, =3 if x1=3 and x2=1, =4 if x1=1 and x2=2, =5 if x1=2 and x2=2,
=6 if x1=3 and x2=2, =7 if x1=1 and x2=3, =8 if x1=2 and x2=3, =9 if x1=3 and
x2=3.
1 | transf.inter(x1,x2)
|
x1 |
a numeric vector of length n giving the first SNP, coded as 1,2,3. |
x2 |
a numeric vector of length n giving the second SNP, coded as 1,2,3. |
a numeric vector of length n containing the new variable with 9 categories.
Anne-Laure Boulesteix (http://www.ibe.med.uni-muenchen.de/organisation/mitarbeiter/020_professuren/boulesteix/index.html)
Boulesteix AL, Strobl C, Weidinger S, Wichmann HE, Wagenpfeil S, 2007. Multiple testing for SNP-SNP interactions. Statistical Applications in Genetics and Molecular Biology 6:37.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.