Learn R Programming

roclab (version 0.1.4)

summary.roclearn: Summarize a fitted linear model

Description

Display key information from a fitted "roclearn" object, including: data dimensions, model specification, convergence status, training time, and leading coefficient estimates.

Usage

# S3 method for roclearn
summary(object, ...)

Value

Invisibly returns object after printing a formatted summary.

Arguments

object

A fitted model of class "roclearn".

...

Unused.

See Also

roclearn, summary.kroclearn, cv.roclearn, cv.kroclearn

Examples

Run this code
set.seed(123)
n <- 100
n_pos <- round(0.2 * n)
n_neg <- n - n_pos
X <- rbind(
  matrix(rnorm(2 * n_neg, mean = -1), ncol = 2),
  matrix(rnorm(2 * n_pos, mean =  1), ncol = 2)
)
y <- c(rep(-1, n_neg), rep(1, n_pos))

fit <- roclearn(X, y, lambda = 0.1, approx=TRUE)
summary(fit)

Run the code above in your browser using DataLab