predict.lasso_fit | R Documentation |
Prediction based on Lasso Forest and provides prediction weights if required.
## S3 method for class 'lasso_fit'
predict(lasso_fit, x, y, xnew = NULL, weights = FALSE)
lasso_fit |
Output of |
x |
Covariate matrix of training sample |
y |
Vector of outcomes of training sample |
xnew |
Covariate matrix of test sample |
weights |
Always FALSE as |
Returns list containing:
prediction |
vector of predictions for xnew |
weights |
Not available for Lasso, only for Post-Lasso |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.