R/model_chowdhry_hinz_kamin_wanner_2022.R
update_price_index_chkw_2022.RdUpdate price index following Chowdhry, Hinz, Kamin & Wanner (2022) equation (11).
update_price_index_chkw_2022(
price_change,
trade_share,
trade_cost_change,
input_cost_change,
trade_elasticity,
model_dimensions
)Matrix of price index changes, dimensions: sector x country.
Array of initial trade flows, dimensions: origin x destination x sector.
Array of change in trade costs, dimensions: origin x destination x sector.
Matrix of input cost changes, dimensions: sector x country.
Positive Frechet trade elasticity theta, dimensions: sector.
List of model dimensions.
Matrix of changes in price index, dimensions: sector x country.