Learn R Programming

SLOPE

Efficient implementations for Sorted L-One Penalized Estimation (SLOPE): generalized linear models regularized with the sorted L1-norm. There is support for ordinary least-squares regression, binomial regression, multinomial regression, and poisson regression, as well as both dense and sparse predictor matrices. In addition, the package features predictor screening rules that enable efficient solutions to high-dimensional problems.

Installation

You can install the current stable release from CRAN with

install.packages("SLOPE")

or the development version from GitHub with

# install.packages("remotes")
remotes::install_github("jolars/SLOPE")

Versioning

SLOPE uses semantic versioning.

Code of conduct

Please note that the ‘SLOPE’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('SLOPE')

Monthly Downloads

399

Version

1.0.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Johan Larsson

Last Published

June 30th, 2025

Functions in SLOPE (1.0.0)

interpolatePenalty

Interpolate penalty values
plotClusters

Plot cluster structure
score

Compute one of several loss metrics on a new data set
plotDiagnostics

Plot results from diagnostics collected during model fitting
print.SLOPE

Print results from SLOPE fit
plot.SLOPE

Plot coefficients
plot.TrainedSLOPE

Plot results from cross-validation
predict.SLOPE

Generate predictions from SLOPE models
regularizationWeights

Generate Regularization (Penalty) Weights for SLOPE
setup_diagnostics

Setup a data.frame of diagnostics
trainSLOPE

Train a SLOPE model
wine

Wine cultivars
sortedL1Prox

Sorted L1 Proximal Operator
student

Student performance
bodyfat

Bodyfat
coef.SLOPE

Obtain coefficients
deviance.SLOPE

Model deviance
cvSLOPE

Tune SLOPE with cross-validation
SLOPE

Sorted L-One Penalized Estimation
abalone

Abalone
SLOPE-package

SLOPE: Sorted L1 Penalized Estimation
createFolds

Create cross-validation folds
heart

Heart disease
interpolateCoefficients

Interpolate coefficients