wcore_summary | R Documentation |
This function calculates statistics that summarize the quality of an estimated wavelet-based core inflation measure, excluding the forecasting criterion.
wcore_summary(x, y)
x |
An object generated by the function |
y |
A numeric vector (headline inflation) that must be the same |
A tibble. New columns are added to the object x
:
Standard desviation of x_sm
column that represents the
wavelet core inflation measure.
RMSE of headline inflation 25-period centered
moving avarage (mavc
) and
wavelet core inflation.
p-value calculated by the
function no_bias2
to
verify if the bias of the wavelet core inflation
measure is not significant.
Coefficients
\lambda_h
and \lambda^*_h
and respective
p-value from function dyn_adj
, where
H = 1 and p = 1
.
wcore_table
,
wav_smooth
, mavc
,
no_bias2
.
library(lubridate)
inf_head <- coreinf_br[["ipca"]]
date_start <- coreinf_br[["date"]][1]
ts_start <- c(year(date_start), month(date_start))
inf_head_ts <- ts(inf_head, start = ts_start, frequency = 12)
wshr_obj <- wav_args_wshr(list(
wavelet = c("haar", "d4", "d6", "d8", "s8"),
n.level = 1:4
))
core_wavelet <- wav_smooth(inf_head, wshr_obj)
core_wavelet2 <- wcore_table(core_wavelet, inf_head_ts)
wcore_summary(core_wavelet2, inf_head)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.