Fig2.8 | R Documentation |
Reproduces Figure 2.8 from the book; if you specify any options, your results may look different.
Fig2.8(
n = 100,
p = 1000,
N = 25,
parlist = list(mfrow = c(1, 2), mar = c(5, 5, 0.5, 0.5), oma = c(0, 0, 2, 0)),
seed = 1
)
n |
Sample size |
p |
Number of features |
N |
Number of splits for the refitted CV estimator |
parlist |
List of arguments to pass to |
seed |
Random number seed for reproducibility |
Fig2.8(N=5) # Increase N for a more reliable estimate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.