Computes core inflation using the smoothed trimmed means method

core_ms(data, change, weight, code, 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.

code

A string with the column name of the code of the inflation items as provided in get_ipca().

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_ms <- get_ipca(period = "all") %>% group_desc() %>% dplyr::filter(group == "Item") %>% core_ms(., "pct_change", "weight", "code", "date") }