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 SNR 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 Jan. 17, 2024, 8:53 p.m.