inflation_adjust_cost_data: Calculate annual inflation adjusted costs

Description Usage Arguments Details Value Examples

View source: R/inflation_adjust_costs_data.R

Description

Up to a present value (PV) inflated upwards.

Usage

1
inflation_adjust_cost_data(from_year, to_year, from_cost, inflation_df_nm)

Arguments

from_year

Date of cost to convert from

to_year

Date to convert cost to

from_cost

Cost at from_year

inflation_df_nm

Source of data (string) HCHS, or CPI.

Details

Option to use the following datasets:

(1 + i_{1})(1 + i_{2}) \cdots (1 + i_{n}) \times C

Clearly, for the same i each year this is simply

C(1 + i)^n

Value

Inflated (to) cost (scalar), with attributes used to generate the return value:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
from_year <- 2012
to_year <- 2015
from_cost <- 96.140

1*(1+0.035)^6

inflation_adjust_cost_data(from_year = 2014,
                           to_year = 2016,
                           from_cost = 1,
                           inflation_df_nm = "HCHS")
1*1.004*1.01

HealthEconomicsHackathon/inflatably documentation built on Dec. 15, 2019, 2:24 a.m.