Canova-Hansen test using trigonometric variables
Source:R/tests_seasonality.R
seasonality_canovahansen_trigs.RdCanova-Hansen test using trigonometric variables
Usage
seasonality_canovahansen_trigs(
data,
periods,
lag1 = TRUE,
kernel = c("Bartlett", "Square", "Welch", "Tukey", "Hamming", "Parzen"),
order = NA,
original = FALSE
)Arguments
- 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
TRUEfor original algorithm,FALSEfor solution proposed by T. Proietti (based on Ox code).
