Description Usage Arguments Value Author(s) Examples

Make predictions or extract coefficients from a forward stepwise object

1 2 3 4 |

`object` |
Object returned by a call to |

`newx` |
Matrix of x values at which the predictions are desired. If NULL, the x values from forward stepwise fitting are used |

`s` |
Step number(s) at which predictions or coefficients are desired |

`...` |
Additional arguments |

Either a vector/matrix of predictions, or a vector/matrix of coefficients.

Ryan Tibshirani, Rob Tibshirani, Jonathan Taylor, Joshua Loftus, Stephen Reid

1 2 3 4 5 6 7 8 9 10 11 |

```
Loading required package: glmnet
Loading required package: Matrix
Loading required package: foreach
Loaded glmnet 2.0-16
Loading required package: intervals
Attaching package: 'intervals'
The following object is masked from 'package:Matrix':
expand
Loading required package: survival
```

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.