|
# There are no values in Rho for VA, so we calculate a weighted average Rho value for the VA rows for the current year |
|
# by using the commodity output values as weights, multiplying the Rho values by the weights, |
|
# diving by the sum of the weights, and averaging the result |
|
Rho_year_index = which(colnames(Make_Use_2017$Rho) %in% year) |
|
weighted_av_Rho = mean((Make_Use_2017$Rho[,Rho_year_index] * Make_Use_2017$q)/Make_Use_2017$q) |
A commodity output weighted average of CPI is used for a VA CPI. Instead we could used published VA-specific CPI values provided by BEA at a summary plus level of res:

useeior/data-raw/CalculateIntermediateUseAndCommodityMix.R
Lines 53 to 57 in 6e730eb
A commodity output weighted average of CPI is used for a VA CPI. Instead we could used published VA-specific CPI values provided by BEA at a summary plus level of res: