Description Usage Arguments Details Value
View source: R/getSeasonalityScore.r
The seasonality score of a monthly time series is computed as its departure from a uniform distribution.
1 | tsData.ss <- getSeasonalityScore(tsData)
|
tsData |
A time series object. |
The degree of seasonality of a monthly time series is based on its departure from a uniform distribution. If the number of cases for a given concept is uniformly distributed across all time periods (in this case, all months), then its monthly prevalence (as well as proportion) would be approximately constant. These time series would be considered "absolutely non-seasonal" and their "seasonality score" would be zero. Similarly, if all the cases occur at a single point in time (that is, in a single month), such a time series would be considered "absolutely seasonal" and its seasonality score would be 1. All other time series would have a seasonality score between 0 and 1. Currently, only monthly time series are supported. NB: To be able to compute a seasonality score, a time series must have a minimum of three complete years of data.
A numeric value between 0 and 1 (inclusive) representing the seasonality of a concept.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.