OmnibusTest: Omnibus test for multiple effects

Description Usage Arguments Value See Also Examples

View source: R/CCMO.R

Description

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.

Usage

1
OmnibusTest(d, test)

Arguments

d

an object returned by the R function singleSNP

test

a vector of predictor indices in Omnibus test (default value: NULL)

Value

a list with an additional element for Omnibus test p-values

Omnibus

Omnibus test results (test statistic, degrees of freedom, p-value) if test is not NULL

See Also

singleSNP multipleSNP

Examples

 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)

zhanghfd/CCMO documentation built on March 18, 2021, 12:18 a.m.