mse | R Documentation |
Accuracy/smoothness/timeliness criteria through spectral decomposition
mse(sweights, aweights, density = c("uniform", "rw"), passband = pi/6)
sweights |
|
aweights |
|
density |
hypothesis on the spectral density: |
passband |
passband threshold. |
The criteria
Wildi, Marc and McElroy, Tucker (2019). “The trilemma between accuracy, timeliness and smoothness in real-time signal extraction”. In: International Journal of Forecasting 35.3, pp. 1072–1084.
filter <- lp_filter(horizon = 6, kernel = "Henderson", endpoints = "LC")
sweights <- filter[,"q=6"]
aweights <- filter[,"q=0"]
mse(sweights, aweights)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.