Learn R Programming

abclass (version 0.4.0)

coef.abclass: Coefficient Estimates of A Trained Angle-Based Classifier

Description

Extract coefficient estimates from an abclass object.

Usage

# S3 method for abclass
coef(object, selection = c("cv_1se", "cv_min", "all"), ...)

Value

A matrix representing the coefficient estimates or an array representing all the selected solutions.

Arguments

object

An object of class abclass.

selection

An integer vector for the indices of solution path or a character value specifying how to select a particular set of coefficient estimates from the entire solution path. If the specified abclass object contains the cross-validation results, one may set selection to "cv_min" (or "cv_1se") for 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). The entire solution path will be returned in an array if selection = "all" or no cross-validation results are available in the specified abclass object.

...

Other arguments not used now.

Examples

Run this code
## see examples of `abclass()`.

Run the code above in your browser using DataLab