# NOT RUN {
# }
# NOT RUN {
dat1<-simPathAR1Snp(nGenes=20, nGenes1=5, nSNPlim=c(1, 20),
nSNP0=1, LOR=.2, n=100, MAFlim=c(0.05, 0.4), p0=0.05 )
# }
# NOT RUN {
# p-values of SPUpath and aSPUpath tests.
# }
# NOT RUN {
p.pathaspu<- aSPUpath(dat1$Y, dat1$X, snp.info = dat1$snp.info,
gene.info = dat1$gene.info,
model = "binomial", pow=1:8, pow2=c(1, 2, 4, 8), n.perm=1000)
# }
# NOT RUN {
p.pathaspu
## pow = 1:8 and pow2 = 1,2,4,8
## So, there are 8*4 = 32 SPUpath p-values.
## SPUpathi,j corresponds pow = i , pow2 = j
## The last element, aSPUpath gives aSPUpath p-value.
# }
Run the code above in your browser using DataLab