Fig4.4: Reproduce Figure 4.4

View source: R/bc-tcga-mnet.R

Fig4.4R Documentation

Reproduce Figure 4.4

Description

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

Usage

Fig4.4(
  alpha = c(0.75, 0.5, 0.25),
  ylim = c(-0.25, 0.5),
  seed = 1,
  nfolds = 10,
  parlist = list(mfrow = c(1, 3), mar = c(4, 4, 2, 0), cex = 1)
)

Arguments

alpha

Vector of alpha values for MNet penalty; there will be one plot per alpha value

ylim

Vertical limits of plots

seed

For reproducibility

nfolds

As in cv.ncvreg()

parlist

List of arguments to pass to par()

Examples

Fig4.4(nfolds=3)

pbreheny/hdrm documentation built on Jan. 17, 2024, 8:53 p.m.