Important use cases include the fused lasso, where D is the oriented incidence matrix of some underlying graph (the orientations being arbitrary), and trend filtering, where D is the discrete difference operator of any given order k.
The general function genlasso computes a solution path
for any penalty matrix D and full column rank predictor matrix X
(adding a ridge penalty when X is rank deficient). For the fused lasso
and trend filtering problems, the specialty functions
fusedlasso and trendfilter should be used
as they deliver a significant increase in speed and numerical
stability.
For a walk-through of using the package for statistical modelling see the included package vignette; for the appropriate background material see the generalized lasso paper referenced below.
genlasso, fusedlasso,
trendfilter