knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
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
.
You can install the released version of composits from CRAN with:
install.packages("composits")
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("sevvandi/composits")
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 or our paper [@composits] for more examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.