Predict class labels or estimate conditional probabilities for the specified new data.
Arguments
- object
An object of class
abclass.- newx
A numeric matrix representing the design matrix for predictions.
- type
A character value specifying the desired type of predictions. The available options are
"class"for predicted labels,"probability"for class conditional probability estimates, and"link"for decision functions.- 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
objectcontains the cross-validation results, one may setselectionto"cv_min"(or"cv_1se") for using the estimates giving the smallest cross-validation error (or the set of estimates resulted from the largest lambda within one standard error of the smallest cross-validation error) or prediction. The prediction for the entire solution path will be returned in a list ifselection = "all"or no cross-validation results are available in the specifiedobject.- newoffset
An optional numeric matrix for the offsets.
- ...
Other arguments not used now.