ipca: Deflate Nominal Brazilian Reais Using IPCA

Description Usage Arguments Value See Also Examples

Description

ipca() is a convenience function to deflate nominal Brazilian Reais using the Brazilian Institute of Geography and Statistics' IPCA price index.

Usage

1
ipca(nominal_values, nominal_dates, real_date)

Arguments

nominal_values

A numeric vector containing nominal Brazilian Reais to deflate.

nominal_dates

A Date vector with corresponding nominal dates (i.e., when nominal values were measured). Values are set to the previous month, following the standard methodology used by the Brazilian Central Bank.

real_date

A value indicating the reference date to deflate nominal values in the format 'MM/YYYY' (e.g., '01/2018' for January 2018).

Value

A numeric vector.

See Also

deflate.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Use IPCA index to deflate a vector of nominal Brazilian Reais
reais <- rep(100, 5)
actual_dates <- seq.Date(from = as.Date("2001-01-01"), to = as.Date("2001-05-01"), by = "month")

ipca(reais, actual_dates, "01/2018")

## End(Not run)

deflateBR documentation built on May 2, 2019, 10:54 a.m.