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")
)
data.table: A table with deflated survey means.
data.table: A table with GDP data.
data.table: A table with PCE data.
data.table: A table with population data.
numeric: A vector with reference years.
numeric: A vector with calender years used in PIP.
character: A value with the region code column to use.
data.table
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.