print.cv.l1.reg {CDLasso}R Documentation

Print results of Greedy Coordinate Descent for L1 Regression

Description

Print short summary of results of cross validation for Greedy Coordinate Descent for L1 Regression.

Usage

## S3 method for class 'cv.l1.reg'
print(x, ...)

Arguments

x

Output of cv.l1.reg. Must be of class "cv.l1.reg"

...

N/A

Details

print.cv.l1.reg produces output from cv.l1.reg.

Author(s)

Edward Grant, Kenneth Lange, Tong Tong Wu

Maintainer: Edward Grant edward.m.grant@gmail.com

References

Wu, T.T. and Lange, K. (2008). Coordinate Descent Algorithms for Lasso Penalized Regression. Annals of Applied Statistics, Volume 2, No 1, 224-244.

See Also

cv.l1.reg

Examples

set.seed(100)
n=50 
p=200
nzfixed = c(1:5)
true.beta<-rep(0,p)
true.beta[nzfixed] = c(1,1,1,1,1)

x=matrix(rnorm(n*p),p,n)
y = t(x) %*% true.beta

rownames(x)<-1:nrow(x)
colnames(x)<-1:ncol(x)

crossval<-cv.l1.reg(x,y,10,(0:20)*2)
print(crossval)

[Package CDLasso version 1.1 Index]