# NOT RUN {
# }
# NOT RUN {
# simulate data with 20 omics
testdata<-simslapmeg(nY=20, ntime=5, nsubj = 30, seed=123)
head(testdata)
# creat a list of 3 random pathways of different sizes
pathlist<-list(path1=sample(colnames(testdata)[-c(1:3)],5),
path2=sample(colnames(testdata)[-c(1:3)],11),
path3=sample(colnames(testdata)[-c(1:3)],9) )
#use mult slampmeg to get test for the differential expression of all pathways
#and get adjusted p-values
mfit<- multslapmeg(pathlist, ~time, ~1+time, grouping="group", subject="ID", data=testdata)
summary(mfit)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab