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