powered by
Returns unpenalized portion of the objective function for a penalized quantile regression object.
getRho(model)
Rho is the value of the unpenalized portion of the objective function.
Object with rho as an attribute
Ben Sherwood
x <- matrix(rnorm(800),nrow=100) y <- 1 + x[,1] - 3*x[,5] + rnorm(100) lassoModel <- rq.lasso.fit(x,y,lambda=.5) getRho(lassoModel)
Run the code above in your browser using DataLab