Fig3.4: Reproduce Figure 3.4

View source: R/gam-effect.R

Fig3.4R Documentation

Reproduce Figure 3.4

Description

Reproduces Figure 3.4 from the book; if you specify any options, your results may look different.

Usage

Fig3.4(
  n = 200,
  p = 1000,
  seed = 105,
  ylim = c(-4, 4),
  parlist = list(mfrow = c(1, 3), mar = c(4, 4, 2, 0), cex = 1)
)

Arguments

n

Sample size

p

Number of features

seed

Random number seed for reproducibility

ylim

Vertical limits, passed to plot()

parlist

List of arguments to pass to par()

Examples

Fig3.4()

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