allaso.cv: ALASSO variable selection via cross-validation regularization...

Description Usage Arguments Value References Examples

Description

alasso.cv computes the ALASSO estimator.

Usage

1
alasso.cv(x, y)

Arguments

x

n x p covariate matrix

y

n x 1 response vector

Value

alasso.cv returns the ALASSO estimate

alasso

the ALASSO estimator

References

Hui Zou, (2006). "The adaptive LASSO and its oracle properties", JASA, 101 (476), 1418-1429

Examples

1
2
3
4
5
6
p <- 5
n <- 100
beta <- c(2, 1, 0.5, rep(0, p - 3))
x <- matrix(nrow = n, ncol = p, rnorm(n * p))
y <- rnorm(n) + crossprod(t(x), beta)
alasso.cv(x, y)

STOPES documentation built on June 14, 2019, 9:02 a.m.

Related to allaso.cv in STOPES...