R/model_chowdhry_hinz_kamin_wanner_2022.R
update_trade_share_chkw_2022.RdCompute new trade shares following Chowdhry, Hinz, Kamin & Wanner (2022) equation (12).`
update_trade_share_chkw_2022(
trade_share,
trade_cost_change,
input_cost_change,
price_change,
trade_elasticity,
model_dimensions
)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.
Matrix of price index changes, dimensions: sector x country.
Positive Frechet trade elasticity theta, dimension: sector.
List of model dimensions.
Array of new trade shares, dimensions: origin x destination x sector.