Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/predict.glinternet.r
Similar to other predict methods, this function returns fitted values on the response scale. Also gives the option to return the link function.
1 2 |
object |
Fitted |
X |
Matrix of new values for which to make predictions. Must have the same number of variables as during training the model, and all the variables must have the same number of levels. |
type |
Return fitted |
lambda |
User input lambda sequence. Must be subset of the lambdas used in fitting. If NULL (the default), predict at all the lambdas used during fitting. |
... |
Not used. Other arguments to predict. |
If lambda is not specified, makes predictions at all the fitted lambda values. Users may provide their own lambda sequence, but this must be a subset of the values used to fit the models.
A matrix of predicted values, with columns corresponding to each fitted model.
Michael Lim and Trevor Hastie
Maintainer: Michael Lim michael626@gmail.com
glinternet
, glinternet.cv
, predict.glinternet.cv
, plot.glinternet.cv
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.