Learn R Programming

dcsvm (version 0.0.1)

print.dcsvm: Print a DCSVM Object

Description

Prints a summary of the dcsvm object, showing the solution paths.

Usage

# S3 method for dcsvm
print(x, digits = max(3, getOption("digits") - 3), ...)

Value

A two-column matrix with one column showing the number of nonzero coefficients and the other column showing the lambda values.

Arguments

x

A fitted dcsvm object.

digits

Specifies the significant digits to use in the output. Default is max(3, getOption("digits") - 3).

...

Additional arguments to print.

Details

Print a DCSVM Object

Print a summary of the dcsvm solution paths.

This function prints a two-column matrix with columns Df and Lambda. The Df column shows the number of nonzero coefficients, and the Lambda column displays the corresponding lambda value. It is adapted from the print function in the gcdnet and glmnet packages.

See Also

print.dcsvm, predict.dcsvm, coef.dcsvm, plot.dcsvm, and cv.dcsvm.

Examples

Run this code
data(colon)
fit <- dcsvm(colon$x, colon$y)
print(fit)

Run the code above in your browser using DataLab