Computes core inflation using the double weight method

core_dp(data, change, weight, code, group, date)

Arguments

data

Dataframe object with inflation index and items data.

change

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

weight

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

code

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

group

A string with the column name of the group of the inflation index and items as provided in group_desc().

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) ipca_dp <- get_ipca(period = "all") %>% group_desc() %>% core_dp(., "pct_change", "weight", "code", "group", "date") }