Learn R Programming

rqPen (version 2.3)

nonzero.cv.rq.group.pen: Nonzero

Description

Calls nonzero function.

Usage

# S3 method for cv.rq.group.pen
nonzero(obj)

Value

Returns true if all elements in a group are non-zero and FALSE if they are not. Chooses the model associated with lambda.min.

Arguments

obj

cv.rq.group.pen object.

Author

Ben Sherwood

Examples

Run this code
if (FALSE) {
x <- matrix(rnorm(400),nrow=100)
y <- 1 + x[,1] - 3*x[,3] + rnorm(100)
cv_model <- cv.rq.group.pen(x,y,groups=c(rep(1,2),rep(2,2)))
nonzero(cv_model)
}

Run the code above in your browser using DataLab