An open API service indexing awesome lists of open source software.

https://github.com/sevvandi/composits


https://github.com/sevvandi/composits

compositional detection ensemble-model multivariate-timeseries outlier time-series

Last synced: 14 days ago
JSON representation

Awesome Lists containing this project

README

          

---
output: github_document
bibliography: vignettes/bibliography.bib
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# composits


[![R-CMD-check](https://github.com/sevvandi/composits/workflows/R-CMD-check/badge.svg)](https://github.com/sevvandi/composits/actions)

The goal of *composits* is to find outliers in compositional, multivariate and univariate time series. It is an outlier ensemble method that uses the packages ```forecast```, ```tsoutliers```, ```anomalize``` and ```otsad```.

## Installation

You can install the released version of composits from [CRAN](https://CRAN.R-project.org) with:

``` r
install.packages("composits")
```

You can install the development version from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("sevvandi/composits")
```

## Example

```{r example}
library(composits)
set.seed(100)
n <- 600
x <- sample(1:100, n, replace=TRUE)
x[320] <- 300
x2 <- sample(1:100, n, replace=TRUE)
x3 <- sample(1:100, n, replace=TRUE)
X <- cbind.data.frame(x, x2, x3)
x4 <- sample(1:100, n, replace=TRUE)
X <- cbind.data.frame(x, x2, x3, x4)
out <- mv_tsout_ens(X)
out$all
out$outliers
```

See our [website](https://sevvandi.github.io/composits/index.html) or our paper [@composits] for more examples.

# References