isSeasonal: Testing the seasonality of series

Description Usage Arguments Details Author(s) References Examples

View source: R/isSeasonal.R

Description

Using a user-chosen seasonality test, the seasonality of a time series is assessed and a boolean value is returned.

Usage

1
isSeasonal(x, test = "combined", freq = NA)

Arguments

x

time series

test

Test to be used

freq

Frequency of the time series

Details

By default, the combined-test is used to assess the seasonality of a time series and returns a boolean. Alternatively, the QS test (test='qs'), Friedman test (test='fried'), Kruskall-Wallis (test='kw'), F-test on seasonal dummies (test='seasdum') or the Welch test (test='welch') can be used.

Author(s)

Daniel Ollech

References

Webel, K. and Ollech, D. (2019). An overall seasonality test. Deutsche Bundesbank's Discussion Paper series.

Examples

1
2
isSeasonal(ts(rnorm(120, 10,10), frequency=12))
isSeasonal(ts(rnorm(1200, 10,10), frequency=7))

Example output

Registered S3 method overwritten by 'quantmod':
  method            from
  as.zoo.data.frame zoo 
[1] FALSE
[1] FALSE

seastests documentation built on Sept. 18, 2021, 5:07 p.m.