Learn R Programming

SLOPE (version 2.0.0)

summary.SLOPE: Summarize SLOPE Model

Description

Produces a summary of a fitted SLOPE model, including information about the regularization path, model family, and fitted values.

Usage

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

Value

An object of class "summary_SLOPE" with the following components:

call

the call that produced the model

family

the model family

n_obs

number of observations

n_predictors

number of predictors

has_intercept

whether an intercept was fit

path_length

number of steps in the regularization path

alpha_range

range of alpha values in the path

deviance_ratio_range

range of deviance ratios in the path

null_deviance

null deviance

path_summary

data frame summarizing the regularization path

Arguments

object

an object of class "SLOPE", typically from a call to SLOPE()

...

other arguments (currently ignored)

See Also

SLOPE(), print.summary_SLOPE()

Other SLOPE-methods: coef.SLOPE(), deviance.SLOPE(), plot.SLOPE(), predict.SLOPE(), print.SLOPE(), score()

Examples

Run this code
fit <- SLOPE(heart$x, heart$y)
summary(fit)

# Multinomial example
fit_multi <- SLOPE(wine$x, wine$y, family = "multinomial")
summary(fit_multi)

Run the code above in your browser using DataLab