View source: R/tests_seasonality.R
seasonality_canovahansen_trigs | R Documentation |
Canova-Hansen test using trigonometric variables
seasonality_canovahansen_trigs(
data,
periods,
lag1 = TRUE,
kernel = c("Bartlett", "Square", "Welch", "Tukey", "Hamming", "Parzen"),
order = NA,
original = FALSE
)
data |
the input data. |
periods |
Periodicities. |
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. |
original |
|
s <- log(ABS$X0.2.20.10.M)
freqs <- seq(0.01, 0.5, 0.001)
plot(seasonality_canovahansen_trigs(s, 1 / freqs, original = FALSE), type = "l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.