Description Usage Arguments Value
SampleGGInter
is used to create a sample of genotype values for two genes and of binary phenotype values.
The phenotype is generated conditionally to the genes using a logistic model.
1 | SampleGGInter(X1, X2, mu, alpha, I.alpha, beta, I.beta, gamma, I.gamma, n0, n1)
|
X1 |
a N x p1 matrix of genotypes (coded as 0/1/2) for a given gene for a population |
X2 |
a N x p2 matrix of genotypes (coded as 0/1/2) for a given gene for a population |
mu |
the intercept of the logistic model |
alpha |
the vector of parameters for the main effects for the first gene |
I.alpha |
the vector of coordinates corresponding to the coefficients in |
beta |
the vector of parameters for the main effects for the second gene |
I.beta |
the vector of coordinates corresponding to the coefficients in |
gamma |
a K x 4 matrix or a vector of length K of gene-gene interaction effects parameters. If it is a K x 4 matrix Each row is a vector of parameters for a pair of SNPs having an interaction effect and a dummy coding of the SNPs is used. The four parameters in a row correspond to the heterozygous/heterozygous, heterozygous/homozygous, homozygous/heterozygous and homozygous/homozygous configurations, respectively. If it is a vector, each coordinate is the interaction parameter for a pair of SNPs having an interaction effect. In this case, a continuous coding is used and the interaction effect is multiplicative |
I.gamma |
a K x 2 matrix of coordinates for the interacting SNPs. Each row is a pair of SNPs. For a given row |
n0 |
the desired number of controls |
n1 |
the desired number of cases |
A list with 3 elements:
SNP1 |
the sample matrix of genotypes for the first gene |
SNP2 |
the sample matrices of genotypes for the second gene |
Y |
the vector of phenotype values |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.