predict.abclass | R Documentation |
Predict class labels or estimate conditional probabilities for the specified new data.
## S3 method for class 'abclass' predict( object, newx, type = c("class", "probability"), selection = c("cv_1se", "cv_min", "all"), ... )
object |
An object of class |
newx |
A numeric matrix representing the design matrix for predictions. |
type |
A character value specifying the desired type of predictions.
The available options are |
selection |
An integer vector for the solution indices or a character
value specifying how to select a particular set of coefficient estimates
from the entire solution path for prediction. If the specified
|
... |
Other arguments not used now. |
A vector representing the predictions or a list containing the predictions for each set of estimates along the solution path.
## see examples of `abclass()`.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.