breakout: Breakout Detector: Energy Divisive with Medians

Description Usage Arguments Details Value References Examples

View source: R/EDM.R

Description

A technique for robustly, i.e., in the presence of anomalies, detecting single or multiple change points in univariate time series.

Usage

1
	breakout(Z, min.size = 30, method = 'amoc', ...)

Arguments

Z

The input time series. This is either a numeric vector or a data.frame which has 'timestamp' and 'count' components.

min.size

The minimum number of observations between change points.

method

Method must be one of either 'amoc' (At Most One Change) or 'multi' (Multiple Changes). For 'amoc' at most one change point location will be returned.

...

See the details section for information about additional arguments.

Details

The additional arguments that can be supplied depend upon whether single ('amoc') or multiple ('multi') change point analysis is being performed.

In both cases the following arguments are accepted:

For singe change analysis, the following arguments are accepted:

For multiple change analysis, the following arguments are accepted:

Value

The returned value is a list with the following components.

loc

The estimated change point location(s).

time

The amount of required processing time, in seconds.

pval

The approximate p-value obtained from the permutation test. When nperm=0 or method='multi', pval=NA.

plot

A ggplot graphical object if plotting was requested by the user. The supplied image is of the input time series along with the estimated change point location(s).

References

Nicholas A. James, Arun Kejariwal, David S. Matteson, "Leveraging Cloud Data to Mitigate User Experience from 'Breaking Bad': The Twitter Approach, 2014

Examples

1
2
3
4
	library(BreakoutDetection)
	data(Scribe)
	res = breakout(Scribe, min.size=24, method='multi', beta=.001, degree=1, plot=TRUE)
	res$plot

twitter/BreakoutDetection documentation built on May 3, 2019, 1:51 p.m.