Computes core inflation using the non-smoothed trimmed means method (IPCA-MA)
Source:R/core_ma.R
core_ma.RdFollows the five steps of Section 2.3 of BCB's Technical Note 57 (Dec/2025): items are sorted by price change, 20\ each tail, boundary items are kept with their partial weight, and the core is the weighted mean of the remaining items with normalised weights.
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.
- trim
Share of the cumulative weight trimmed from each tail (BCB uses 0.2).
Author
Fernando da Silva <fernando@fortietwo.com>