R/model_caliendo_parro_2015.R
update_expenditure_cp_2015.RdUpdates 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
)Matrix of new expenditures, dimensions: sector x country.
Matrix of elasticities of substitution or consumption shares, dimensions: sector x country.
Array of beta-multiplied input-output coefficients, dimensions: input_sector x output_sector x country.
Array of new trade flows (FOB), dimensions: origin x destination x sector.
Array of new tariffs, dimensions: origin x destination x sector.
Array of export taxes, dimensions: origin x destination x sector.
Matrix of value added, dimension: country.
Vector of change in wages, dimension: country.
Vector of new aggregate trade balance, dimension: country.
List of model dimensions.
Tolerance for inner convergence.
Verbosity level.
Method for convergence checking.
Maximum number of inner iterations before the loop bails out (default 5000).
Matrix of new expenditures, dimensions: sector x country.