ts.stationary.test: Stationarity testing

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/ts.stationary.test.R

Description

This functions tests the stationarity of the input time series data.

Usage

1

Arguments

tsdata

The input univariate time series data

Details

This function tests the deterministic and stochastic trend of the input time series data. This function uses ACF and PACF functions from forecast package, Phillips Perron test, Augmented Dickey Fuller (ADF) test, Kwiatkowski Phillips Schmidt Shin (KPSS) test, from tseries package and Mann Kendall test for Monotonic Trend Cox Stuart trend test from trend package.

Phillips Perron test tests the null hypothesis of whether a unit root is present in a time series sample, against a stationary alternative. The truncation lag parameter is set to trunc(4*(n/100)^0.25), where n the length of the in input time series data

Augmented Dickey Fuller (ADF) test, tests the null hypothesis of whether a unit root is present in a time series sample. The truncation lag parameter is set to trunc((n-1)^(1/3))), where n the length of the input time series data

Kwiatkowski Phillips Schmidt Shin (KPSS) test, tests a null hypothesis that an observable time series is stationary around a deterministic trend (i.e. trend stationary) against the alternative of a unit root. The truncation lag parameter is set to trunc(3*sqrt(n)/13), where n the length of the input time series data

The non parametric Mann Kendall test is used to detect monotonic trends. The null hypothesis, H0, is that the data come from a population with independent realizations and are identically distributed. The alternative hypothesis, HA, is that the data follow a monotonic trend.

The Cox Stuart test is a modified sign test. The null hypothesis, H0, is that the input time series assumed to be independent against the fact that there is a time dependent trend (monotonic trend).

Value

A string indicating if the time series is stationary or non stationary for internal use in ts.analysis.

Author(s)

Kleanthis Koupidis, Charalampos Bratsas

References

tseries, trend

See Also

ts.analysis, Acf, Pacf, pp.test, adf.test, kpss.test, mk.test, cs.test

Examples

1

TimeSeries.OBeu documentation built on Dec. 18, 2019, 1:48 a.m.