Create a table with adjusted welfare means for each reference year.

db_create_ref_year_table(
  dsm_table,
  gdp_table,
  pce_table,
  pop_table,
  ref_years,
  pip_years,
  region_code = c("pcn_region_code", "wb_region_code")
)

Arguments

dsm_table

data.table: A table with deflated survey means.

gdp_table

data.table: A table with GDP data.

pce_table

data.table: A table with PCE data.

pop_table

data.table: A table with population data.

ref_years

numeric: A vector with reference years.

pip_years

numeric: A vector with calender years used in PIP.

region_code

character: A value with the region code column to use.

Value

data.table

Details

db_create_ref_year_table() creates a table with interpolated or extrapolated welfare means for all specified reference years based on the provided survey, GDP and PCE data.