# plot.lassogrp: Plotting Method for 'lassogrp' Objects In lassogrp: Lasso Regression including group lasso and adaptive lasso

## Description

Plots either the traces of the coefficients, the penalty of the coefficient groups, or the penalty terms of the whole model obtained by lasso regression as functions of the penalty weight lambda.

## Usage

 ```1 2 3 4``` ```## S3 method for class 'lassogrp' plot(x, type = c("norms", "coefficients", "criteria"), col = NULL, lty = NULL, mar = NULL, main = NULL, cv = NULL, se = TRUE, ylim = NULL, legend = TRUE, ...) ```

## Arguments

 `x` object of class 'lassogrp' containing the results of fitting a model by lasso. `type` character string defining the type of results to be plotted: "norms"For simple (non-grouped) regressors, show the absolute value of the estimated coefficient. For grouped variables, show the (L2) norms of the coefficient vector. In both cases, this is the contribution to the L1 penalty term of the (grouped) lasso. "coefficients"the estimated coefficients "criteria"the (average) log-likelihood and the L1 penalty term `col, lty` colors and line types for the curves. If `type` is `"criteria"`, they are used as follows [1]for the log-likelihood, [2]for the cross-validated root mse (!!!) [3]for the cross-validated standard error band of the root mse (!!!) [4]for the L1 penalty term. `mar` plot margins `main` main title of the plot `cv` results of cross validation (see `cv.lasso`) to be plotted, or logical: if true, `cv.lasso` will be called and cross validation results will be plotted. `se` logical: Should the cross validation standard error band be plotted? `ylim` limits of the vertical plotting axis. Defaults to the range of the values to be plotted except for the values for lambda==0 (if these are contained in `x`) `legend` logical: should a legend be displayed? `...` further arguments passed to `matplot`

none

## Note

For model other than ordinary regression, the cross validation results are not yet treated in a sensible way.

## Author(s)

Werner A. Stahel, ETH Zurich, [email protected]

## Examples

 ```1 2 3 4 5``` ```data(asphalt) rr <- lasso(log10(RUT) ~ log10(VISC)+ASPH+BASE+FINES+VOIDS+RUN, data=asphalt) plot(rr) plot(rr, type="criteria") ```

lassogrp documentation built on May 31, 2017, 4:04 a.m.