maf<-0.3
set.seed(123)
simData<-simCNVdataCaseCon(n0=1000, n1=1000, mu.surrog0=c(0,0.5,1), sd.surrog0=rep(0.15,3),
mu.surrog1=c(0,0.5,1), sd.surrog1=rep(0.15,3),
w0=c((1-maf)^2,2*maf*(1-maf), maf^2), or=c(1.3,1.3^2),
random = FALSE)
CNV<-cnv(simData$surrog,mix.method="EMmixt")
getQualityScore(CNV,type="CNVtools")
mod<-CNVassoc(resp~CNV,data=simData,family="binomial")
CNVtest(mod)
summary(mod)
Run the code above in your browser using DataLab