Skip to content

hadley/l1tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

l1tf: l1 trend filtering

R-CMD-check

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

You can install the development version of l1tf from GitHub with:

# install.packages("devtools")
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')
#> Using lambda 374

About

L1 trend filtering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages