Learn R Programming

rqPen (version 2.2.2)

nonzero: Nonzero

Description

Calls nonzero function based on object.

Usage

nonzero(obj)

Arguments

obj

Model.

Value

Returns if coefficients or groups are nonzero or not. TRUE if they are not zero and FALSE if they are.

Examples

Run this code
# NOT RUN {
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