Description Usage Arguments Details Value Author(s) References See Also Examples

Produce an anova-type summary for a lars object.

1 2 |

`object` |
lars object |

`sigma2` |
optional variance measure (for p>n) |

`...` |
Additional arguments for summary generic |

An anova summary is produced, with Df, RSS and Cp for each step. Df is tricky for some models, such as forward stagewise and stepwise, and is not likely to be accurate. When p>n, the user is responsible for supplying sigma2.

An anova object is returned, with rownames the step number, and with components:

`Df ` |
Estimated degree of freedom |

`Rss` |
The Residual sum of Squares |

`Cp` |
The Cp statistic |

Brad Efron and Trevor Hastie

Efron, Hastie, Johnstone and Tibshirani (2003) "Least Angle Regression"
(with discussion) *Annals of Statistics*; see also http://www-stat.stanford.edu/~hastie/Papers/LARS/LeastAngle_2002.pdf.
Hastie, Tibshirani and Friedman (2002) Elements of Statistical
Learning, Springer, NY.

lars, and print, plot,and predict methods for lars, and cv.lars

1 2 3 4 5 |

```
Loaded lars 1.2
LARS/LASSO
Call: lars(x = x, y = y)
Df Rss Cp
0 1 2621009 453.7263
1 2 2510465 418.0322
2 3 1700369 143.8012
3 4 1527165 86.7411
4 5 1365734 33.6957
5 6 1324118 21.5052
6 7 1308932 18.3270
7 8 1275355 8.8775
8 9 1270233 9.1311
9 10 1269390 10.8435
10 11 1264977 11.3390
11 10 1264765 9.2668
12 11 1263983 11.0000
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.