Description Usage Arguments Value Note Author(s) Examples
This function perform a simple test for seasonality test based on http://robjhyndman.com/hyndsight/detecting-seasonality/. The idea is to perform a chi-squared test for the deviance on two forecst models of type ETS. The first model is an automated ETS model and the second is a ETS model with fixed seasonal component. The NULL is that the data has a seasonal component. If chisq p.value is greater than (1-level) then reject NULL.
1 | DetectSeasonality(x, level = 0.95)
|
x |
'ts' data to be tested |
level |
significance value to test the null hypothesis that the data has a seasonal pattern. |
bolean TRUE or FALSE
Due this function performs two ETS forecast inside it. It can be slow.
LOPES, J. E.
1 2 3 4 5 6 | par(mfrow = c(2,1))
plot(AirPassengers)
plot(lynx)
DetectSeasonality(AirPassengers)
DetectSeasonality(lynx)
par(mfrow = c(1,1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.