Learn R Programming

PACLasso (version 1.0.0)

Penalized and Constrained Lasso Optimization

Description

An implementation of both the equality and inequality constrained lasso functions for the algorithm described in "Penalized and Constrained Optimization" by James, Paulson, and Rusmevichientong (Journal of the American Statistical Association, 2019; see for a full-text version of the paper). The algorithm here is designed to allow users to define linear constraints (either equality or inequality constraints) and use a penalized regression approach to solve the constrained problem. The functions here are used specifically for constraints with the lasso formulation, but the method described in the PaC paper can be used for a variety of scenarios. In addition to the simple examples included here with the corresponding functions, complete code to entirely reproduce the results of the paper is available online through the Journal of the American Statistical Association.

Copy Link

Version

Install

install.packages('PACLasso')

Monthly Downloads

21

Version

1.0.0

License

GPL-3

Maintainer

Courtney Paulson

Last Published

April 29th, 2019

Functions in PACLasso (1.0.0)

lin.int.ineq

Initialize Linear Programming Fit with Inequality Constraints
quad.int

Initialize Quadratic Programming Fit (Equality Constraints)
lasso.ineq

Complete Run of Constrained LASSO Path Function with Inequality Constraints
quad.int.ineq

Initialize Quadratic Programming Fit with Inequality Constraints
lars.c

Constrained LARS Coefficient Function (Equality Constraints)
lars.ineq

Constrained LARS Coefficient Function with Inequality Constraints
lasso.c

Complete Run of Constrained LASSO Path Function (Equality Constraints)
transformed.ineq

Transform Data to Fit PaC Implementation for Inequality Constraints
transformed

Transform Data to Fit PaC Implementation (Equality Constraints)
lin.int

Initialize Linear Programming Fit (Equality Constraints)
generate.data

Function to Randomly Generate Data (with Constraints)