Skip to contents

The P55 core is the price change of the sub-item at the 55th percentile of the weighted cross-section distribution of sub-item price changes, as described in Section 2.5 of BCB's Technical Note 57 (Dec/2025). The 55th percentile (instead of the median) minimises the bias relative to headline inflation.

Usage

core_p55(data, change, weight, date, percentile = 55)

Arguments

data

Dataframe object with inflation sub-items data.

change

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

weight

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

date

A string with the name of the date column.

percentile

Percentile of the weighted distribution (BCB uses 55).

Value

Calculated core inflation tibble.

Author

Fernando da Silva <fernando@fortietwo.com>

Examples

if (FALSE) { # \dontrun{
library(magrittr)
library(dplyr)

ipca_p55 <- get_ipca(period = "all") %>%
group_desc() %>%
dplyr::filter(group == "Subitem") %>%
core_p55(., "pct_change", "weight", "date")
} # }