Description Usage Arguments Value See Also Examples
The interested effects include the genetic effects and/or environment effects and/or gene-environment interaction effects and/or gene-gene interaction effects. Association analysis is conducted between a single SNP and the disease of interest.
1 | OmnibusTest(d, test)
|
d |
an object returned by the R function singleSNP |
test |
a vector of predictor indices in Omnibus test (default value: NULL) |
a list with an additional element for Omnibus test p-values
|
Omnibus test results (test statistic, degrees of freedom, p-value) if |
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
data(SampleData)
Y = SampleData[,1]
M = 10 # the number of SNPs
Gc = SampleData[,2]
Gm = SampleData[,12]
X = SampleData[,-(1:(1+2*M))]
d = singleSNP(Y,Gc,Gm,Xo=X,Xc=X,Xm=X,X.Gm=X)
test = c(3,4,6,7) # main SNP effects and SNP-covariate interaction effects
d = OmnibusTest(d,test)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.