Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/predict.cv.glmnet.R
This function makes predictions from a cross-validated glmnet model,
using the stored "glmnet.fit"
object, and the optimal value
chosen for lambda
.
1 2 3 4 |
object |
Fitted |
newx |
Matrix of new values for |
s |
Value(s) of the penalty parameter |
... |
Not used. Other arguments to predict. |
This function makes it easier to use the results of cross-validation to make a prediction.
The object returned depends the ... argument which is passed on
to the predict
method for glmnet
objects.
Jerome Friedman, Trevor Hastie and Rob Tibshirani
Maintainer: Trevor Hastie <hastie@stanford.edu>
Friedman, J., Hastie, T. and Tibshirani, R. (2008)
Regularization Paths for Generalized Linear Models via Coordinate
Descent, Journal of Statistical Software, Vol. 33, Issue 1, Feb 2010
http://www-stat.stanford.edu/~hastie/Papers/glmnet.pdf
http://www.jstatsoft.org/v33/i01/
glmnet
, and print
, and coef
methods, and cv.glmnet
.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.