plotslapmeg | R Documentation |
This plot can provide a graphical insight into the source of effect (i.e. diffrential expression) in relevent pathway.
plotslapmeg(obj, ...)
obj |
An slapmeg object which is the output from |
... |
optional graphical parameters can be added with an |
returns NULL
Mitra Ebrahimpoor
Ebrahimpoor, Mitra, Pietro Spitali, Jelle J. Goeman, and Roula Tsonaka. "Pathway testing for longitudinal metabolomics." Statistics in Medicine (2021).
slapmeg
, multslapmeg
, pairslapmeg
# simulate data with 8 omics
testdata<-simslapmeg(nY=8, ntime=5, nsubj = 30, seed=123)
head(testdata)
#fit slapmeg to test for the differential expression of a pathway of size 5
fit<- slapmeg(Y1+Y2+Y6+Y7+Y8~time, ~1, grouping="group", subject="ID", data=testdata)
#Density plots for the estimated random effects
plotslapmeg(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.