All Projects → hadley → l1tf

hadley / l1tf

Licence: other
L1 trend filtering

Programming Languages

c
50402 projects - #5 most used programming language
r
7636 projects
C++
36643 projects - #6 most used programming language

l1tf: l1 trend filtering

This is an R package wrapper around the C solver for the l1 trend filtering algorithm written by Kwangmoo Koh, Seung-Jean Kim and Stephen Boyd.

Installation

l1tf is not currently on CRAN, but you can install from github with:

# install.packages("devtools")
install_github("hadley/l1tf")

Examples

library(l1tf)
plot(sp500$log, type='l', col='blue')
lines(l1tf(sp500$log, lambda = 50), col = "red", type='l')
lines(l1tf(sp500$log, prop = 0.01), col = "green3", type='l')
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].