Skip to content

Univariate trend filtering

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

glmgen/trendfilter

Repository files navigation

trendfilter

R-CMD-check

The goal of trendfilter is to solve nonparametric regression.

Installation

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

# install.packages("remotes")
remotes::install_github("glmgen/trendfilter")

Example

This is a basic example which shows you how to solve a common problem:

library(trendfilter)
library(ggplot2)
x <- 1:100 / 101 * 2 * pi
y <- sin(x) + .2 * rnorm(100)
out <- trendfilter(y, x, nlambda = 15)
plot(out) +
  geom_point(data = data.frame(x = x, y = y), aes(x, y), color = "black")

About

Univariate trend filtering

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •