View source: R/tests_seasonality.R
seasonality_canovahansen | R Documentation |
Canova-Hansen seasonality test
seasonality_canovahansen(
data,
period,
type = c("Contrast", "Dummy", "Trigonometric"),
lag1 = TRUE,
kernel = c("Bartlett", "Square", "Welch", "Tukey", "Hamming", "Parzen"),
order = NA,
start = 1
)
data |
the input data. |
period |
Tested periodicity. Can be missing if the input is a time series |
type |
Trigonometric variables, seasonal dummies or seasonal contrasts. |
lag1 |
Lagged variable in the regression model. |
kernel |
Kernel used to compute the robust Newey-West covariance matrix. |
order |
The truncation parameter used to compute the robust Newey-West covariance matrix. |
start |
Position of the first observation of the series |
list with the FTest on seasonal variables, the joint test and the details for the stability of the different seasonal variables
s <- log(ABS$X0.2.20.10.M)
seasonality_canovahansen(s, 12, type = "Contrast")
seasonality_canovahansen(s, 12, type = "Trigonometric")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.