R/model_caliendo_parro_2015.R
update_price_index_cp_2015.RdUpdate price index following Caliendo & Parro (2015) equation (11).
update_price_index_cp_2015(
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.