SpaSM: A MATLAB Toolbox for Sparse Statistical Modeling

Karl Sjöstrand, Line Harder Clemmensen, Rasmus Larsen, Gudmundur Einarsson, Bjarne Kjær Ersbøll

Research output: Contribution to journalJournal articleResearchpeer-review

2013 Downloads (Pure)


Applications in biotechnology such as gene expression analysis and image processing have led to a tremendous development of statistical methods with emphasis on reliable solutions to severely underdetermined systems. Furthermore, interpretations of such solutions are of importance, meaning that the surplus of inputs has been reduced to a concise model. At the core of this development are methods which augment the standard linear models for regression, classification and decomposition such that sparse solutions are obtained. This toolbox aims at making public available carefully implemented and well-tested variants of the most popular of such methods for the MATLAB programming environment. These methods consist of easy-to-read yet efficient implementations of various coefficient-path following algorithms and implementations of sparse principal component analysis and sparse discriminant analysis which are not available in MATLAB. The toolbox builds on code made public in 2005 and which has since been used in several studies.
Original languageEnglish
JournalJournal of Statistical Software
Issue number10
Number of pages37
Publication statusPublished - 2018


  • Least angle regression-elastic net
  • Elastic net
  • Sparse principal component analysis
  • Sparse discriminant analysis

Fingerprint Dive into the research topics of 'SpaSM: A MATLAB Toolbox for Sparse Statistical Modeling'. Together they form a unique fingerprint.

Cite this