Ex3.1: Reproduce Example 3.1

View source: R/gam-snr.r

Ex3.1R Documentation

Reproduce Example 3.1

Description

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

Usage

Ex3.1(N = 500, n = 50, p = 100, p1 = 6, snr = c(1, 2, 4), seed = 2)

Arguments

N

Number of simulated realizations

n

Sample size

p

Number of features

p1

Number of non-null features

snr

Vector of signal-to-noise ratio values

seed

Seed for reproducibility

Value

A list of two arrays, MCP, containing the MSE for MCP, and SCAD, containing the MSE for SCAD.

Examples

Ex3.1(N=2)

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