Description Usage Arguments Value Examples
View source: R/Lasso-function.R
Prediction of Lasso logistics regression
1 | predict_glmlasso(fit, newdata, type = "response", threshold = 0.5)
|
fit |
fitted object from glmlasso |
newdata |
a data frame in which to look for variables with which to predict. |
type |
the type of prediction required. The default is on the scale of the response variable.
|
threshold |
Threshold values decided for classification |
if type="class"
a vector of predicted class will be returned. Otherwise return a vector of raw probability.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.