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

attachData(bcTCGA)

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 May 24, 2024, 9:30 p.m.