predict.nestcv.glmnet | R Documentation |
Obtains predictions from the final fitted model from a nestcv.glmnet object.
## S3 method for class 'nestcv.glmnet'
predict(object, newdata, s = object$final_param["lambda"], ...)
object |
Fitted |
newdata |
New data to predict outcome on |
s |
Value of lambda for glmnet prediction |
... |
Other arguments passed to |
Checks for missing predictors and if these are sparse (i.e. have zero coefficients) columns of 0 are automatically added to enable prediction to proceed.
Object returned depends on the ...
argument passed to predict
method for glmnet
objects.
glmnet::glmnet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.