Fig6.6: Reproduce Figure 6.6

View source: R/mfdr-tcga.r

Fig6.6R Documentation

Reproduce Figure 6.6

Description

Reproduces Figure 6.6 from the book. If you specify any options, your results may look different.

Usage

Fig6.6(fit)

Arguments

fit

ncvreg fit to the TCGA data; see examples

Examples

attach_data(brca1)

fit <- ncvreg(X, y, penalty="lasso")
obj <- mfdr(fit)
tail(subset(obj, mFDR < .1))
plot(obj)

# Lasso figure
Fig6.6(fit)

# An MCP figure
fit <- ncvreg(X, y)
Fig6.6(fit)


pbreheny/hdrm documentation built on March 29, 2025, 5:18 a.m.