Updates expenditures following Caliendo & Parro (2015) equation (13).

update_expenditure_cp_2015(
  expenditure_new,
  consumption_share,
  input_share,
  trade_share_new,
  tariff_new,
  export_subsidy_new,
  value_added,
  wage_change,
  trade_balance_new,
  model_dimensions,
  tolerance,
  verbose,
  convergence_method,
  max_inner_iterations = 5000L
)

Arguments

expenditure_new

Matrix of new expenditures, dimensions: sector x country.

consumption_share

Matrix of elasticities of substitution or consumption shares, dimensions: sector x country.

input_share

Array of beta-multiplied input-output coefficients, dimensions: input_sector x output_sector x country.

trade_share_new

Array of new trade flows (FOB), dimensions: origin x destination x sector.

tariff_new

Array of new tariffs, dimensions: origin x destination x sector.

export_subsidy_new

Array of export taxes, dimensions: origin x destination x sector.

value_added

Matrix of value added, dimension: country.

wage_change

Vector of change in wages, dimension: country.

trade_balance_new

Vector of new aggregate trade balance, dimension: country.

model_dimensions

List of model dimensions.

tolerance

Tolerance for inner convergence.

verbose

Verbosity level.

convergence_method

Method for convergence checking.

max_inner_iterations

Maximum number of inner iterations before the loop bails out (default 5000).

Value

Matrix of new expenditures, dimensions: sector x country.