plot.mfdr | R Documentation |
Plot marginal false discovery rate curves from an mfdr
or perm.ncvreg
object.
## S3 method for class 'mfdr'
plot(
x,
type = c("mFDR", "EF"),
log.l = FALSE,
selected = TRUE,
legend = TRUE,
...
)
x |
A |
type |
What to plot on the vertical axis. |
log.l |
Should horizontal axis be on the log scale? Default is |
selected |
If |
legend |
For |
... |
Other graphical parameters to pass to |
Patrick Breheny
Breheny P (2019). Marginal false discovery rates for penalized regression models. Biostatistics, 20: 299-314.
mfdr()
, perm.ncvreg()
data(Prostate)
fit <- ncvreg(Prostate$X, Prostate$y)
obj <- mfdr(fit)
obj[1:10,]
# Some plotting options
plot(obj)
plot(obj, type="EF")
plot(obj, log=TRUE)
# Comparison with perm.ncvreg
op <- par(mfrow=c(2,2))
plot(obj)
plot(obj, type="EF")
pmfit <- perm.ncvreg(Prostate$X, Prostate$y)
plot(pmfit)
plot(pmfit, type="EF")
par(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.