Computes core inflation using the non-smoothed trimmed means method

core_ma(data, change, weight, date)

Arguments

data

Dataframe object with inflation items data.

change

A string with the column name of the percentage change of the inflation items.

weight

A string with the column name of the weight of the inflation items.

date

A string with the name of the date column.

Value

Calculated core inflation tibble.

Author

Fernando da Silva <fernando@fortietwo.com>

Examples

if (FALSE) { library(magrittr) library(dplyr) ipca_ma <- get_ipca(period = "all") %>% group_desc() %>% dplyr::filter(group == "Item") %>% core_ma(., "pct_change", "weight", "date") }