tests/03-betamix.R

library(NewmanOmics)

### pairedStat
data(LungPair)
lung <- as.matrix(log2(1 + LungPair))

set.seed(12345)
normal <- lung[, 1, drop=FALSE]
tumor  <- lung[, 2, drop=FALSE]
ps <- pairedStat(normal, tumor)
summary(ps@p.values)

fm <- fitMix3(as.vector(ps@p.values), print.level = 0)
### reduce displayed digits to avoid differences in NLM
### on different platforms
### FAILS anyway on M1Max and NoLD tests
## formatC(fm@mle, digits=3, format="e")
## round(fm@psi, 5)
## But the plots are indistinguishable.
plot(fm)

Try the NewmanOmics package in your browser

Any scripts or data that you put into this service are public.

NewmanOmics documentation built on May 11, 2022, 3 p.m.