diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index b1ac635..51d1e49 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-12-23T14:59:24","documenter_version":"1.8.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.8","generation_timestamp":"2025-02-09T12:30:17","documenter_version":"1.8.0"}} \ No newline at end of file diff --git a/dev/api.html b/dev/api.html index cc7197d..e3dcdc3 100644 --- a/dev/api.html +++ b/dev/api.html @@ -1,9 +1,9 @@ -API · BeforeIT.jl

Code reference

In this page we document the functions which constitute the bulk of BeforeIT.jl functionality.

Agent types

BeforeIT.AggregatesType

This is a Aggregates type. It is used to store the aggregate variables of the economy. Note that t is an integer, while the rest are floats or vectors of floats.

Fields

  • Y [vector]: GDP data + predictions
  • pi_ [vector]: inflation data + predictions
  • P_bar: Global price index
  • P_bar_g [vector]: Producer price index for principal good g
  • P_bar_HH: Consumer price index
  • P_bar_CF: Capital price index
  • P_bar_h: CPI_h
  • P_bar_CF_h: Capital price index _h
  • Y_e: Expected GDP
  • gamma_e: Expected growth
  • pi_e: Expected inflation
  • t: Time index
source
BeforeIT.BankType

This is a Bank type. It represents the bank of the model.

Fields

  • E_k: equity capital (common equity) of the bank
  • Pi_k: Profits of the bank
  • Pi_e_k: Expected profits of the bank
  • D_k: Residual and balancing item on the bank’s balance sheet
  • r: Rate for loans and morgages

Household fields (bank' owner)

  • Y_h: Net disposable income of bank owner (investor)
  • C_d_h: Consumption budget
  • I_d_h: Investment budget
  • C_h: Realised consumption
  • I_h: Realised investment
  • K_h: Capital stock
  • D_h: Deposits
source
BeforeIT.CentralBankType

This is a CentralBank type. It represents the central bank of the model.

Fields

  • r_bar: Nominal interest rate
  • r_G: Interest rate on government bonds
  • rho: Parameter for gradual adjustment of the policy rate
  • r_star: Real equilibrium interest rate
  • pi_star: Inflation target by CB
  • xi_pi: Weight the CB puts on inflation targeting
  • xi_gamma: Weight placed on economic
  • E_CB: Central bank equity
source
BeforeIT.FirmsType

This is a Firms type. Each field is an array which stores the values for all the firms in the economy. Note that the G_i, N_i and V_i fields are integers, while the rest are floats.

For all fields the entry at index i corresponds to the ith firm.

Fields

  • G_i: Principal product
  • alpha_bar_i: Average productivity of labor
  • beta_i: Productivity of intermediate consumption
  • kappa_i: Productivity of capital
  • w_i: Wages
  • w_bar_i: Average wage rate
  • delta_i: Depreciation rate for capital
  • tau_Y_i: Net tax rate on products
  • tau_K_i: Net tax rate on production
  • N_i: Number of persons employed
  • Y_i: Production of goods
  • Q_i: Sales of goods
  • Q_d_i: Demand for goods
  • P_i: Price
  • S_i: Inventories
  • K_i: Capital, in real terms
  • M_i: Intermediate goods/services and raw materials, in real terms
  • L_i: Outstanding loans
  • pi_bar_i: Operating margin
  • D_i: Deposits of the firm
  • Pi_i: Profits
  • V_i: Vacancies
  • I_i: Investments
  • E_i: Equity
  • P_bar_i: Price index
  • P_CF_i: Price index
  • DS_i: Differnece in stock of final goods
  • DM_i: Difference in stock of intermediate goods
  • DL_i: Obtained loans
  • DL_d_i: Target loans
  • K_e_i: Expected capital
  • L_e_i: Expected loans
  • Q_s_i: Expected sales
  • I_d_i: Desired investments
  • DM_d_i: Desired materials
  • N_d_i: Desired employment
  • Pi_e_i: Expected profits

Household fields (firms' owners)

  • Y_h: Net disposable income of firm owner (investor)
  • C_d_h: Consumption budget
  • I_d_h: Investment budget
  • C_h: Realised consumption
  • I_h: Realised investment
  • K_h: Capital stock
  • D_h: Deposits of the owner of the firms
source
BeforeIT.GovernmentType

This is a Government type. It represents the government of the model.

Fields

  • alpha_G: Autoregressive coefficient for government consumption
  • beta_G: Scalar constant for government consumption
  • sigma_G: Variance coefficient for government consumption
  • Y_G: Government revenues
  • C_G: Consumption demand of the general government
  • L_G: Loans taken out by the government
  • sb_inact: Social benefits for inactive persons
  • sb_other: Social benefits for all
  • C_d_j [vector]: Local governments consumption demand
  • C_j: Realised government consumption
  • P_j: Price inflation of government goods <- ??
source
BeforeIT.ModelType

This is a Model type. It is used to store all the agents of the economy.

Fields

  • w_act: Workers that are active
  • w_inact: Workers that are inactive
  • firms: Firms
  • bank: Bank
  • cb: CentralBank
  • gov: Government
  • rotw: RestOfTheWorld
  • agg: Aggregates
source
BeforeIT.RestOfTheWorldType

This is a RestOfTheWorld type. It represents the rest of the world of the model.

Fields

  • alpha_E: Autoregressive coefficient for exports
  • beta_E: Scalar constant for exports
  • sigma_E: Variance coefficient for exports
  • alpha_I: Autoregressive coefficient for imports
  • beta_I: Scalar constant for imports
  • sigma_I: Variance coefficient for imports
  • Y_EA: GDP euro area
  • gamma_EA: Growth euro area
  • pi_EA: Inflation euro area
  • alpha_pi_EA: Autoregressive coefficient for euro area inflation
  • beta_pi_EA: Autoregressive coefficient for euro area inflation Scalar constant for euro area inflation
  • sigma_pi_EA: Variance coefficient for euro area inflation
  • alpha_Y_EA: Autoregressive coefficient for euro area GDP
  • beta_Y_EA: Autoregressive coefficient for euro area GDP Scalar constant for euro area GDP
  • sigma_Y_EA: Variance coefficient for euro area GDP
  • D_RoW: Net creditor/debtor position of the national economy to the rest of the world
  • Y_I: Supply of imports (in real terms)
  • C_E: Total demand for exports
  • C_d_l [vector]: Demand for exports of specific product
  • C_l: Realised consumption by foreign consumers
  • Y_m [vector]: Supply of imports per sector
  • Q_m [vector]: Sales for imports per sector
  • Q_d_m [vector]: Demand for goods
  • P_m [vector]: Price of imports per sector
  • P_l: Price inflation of exports <- ??
source
BeforeIT.WorkersType

This is a Workers. Each field is an array which stores the values for all the workers in the economy. Note that the O_h field is an integer, while the rest are floats.

For all fields the entry at index i corresponds to the ith worker.

Fields

  • Y_h: Net disposable income of worker owner (investor)
  • D_h: Deposits
  • K_h: Capital stock
  • w_h: Wages (0 if inactive or unemployed)
  • O_h: Occupation (0 if unemployed, -1 if inactive)
  • C_d_h: Consumption budget
  • I_d_h: Investment budget
  • C_h: Realised consumption
  • I_h: Realised investment
source

Initialisation function

BeforeIT.init_modelFunction
init_model(parameters, initial_conditions, T, typeInt = Int64, typeFloat = Float64)

Initializes the model with given parameters and initial conditions.

Parameters:

  • parameters: A dictionary containing the model parameters.
  • initial_conditions: A dictionary containing the initial conditions.
  • T (integer): The time horizon of the model.
  • typeInt: (optional, default: Int64): The data type to be used for integer values.
  • typeFloat: (optional, default: Float64): The data type to be used for floating-point values.

Returns:

  • model::Model: The initialized model.
source
BeforeIT.update_variables_with_totals!Method
update_variables_with_totals!(model::Model)

Update the variables in the given model with some global quantities obtained from all agents. This is the last step in the initialization process and it must be performed after all agents have been initialized.

Arguments

  • model::Model: The model object to update.

Returns

  • Nothing
source

Functions to run an entire simulation

BeforeIT.run_one_epoch!Method
run_one_epoch!(model; multi_threading = false)

This function simulates a single epoch the economic model, updating various components of the model based the interactions between different economic agents. It accepts a model object, which encapsulates the state for the simulation, and an optional boolean parameter multi_threading to enable or disable multi-threading.

Key operations performed include:

  • Financial adjustments for firms and banks, including insolvency checks and profit calculations.
  • Economic expectations and adjustments, such as growth, inflation, and central bank rates.
  • Labor and credit market operations, including wage updates and loan processing.
  • Household economic activities, including consumption and investment budgeting.
  • Government and international trade financial activities, including budgeting and trade balances.
  • General market matching and accounting updates to reflect changes in economic indicators and positions.

The function updates the model in-place and does not return any value.

source
BeforeIT.run_n_simsMethod
run_n_sims(model, n_sims; shock = NoShock(), multi_threading = true)

A function that runs n_sims simulations in parallel with multiple threading and returns a vector of data objects of dimension n_sims.

Arguments

  • model: The model configuration used to simulate.
  • n_sims: The number of simulations to run in parallel.

Returns

  • data_vector: A vector containing the data objects collected during each simulation.
source
BeforeIT.run_one_sim!Method
run_one_sim!(model; shock = NoShock())

Run a single simulation based on the provided model. The simulation runs for a number of epochs specified by model.prop.T.

Arguments

  • model::Model: The model configuration used for the simulation.

Returns

  • data::Data: The data collected during the simulation.

Details

The function initializes the data using BeforeIT.init_data(model), then iteratively updates the model and data for each epoch using BeforeIT.run_one_epoch!(model) and BeforeIT.update_data!(data, model) respectively.

Example

```julia model = BeforeIT.initmodel(parameters, initialconditions, T) data = runonesim!(model)

source

Firms actions

BeforeIT.firms_depositsMethod
firms_deposits(firms, model)

Calculate the new deposits of firms.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • DD_i: Vector of new deposits

The new deposits DD_i are calculated as follows:

DD_i = sales + labour_cost + material_cost + taxes_products + taxes_production + corporate_tax + dividend_payments + interest_payments + interest_received + investment_cost + new_credit + debt_installment

where:

  • sales = P_i * Q_i
  • labour_cost = (1 + tau_SIF) * w_i * N_i * P_bar_HH
  • material_cost = -DM_i * P_bar_i
  • taxes_products = -tau_Y_i * P_i * Y_i
  • taxes_production = -tau_K_i * P_i * Y_i
  • corporate_tax = -tau_FIRM * pos(Pi_i)
  • dividend_payments = -theta_DIV * (1 - tau_FIRM) * pos(Pi_i)
  • interest_payments = -r * (L_i + pos(-D_i))
  • interest_received = r_bar * pos(D_i)
  • investment_cost = -P_CF_i * I_i
  • new_credit = DL_i
  • debt_installment = -theta * L_i
source
BeforeIT.firms_equityMethod
firms_equity(firms, model)

Calculate the equity of firms.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • E_i: Vector of equity

The equity E_i is calculated as follows:

\[E_i = D_i + M_i * \sum(a_{sg}[:, G_i] * \bar{P}_g) + P_i * S_i + \bar{P}_{CF} * K_i - L_i\]

where:

  • D_i: Deposits
  • M_i: Intermediate goods
  • a_sg: Technology coefficient of the gth product in the sth industry
  • G_i: Vector of goods
  • P_bar_g: Producer price index for principal good g
  • P_i: Price
  • S_i: Stock
  • P_bar_CF: Capital price index
  • K_i: Capital stock
  • L_i: Loans
source
BeforeIT.firms_expectations_and_decisionsMethod
firms_expectations_and_decisions(firms, model)

Calculate the expectations and decisions of firms. That is: compute firm quantity, price, investment and intermediate-goods, employment decisions, expected profits, and desired/expected loans and capital.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • Q_s_i: Vector of desired quantities
  • I_d_i: Vector of desired investments
  • DM_d_i: Vector of desired intermediate goods
  • N_d_i: Vector of desired employment
  • Pi_e_i: Vector of expected profits
  • DL_d_i: Vector of desired new loans
  • K_e_i: Vector of expected capital
  • L_e_i: Vector of expected loans
  • P_i: Vector of prices
source
BeforeIT.firms_loansMethod
firms_loans(firms, model)

Calculate the new loans of firms.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • L_i: Vector of new loans

The new loans L_i are calculated as follows:

\[L_i = (1 - theta) * L_i + DL_i\]

where:

  • theta: Rate of repayment
  • L_i: Loans
  • DL_i: Acquired new loans
source
BeforeIT.firms_productionMethod
firms_production(firms)

Calculate the production of firms.

Arguments

  • firms: Firms object

Returns

  • Y_i: Vector of production

The production Y_i is computed using a Leontief technology.

source
BeforeIT.firms_profitsMethod
firms_profits(firms, model)

Calculate the profits of firms.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • Pi_i: Vector of profits

The profits Pi_i are calculated as follows:

Pi_i = in_sales + in_deposits - out_wages - out_expenses - out_depreciation - out_taxes_prods - out_taxes_capital - out_loans

where:

  • in_sales = P_i * Q_i + P_i * DS_i
  • in_deposits = r_bar * pos(D_i)
  • out_wages = (1 + tau_SIF) * w_i * N_i * P_bar_HH
  • out_expenses = 1 / beta_i * P_bar_i * Y_i
  • out_depreciation = delta_i / kappa_i * P_CF_i * Y_i
  • out_taxes_prods = tau_Y_i * P_i * Y_i
  • out_taxes_capital = tau_K_i * P_i * Y_i
  • out_loans = r * (L_i + pos(-D_i))
source
BeforeIT.firms_stocksMethod
firms_stocks(firms)

Calculate the stocks of firms.

Arguments

  • firms: Firms object

Returns

  • K_i: Vector of capital stock
  • M_i: Vector of intermediate goods
  • DS_i: Vector of differneces in stock of final goods
  • S_i: Vector of stock of final goods

The stocks are calculated as follows:

K_i = K_i - delta_i / kappa_i * Y_i + I_i
+API · BeforeIT.jl

Code reference

In this page we document the functions which constitute the bulk of BeforeIT.jl functionality.

Agent types

BeforeIT.AggregatesType

This is a Aggregates type. It is used to store the aggregate variables of the economy. Note that t is an integer, while the rest are floats or vectors of floats.

Fields

  • Y [vector]: GDP data + predictions
  • pi_ [vector]: inflation data + predictions
  • P_bar: Global price index
  • P_bar_g [vector]: Producer price index for principal good g
  • P_bar_HH: Consumer price index
  • P_bar_CF: Capital price index
  • P_bar_h: CPI_h
  • P_bar_CF_h: Capital price index _h
  • Y_e: Expected GDP
  • gamma_e: Expected growth
  • pi_e: Expected inflation
  • t: Time index
source
BeforeIT.BankType

This is a Bank type. It represents the bank of the model.

Fields

  • E_k: equity capital (common equity) of the bank
  • Pi_k: Profits of the bank
  • Pi_e_k: Expected profits of the bank
  • D_k: Residual and balancing item on the bank’s balance sheet
  • r: Rate for loans and morgages

Household fields (bank' owner)

  • Y_h: Net disposable income of bank owner (investor)
  • C_d_h: Consumption budget
  • I_d_h: Investment budget
  • C_h: Realised consumption
  • I_h: Realised investment
  • K_h: Capital stock
  • D_h: Deposits
source
BeforeIT.CentralBankType

This is a CentralBank type. It represents the central bank of the model.

Fields

  • r_bar: Nominal interest rate
  • r_G: Interest rate on government bonds
  • rho: Parameter for gradual adjustment of the policy rate
  • r_star: Real equilibrium interest rate
  • pi_star: Inflation target by CB
  • xi_pi: Weight the CB puts on inflation targeting
  • xi_gamma: Weight placed on economic
  • E_CB: Central bank equity
source
BeforeIT.FirmsType

This is a Firms type. Each field is an array which stores the values for all the firms in the economy. Note that the G_i, N_i and V_i fields are integers, while the rest are floats.

For all fields the entry at index i corresponds to the ith firm.

Fields

  • G_i: Principal product
  • alpha_bar_i: Average productivity of labor
  • beta_i: Productivity of intermediate consumption
  • kappa_i: Productivity of capital
  • w_i: Wages
  • w_bar_i: Average wage rate
  • delta_i: Depreciation rate for capital
  • tau_Y_i: Net tax rate on products
  • tau_K_i: Net tax rate on production
  • N_i: Number of persons employed
  • Y_i: Production of goods
  • Q_i: Sales of goods
  • Q_d_i: Demand for goods
  • P_i: Price
  • S_i: Inventories
  • K_i: Capital, in real terms
  • M_i: Intermediate goods/services and raw materials, in real terms
  • L_i: Outstanding loans
  • pi_bar_i: Operating margin
  • D_i: Deposits of the firm
  • Pi_i: Profits
  • V_i: Vacancies
  • I_i: Investments
  • E_i: Equity
  • P_bar_i: Price index
  • P_CF_i: Price index
  • DS_i: Differnece in stock of final goods
  • DM_i: Difference in stock of intermediate goods
  • DL_i: Obtained loans
  • DL_d_i: Target loans
  • K_e_i: Expected capital
  • L_e_i: Expected loans
  • Q_s_i: Expected sales
  • I_d_i: Desired investments
  • DM_d_i: Desired materials
  • N_d_i: Desired employment
  • Pi_e_i: Expected profits

Household fields (firms' owners)

  • Y_h: Net disposable income of firm owner (investor)
  • C_d_h: Consumption budget
  • I_d_h: Investment budget
  • C_h: Realised consumption
  • I_h: Realised investment
  • K_h: Capital stock
  • D_h: Deposits of the owner of the firms
source
BeforeIT.GovernmentType

This is a Government type. It represents the government of the model.

Fields

  • alpha_G: Autoregressive coefficient for government consumption
  • beta_G: Scalar constant for government consumption
  • sigma_G: Variance coefficient for government consumption
  • Y_G: Government revenues
  • C_G: Consumption demand of the general government
  • L_G: Loans taken out by the government
  • sb_inact: Social benefits for inactive persons
  • sb_other: Social benefits for all
  • C_d_j [vector]: Local governments consumption demand
  • C_j: Realised government consumption
  • P_j: Price inflation of government goods <- ??
source
BeforeIT.ModelType

This is a Model type. It is used to store all the agents of the economy.

Fields

  • w_act: Workers that are active
  • w_inact: Workers that are inactive
  • firms: Firms
  • bank: Bank
  • cb: CentralBank
  • gov: Government
  • rotw: RestOfTheWorld
  • agg: Aggregates
source
BeforeIT.RestOfTheWorldType

This is a RestOfTheWorld type. It represents the rest of the world of the model.

Fields

  • alpha_E: Autoregressive coefficient for exports
  • beta_E: Scalar constant for exports
  • sigma_E: Variance coefficient for exports
  • alpha_I: Autoregressive coefficient for imports
  • beta_I: Scalar constant for imports
  • sigma_I: Variance coefficient for imports
  • Y_EA: GDP euro area
  • gamma_EA: Growth euro area
  • pi_EA: Inflation euro area
  • alpha_pi_EA: Autoregressive coefficient for euro area inflation
  • beta_pi_EA: Autoregressive coefficient for euro area inflation Scalar constant for euro area inflation
  • sigma_pi_EA: Variance coefficient for euro area inflation
  • alpha_Y_EA: Autoregressive coefficient for euro area GDP
  • beta_Y_EA: Autoregressive coefficient for euro area GDP Scalar constant for euro area GDP
  • sigma_Y_EA: Variance coefficient for euro area GDP
  • D_RoW: Net creditor/debtor position of the national economy to the rest of the world
  • Y_I: Supply of imports (in real terms)
  • C_E: Total demand for exports
  • C_d_l [vector]: Demand for exports of specific product
  • C_l: Realised consumption by foreign consumers
  • Y_m [vector]: Supply of imports per sector
  • Q_m [vector]: Sales for imports per sector
  • Q_d_m [vector]: Demand for goods
  • P_m [vector]: Price of imports per sector
  • P_l: Price inflation of exports <- ??
source
BeforeIT.WorkersType

This is a Workers. Each field is an array which stores the values for all the workers in the economy. Note that the O_h field is an integer, while the rest are floats.

For all fields the entry at index i corresponds to the ith worker.

Fields

  • Y_h: Net disposable income of worker owner (investor)
  • D_h: Deposits
  • K_h: Capital stock
  • w_h: Wages (0 if inactive or unemployed)
  • O_h: Occupation (0 if unemployed, -1 if inactive)
  • C_d_h: Consumption budget
  • I_d_h: Investment budget
  • C_h: Realised consumption
  • I_h: Realised investment
source

Initialisation function

BeforeIT.init_modelFunction
init_model(parameters, initial_conditions, T, typeInt = Int64, typeFloat = Float64)

Initializes the model with given parameters and initial conditions.

Parameters:

  • parameters: A dictionary containing the model parameters.
  • initial_conditions: A dictionary containing the initial conditions.
  • T (integer): The time horizon of the model.
  • typeInt: (optional, default: Int64): The data type to be used for integer values.
  • typeFloat: (optional, default: Float64): The data type to be used for floating-point values.

Returns:

  • model::Model: The initialized model.
source
BeforeIT.update_variables_with_totals!Method
update_variables_with_totals!(model::Model)

Update the variables in the given model with some global quantities obtained from all agents. This is the last step in the initialization process and it must be performed after all agents have been initialized.

Arguments

  • model::Model: The model object to update.

Returns

  • Nothing
source

Functions to run an entire simulation

CommonSolve.step!Method
step!(model; multi_threading = false)

This function simulates a single epoch the economic model, updating various components of the model based the interactions between different economic agents. It accepts a model object, which encapsulates the state for the simulation, and an optional boolean parameter multi_threading to enable or disable multi-threading.

Key operations performed include:

  • Financial adjustments for firms and banks, including insolvency checks and profit calculations.
  • Economic expectations and adjustments, such as growth, inflation, and central bank rates.
  • Labor and credit market operations, including wage updates and loan processing.
  • Household economic activities, including consumption and investment budgeting.
  • Government and international trade financial activities, including budgeting and trade balances.
  • General market matching and accounting updates to reflect changes in economic indicators and positions.

The function updates the model in-place and does not return any value.

source
BeforeIT.ensemblerunMethod
ensemblerun(model, n_sims; shock = NoShock(), multi_threading = true)

A function that runs n_sims simulations in parallel with multiple threading and returns a vector of data objects of dimension n_sims.

Arguments

  • model: The model configuration used to simulate.
  • n_sims: The number of simulations to run in parallel.

Returns

  • data_vector: A vector containing the data objects collected during each simulation.
source
BeforeIT.run!Method
run!(model; shock = NoShock())

Run a single simulation based on the provided model. The simulation runs for a number of epochs specified by model.prop.T.

Arguments

  • model::Model: The model configuration used for the simulation.

Returns

  • data::Data: The data collected during the simulation.

Details

The function initializes the data using BeforeIT.init_data(model), then iteratively updates the model and data for each epoch using BeforeIT.step!(model) and BeforeIT.update_data!(data, model) respectively.

Example

```julia model = BeforeIT.initmodel(parameters, initialconditions, T) data = run!(model)

source

Firms actions

BeforeIT.firms_depositsMethod
firms_deposits(firms, model)

Calculate the new deposits of firms.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • DD_i: Vector of new deposits

The new deposits DD_i are calculated as follows:

DD_i = sales + labour_cost + material_cost + taxes_products + taxes_production + corporate_tax + dividend_payments + interest_payments + interest_received + investment_cost + new_credit + debt_installment

where:

  • sales = P_i * Q_i
  • labour_cost = (1 + tau_SIF) * w_i * N_i * P_bar_HH
  • material_cost = -DM_i * P_bar_i
  • taxes_products = -tau_Y_i * P_i * Y_i
  • taxes_production = -tau_K_i * P_i * Y_i
  • corporate_tax = -tau_FIRM * pos(Pi_i)
  • dividend_payments = -theta_DIV * (1 - tau_FIRM) * pos(Pi_i)
  • interest_payments = -r * (L_i + pos(-D_i))
  • interest_received = r_bar * pos(D_i)
  • investment_cost = -P_CF_i * I_i
  • new_credit = DL_i
  • debt_installment = -theta * L_i
source
BeforeIT.firms_equityMethod
firms_equity(firms, model)

Calculate the equity of firms.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • E_i: Vector of equity

The equity E_i is calculated as follows:

\[E_i = D_i + M_i * \sum(a_{sg}[:, G_i] * \bar{P}_g) + P_i * S_i + \bar{P}_{CF} * K_i - L_i\]

where:

  • D_i: Deposits
  • M_i: Intermediate goods
  • a_sg: Technology coefficient of the gth product in the sth industry
  • G_i: Vector of goods
  • P_bar_g: Producer price index for principal good g
  • P_i: Price
  • S_i: Stock
  • P_bar_CF: Capital price index
  • K_i: Capital stock
  • L_i: Loans
source
BeforeIT.firms_expectations_and_decisionsMethod
firms_expectations_and_decisions(firms, model)

Calculate the expectations and decisions of firms. That is: compute firm quantity, price, investment and intermediate-goods, employment decisions, expected profits, and desired/expected loans and capital.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • Q_s_i: Vector of desired quantities
  • I_d_i: Vector of desired investments
  • DM_d_i: Vector of desired intermediate goods
  • N_d_i: Vector of desired employment
  • Pi_e_i: Vector of expected profits
  • DL_d_i: Vector of desired new loans
  • K_e_i: Vector of expected capital
  • L_e_i: Vector of expected loans
  • P_i: Vector of prices
source
BeforeIT.firms_loansMethod
firms_loans(firms, model)

Calculate the new loans of firms.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • L_i: Vector of new loans

The new loans L_i are calculated as follows:

\[L_i = (1 - theta) * L_i + DL_i\]

where:

  • theta: Rate of repayment
  • L_i: Loans
  • DL_i: Acquired new loans
source
BeforeIT.firms_productionMethod
firms_production(firms)

Calculate the production of firms.

Arguments

  • firms: Firms object

Returns

  • Y_i: Vector of production

The production Y_i is computed using a Leontief technology.

source
BeforeIT.firms_profitsMethod
firms_profits(firms, model)

Calculate the profits of firms.

Arguments

  • firms: Firms object
  • model: Model object

Returns

  • Pi_i: Vector of profits

The profits Pi_i are calculated as follows:

Pi_i = in_sales + in_deposits - out_wages - out_expenses - out_depreciation - out_taxes_prods - out_taxes_capital - out_loans

where:

  • in_sales = P_i * Q_i + P_i * DS_i
  • in_deposits = r_bar * pos(D_i)
  • out_wages = (1 + tau_SIF) * w_i * N_i * P_bar_HH
  • out_expenses = 1 / beta_i * P_bar_i * Y_i
  • out_depreciation = delta_i / kappa_i * P_CF_i * Y_i
  • out_taxes_prods = tau_Y_i * P_i * Y_i
  • out_taxes_capital = tau_K_i * P_i * Y_i
  • out_loans = r * (L_i + pos(-D_i))
source
BeforeIT.firms_stocksMethod
firms_stocks(firms)

Calculate the stocks of firms.

Arguments

  • firms: Firms object

Returns

  • K_i: Vector of capital stock
  • M_i: Vector of intermediate goods
  • DS_i: Vector of differneces in stock of final goods
  • S_i: Vector of stock of final goods

The stocks are calculated as follows:

K_i = K_i - delta_i / kappa_i * Y_i + I_i
 M_i = M_i - Y_i / beta_i + DM_i
 DS_i = Y_i - Q_i
-S_i = S_i + DS_i
source
BeforeIT.firms_wagesMethod
firms_wages(firms)

Calculate the wages set by firms.

Arguments

  • firms: Firms object

Returns

  • w_i: Vector of wages
source
BeforeIT.init_firmsMethod
init_firms(parameters, initial_conditions; typeInt = Int64, typeFloat = Float64)

Initialize firms with given parameters and initial conditions.

Arguments

  • parameters: The parameters for initializing the firms.
  • initial_conditions: The initial conditions for the firms.
  • typeInt: (optional) The integer type to be used. Default is Int64.
  • typeFloat: (optional) The floating-point type to be used. Default is Float64.

Returns

  • firms::Firms: The initialized firms.
  • firms_args::Tuple: The arguments used to initialize the firms.
source
BeforeIT.leontief_productionMethod
leontief_production(Q_s_i, N_i, alpha_i, K_i, kappa_i, M_i, beta_i)

Calculate the production function of firms.

Arguments

  • Q_s_i: Vector of desired quantities
  • N_i: Vector of employment
  • alpha_i: Vector of labour productivity
  • K_i: Vector of capital stock
  • kappa_i: Vector of capital productivity
  • M_i: Vector of intermediate goods
  • beta_i: Vector of intermediate goods productivity

Returns

  • Y_i: Vector of production

The Leontief production function Y_i is calculated as follows:

\[Y_i = \min(Q_s_i, \min(N_i \cdot \alpha_i, \min(K_i \cdot \kappa_i, M_i \cdot \beta_i)))\]

source

Households actions

Government actions

BeforeIT.gov_expenditureMethod
gov_expenditure(gov::AbstractGovernment, model)

Computes government expenditure on consumption and transfers to households.

Arguments

  • gov: government object
  • model: model object

Returns

  • C_G: government consumption
  • C_d_j: local government consumptions
source
BeforeIT.gov_loansMethod
gov_loans(gov::AbstractGovernment, model, Y_G)

Computes government new government debt.

Arguments

  • gov::AbstractGovernment: government object
  • model: model object

Returns

  • L_G: new government debt
source
BeforeIT.gov_revenuesMethod
gov_revenues(model)

Computes government revenues from taxes and social security contributions. The government collects taxes on labour income, capital income, value added, and corporate income. It also collects social security contributions from workers and firms. The government also collects taxes on consumption and capital formation. Finally, the government collects taxes on exports and imports.

Arguments

  • model: model object

Returns

  • Y_G: government revenues
source
BeforeIT.gov_social_benefitsMethod
gov_social_benefits(gov::AbstractGovernment, model)

Computes social benefits paid by the government households.

Arguments

  • gov: government object
  • model: model object

Returns

  • sb_other: social benefits for other households
  • sb_inact: social benefits for inactive households
source
BeforeIT.init_governmentMethod
init_government(parameters, initial_conditions; typeInt = Int64, typeFloat = Float64)

Initialize the government agent.

Arguments

  • parameters: The parameters.
  • initial_conditions: The initial conditions.
  • typeInt: The integer type to be used (default: Int64).
  • typeFloat: The floating-point type to be used (default: Float64).

Returns

  • The initialized government model.
  • The arguments used to initialize the government model.
source

Bank and Central Bank actions

BeforeIT._bank_depositsMethod
_deposit_bank(waD_h, wiD_h, fD_h, bD_h, fD_i, bE_k, fL_i)

Helper function to calculate the new deposits of a bank.

Arguments

  • waD_h: Array of deposits from active workers
  • wiD_h: Array of deposits from inactive workers
  • fD_h: Array of deposits from firms
  • bD_h: Deposits from the bank owner
  • fD_i: Array of deposits from firms
  • bE_k: Bank equity
  • fL_i: Array of loans to firms

Returns

  • D_k: New deposits of the bank

The new deposits D_k are calculated as the sum of the deposits of the active workers, the inactive workers, the firms, and the bank owner itself, plus the bank's equity, minus the loans of the firms.

source
BeforeIT._bank_profitsMethod
_bank_profits(L_i, D_i, D_h, D_k, r_bar, r)

Helper function to calculate the total profits of a bank.

Arguments

  • L_i: Array of loans provided by the bank
  • D_i: Array of deposits from firms
  • D_h: Array of deposits from households
  • D_k: Residual and balancing item on the bank’s balance sheet
  • r_bar: Base interest rate
  • r: Interest rate set by the bank

Returns

  • Pi_k: Total profits of the bank

The total profits Pi_k are calculated as follows:

\[\Pi_k = r \cdot \sum_i(L_i + \max(0, -D_i)) + r \cdot \sum_h(\max(0, -D_h)) + r_{bar} +S_i = S_i + DS_i

source
BeforeIT.firms_wagesMethod
firms_wages(firms)

Calculate the wages set by firms.

Arguments

  • firms: Firms object

Returns

  • w_i: Vector of wages
source
BeforeIT.init_firmsMethod
init_firms(parameters, initial_conditions; typeInt = Int64, typeFloat = Float64)

Initialize firms with given parameters and initial conditions.

Arguments

  • parameters: The parameters for initializing the firms.
  • initial_conditions: The initial conditions for the firms.
  • typeInt: (optional) The integer type to be used. Default is Int64.
  • typeFloat: (optional) The floating-point type to be used. Default is Float64.

Returns

  • firms::Firms: The initialized firms.
  • firms_args::Tuple: The arguments used to initialize the firms.
source
BeforeIT.leontief_productionMethod
leontief_production(Q_s_i, N_i, alpha_i, K_i, kappa_i, M_i, beta_i)

Calculate the production function of firms.

Arguments

  • Q_s_i: Vector of desired quantities
  • N_i: Vector of employment
  • alpha_i: Vector of labour productivity
  • K_i: Vector of capital stock
  • kappa_i: Vector of capital productivity
  • M_i: Vector of intermediate goods
  • beta_i: Vector of intermediate goods productivity

Returns

  • Y_i: Vector of production

The Leontief production function Y_i is calculated as follows:

\[Y_i = \min(Q_s_i, \min(N_i \cdot \alpha_i, \min(K_i \cdot \kappa_i, M_i \cdot \beta_i)))\]

source

Households actions

Government actions

BeforeIT.gov_expenditureMethod
gov_expenditure(gov::AbstractGovernment, model)

Computes government expenditure on consumption and transfers to households.

Arguments

  • gov: government object
  • model: model object

Returns

  • C_G: government consumption
  • C_d_j: local government consumptions
source
BeforeIT.gov_loansMethod
gov_loans(gov::AbstractGovernment, model, Y_G)

Computes government new government debt.

Arguments

  • gov::AbstractGovernment: government object
  • model: model object

Returns

  • L_G: new government debt
source
BeforeIT.gov_revenuesMethod
gov_revenues(model)

Computes government revenues from taxes and social security contributions. The government collects taxes on labour income, capital income, value added, and corporate income. It also collects social security contributions from workers and firms. The government also collects taxes on consumption and capital formation. Finally, the government collects taxes on exports and imports.

Arguments

  • model: model object

Returns

  • Y_G: government revenues
source
BeforeIT.gov_social_benefitsMethod
gov_social_benefits(gov::AbstractGovernment, model)

Computes social benefits paid by the government households.

Arguments

  • gov: government object
  • model: model object

Returns

  • sb_other: social benefits for other households
  • sb_inact: social benefits for inactive households
source
BeforeIT.init_governmentMethod
init_government(parameters, initial_conditions; typeInt = Int64, typeFloat = Float64)

Initialize the government agent.

Arguments

  • parameters: The parameters.
  • initial_conditions: The initial conditions.
  • typeInt: The integer type to be used (default: Int64).
  • typeFloat: The floating-point type to be used (default: Float64).

Returns

  • The initialized government model.
  • The arguments used to initialize the government model.
source

Bank and Central Bank actions

BeforeIT._bank_depositsMethod
_deposit_bank(waD_h, wiD_h, fD_h, bD_h, fD_i, bE_k, fL_i)

Helper function to calculate the new deposits of a bank.

Arguments

  • waD_h: Array of deposits from active workers
  • wiD_h: Array of deposits from inactive workers
  • fD_h: Array of deposits from firms
  • bD_h: Deposits from the bank owner
  • fD_i: Array of deposits from firms
  • bE_k: Bank equity
  • fL_i: Array of loans to firms

Returns

  • D_k: New deposits of the bank

The new deposits D_k are calculated as the sum of the deposits of the active workers, the inactive workers, the firms, and the bank owner itself, plus the bank's equity, minus the loans of the firms.

source
BeforeIT._bank_profitsMethod
_bank_profits(L_i, D_i, D_h, D_k, r_bar, r)

Helper function to calculate the total profits of a bank.

Arguments

  • L_i: Array of loans provided by the bank
  • D_i: Array of deposits from firms
  • D_h: Array of deposits from households
  • D_k: Residual and balancing item on the bank’s balance sheet
  • r_bar: Base interest rate
  • r: Interest rate set by the bank

Returns

  • Pi_k: Total profits of the bank

The total profits Pi_k are calculated as follows:

\[\Pi_k = r \cdot \sum_i(L_i + \max(0, -D_i)) + r \cdot \sum_h(\max(0, -D_h)) + r_{bar} \cdot \max(0, D_k) - r_{bar} \cdot \sum_i(\max(0, D_i)) - r_{bar} \cdot -\sum_h(\max(0, D_h)) - r_{bar} \cdot \max(0, -D_k)\]

source
BeforeIT._central_bank_profitsMethod
_central_bank_profits(r_bar, D_k, L_G, r_G)

Helper function to calculate the profits of a central bank.

Arguments

  • r_bar: The base interest rate
  • D_k: Deposits from commercial banks
  • L_G: Loans provided to the government
  • r_G: Interest rate on government loans

Returns

  • Pi_CB: Profits of the central bank

The profits Pi_CB are calculated as follows:

\[\{Pi}_{CB} = r_{G} \cdot L_{G} - r_{bar} \cdot D_{k}\]

source
BeforeIT.bank_depositsMethod
deposits_bank(bank, w_act, w_inact, firms)

Calculate the new deposits of a bank.

Arguments

  • bank: The Bank object containing the bank of the model
  • w_act: The Workers object containing the active workers of the model
  • w_inact: The Workers object containing the inactive workers of the model
  • firms: The Firms object containing the firms of the model

Returns

  • D_k: New deposits of the bank

The new deposits D_k are calculated as the sum of the deposits of the active workers, the inactive workers, the firms, and the bank owner itself, plus the bank's equity, minus the loans of the firms.

source
BeforeIT.bank_equityMethod
bank_equity(bank, model)

Calculate the net profits of a bank.

Arguments

  • bank: The bank object.
  • model: The model object.

Returns

  • E_k: The updated equity of the bank.

The net profits DE_k are calculated as:

\[DE_k = \Pi_k - \theta_{DIV} \cdot (1 - \tau_{FIRM}) \cdot \max(0, \Pi_k) - \tau_{FIRM} \cdot \max(0, \Pi_k)\]

and the equity E_k is updated as:

\[E_k = E_k + DE_k\]

source
BeforeIT.bank_expected_profitsMethod
bank_expected_profits(Pi_k, pi_e, gamma_e)

Calculate the expected profits of a bank.

Arguments

  • Pi_k: Past profits of the bank
  • pi_e: Expected inflation rate
  • gamma_e: Expected growth rate

Returns

  • E_Pi_k: Expected profits of the bank

The expected profits E_Pi_k are calculated as follows:

\[E_{\Pi_k} = \Pi_k \cdot (1 + \pi_e) \cdot (1 + \gamma_e)\]

source
BeforeIT.bank_profitsMethod
bank_profits(bank, model)

Calculate the total profits of a bank.

Arguments

  • bank: The bank object.
  • model: The model object.

Returns

  • Pi_k: The total profits of the bank.

The total profits Pi_k are calculated as:

\[\Pi_k = r \cdot \sum_i(L_i + \max(0, -D_i)) + r \cdot \sum_h(\max(0, -D_h)) + r_{bar} +\sum_h(\max(0, D_h)) - r_{bar} \cdot \max(0, -D_k)\]

source
BeforeIT._central_bank_profitsMethod
_central_bank_profits(r_bar, D_k, L_G, r_G)

Helper function to calculate the profits of a central bank.

Arguments

  • r_bar: The base interest rate
  • D_k: Deposits from commercial banks
  • L_G: Loans provided to the government
  • r_G: Interest rate on government loans

Returns

  • Pi_CB: Profits of the central bank

The profits Pi_CB are calculated as follows:

\[\{Pi}_{CB} = r_{G} \cdot L_{G} - r_{bar} \cdot D_{k}\]

source
BeforeIT.bank_depositsMethod
deposits_bank(bank, w_act, w_inact, firms)

Calculate the new deposits of a bank.

Arguments

  • bank: The Bank object containing the bank of the model
  • w_act: The Workers object containing the active workers of the model
  • w_inact: The Workers object containing the inactive workers of the model
  • firms: The Firms object containing the firms of the model

Returns

  • D_k: New deposits of the bank

The new deposits D_k are calculated as the sum of the deposits of the active workers, the inactive workers, the firms, and the bank owner itself, plus the bank's equity, minus the loans of the firms.

source
BeforeIT.bank_equityMethod
bank_equity(bank, model)

Calculate the net profits of a bank.

Arguments

  • bank: The bank object.
  • model: The model object.

Returns

  • E_k: The updated equity of the bank.

The net profits DE_k are calculated as:

\[DE_k = \Pi_k - \theta_{DIV} \cdot (1 - \tau_{FIRM}) \cdot \max(0, \Pi_k) - \tau_{FIRM} \cdot \max(0, \Pi_k)\]

and the equity E_k is updated as:

\[E_k = E_k + DE_k\]

source
BeforeIT.bank_expected_profitsMethod
bank_expected_profits(Pi_k, pi_e, gamma_e)

Calculate the expected profits of a bank.

Arguments

  • Pi_k: Past profits of the bank
  • pi_e: Expected inflation rate
  • gamma_e: Expected growth rate

Returns

  • E_Pi_k: Expected profits of the bank

The expected profits E_Pi_k are calculated as follows:

\[E_{\Pi_k} = \Pi_k \cdot (1 + \pi_e) \cdot (1 + \gamma_e)\]

source
BeforeIT.bank_profitsMethod
bank_profits(bank, model)

Calculate the total profits of a bank.

Arguments

  • bank: The bank object.
  • model: The model object.

Returns

  • Pi_k: The total profits of the bank.

The total profits Pi_k are calculated as:

\[\Pi_k = r \cdot \sum_i(L_i + \max(0, -D_i)) + r \cdot \sum_h(\max(0, -D_h)) + r_{bar} \cdot \max(0, D_k) - r_{bar} \cdot \sum_i(\max(0, D_i)) - r_{bar} \cdot -\sum_h(\max(0, D_h)) - r_{bar} \cdot \max(0, -D_k)\]

source
BeforeIT.bank_rateMethod
bank_rate(bank, model)

Update the interest rate set by the bank.

Arguments

  • bank: The bank whose interest rate is to be updated
  • model: Model object

Returns

  • r: The updated interest rate

\[r = \bar{r} + \mu\]

source
BeforeIT.central_bank_equityMethod
central_bank_equity(cb, model)

Calculate the equity of the central bank.

Arguments

  • cb: The central bank
  • model: The model object

Returns

  • E_CB: The equity of the central bank

The equity E_CB is calculated as follows:

\[E_{CB} = E_{CB} + \Pi_{CB}\]

where \Pi_{CB} are the profits of the central bank.

source
BeforeIT.central_bank_rateMethod
central_bank_rate(cb, model)

Update the base interest rate set by the central bank according to the Taylor rule.

Arguments

  • cb: The central bank whose base interest rate is to be updated
  • model: The model object

Returns

  • r_bar: The updated base interest rate
source
BeforeIT.finance_insolvent_firms!Method
finance_insolvent_firms!(firms, bank, P_bar_CF, zeta_b,  insolvent)

Rifinance insolvent firms using bank equity.

Arguments

  • firms: The Firms object containing the firms of the model
  • bank: The Bank object containing the bank of the model
  • P_bar_CF: Capital price index
  • zeta_b: Parameter of loan-to-capital ratio for new firms after bankruptcy

Returns

  • This function does not return a value. It modifies the banks and firms collections in-place.
source
BeforeIT.taylor_ruleMethod
taylor_rule(rho, r_bar, r_star, pi_star, xi_pi, xi_gamma, gamma_EA, pi_EA)

Calculate the interest rate according to the Taylor rule.

Arguments

  • rho: Parameter for gradual adjustment of the policy rate.
  • r_bar: Nominal interest rate.
  • r_star: Real equilibrium interest rate.
  • pi_star: The target inflation rate.
  • xi_pi: Weight the CB puts on inflation targeting.
  • xi_gamma: Weight placed on economic growth.
  • gamma_EA: The output growth rate.
  • pi_EA: The inflation rate.

Returns

  • rate: The calculated interest rate.

The Taylor rule is given by the following equation:

\[r_t = ρ * r_{t-1} + (1 - ρ) * (r^* + π^* + ξ_π * (π_t - π^*) + ξ_γ * γ_t)```\]

source

Rest Of The World actions

BeforeIT.rotw_depositsMethod
rotw_deposits(rotw, tau_EXPORT)

Calculate the deposits of the rest of the world.

Arguments

  • rotw: The rest of the world object.
  • tau_EXPORT: The export tax.

Returns

  • D_RoW: The deposits of the rest of the world.

The deposits D_RoW are calculated as follows:

\[D_{RoW} = D_{RoW} + \left( \sum_{m} P_m \cdot Q_m \right) - (1 + \tau_{EXPORT}) \cdot C_l\]

source
BeforeIT.rotw_import_exportMethod
rotw_import_export(rotw, model, pi_e, epsilon_E, epsilon_I)

Calculate the demand for exports and supply of imports of the rest of the world.

Arguments

  • rotw: The rest of the world object.
  • model: The model object.

Returns

  • C_E: Total demand for exports.
  • Y_I: Supply of imports (in real terms).
  • C_d_l: TDemand for exports of specific product.
  • Y_m: Supply of imports per sector.
  • P_m: Price of imports per sector.
source

Markets

BeforeIT.search_and_matching_creditMethod
search_and_matching_credit(firms::Firms, model)

This function calculates the credit allocation for each firm in the given firms object.

Parameters:

  • firms::Firms: The firms object.
  • model: The model object.

Returns:

  • DL_i: An array of credit allocations for each firm.
source
BeforeIT.search_and_matching_labourMethod
search_and_matching_labour(firms::Firms, model)

This function implements a labor search and matching algorithm. It takes in a Firms object and a Model object as input. The Firms object contains information about the number of desired employees (N_d_i) and the current number of employees (N_i) for each firm. The model object contains information about the current employment status (O_h) of each worker.

The function performs the following steps:

  • Calculates the vacancies (V_i) for each firm as the difference between desired and current employees.
  • Identifies employed workers and shuffles them randomly.
  • Fires workers from firms with negative vacancies to adjust the workforce.
  • Identifies unemployed workers and firms with positive vacancies.
  • Randomly matches unemployed workers to firms with vacancies until all vacancies are filled or there are no more unemployed workers.

The function returns:

  • N_i: An updated array of the number of employed workers for each firm.
  • O_h: An updated array where each element represents the firm a worker is employed with (0 if unemployed).
source
BeforeIT.search_and_matching!Function
search_and_matching!(model, multi_threading::Bool = false)

This function performs a search and matching algorithm for firms and for retail markets. It takes in a model object and an optional boolean argument for multi-threading. The function loops over all goods and performs the firms market and retail market operations for each good. Finally, it updates the aggregate variables based on the results of markets.

Args:

  • model: The model object
  • multi_threading: A boolean indicating whether to use multi-threading for the algorithm. Default is false.

This function updates the model in-place and does not return any value.

source
+\sum_h(\max(0, D_h)) - r_{bar} \cdot \max(0, -D_k)\]

source
BeforeIT.bank_rateMethod
bank_rate(bank, model)

Update the interest rate set by the bank.

Arguments

  • bank: The bank whose interest rate is to be updated
  • model: Model object

Returns

  • r: The updated interest rate

\[r = \bar{r} + \mu\]

source
BeforeIT.central_bank_equityMethod
central_bank_equity(cb, model)

Calculate the equity of the central bank.

Arguments

  • cb: The central bank
  • model: The model object

Returns

  • E_CB: The equity of the central bank

The equity E_CB is calculated as follows:

\[E_{CB} = E_{CB} + \Pi_{CB}\]

where \Pi_{CB} are the profits of the central bank.

source
BeforeIT.central_bank_rateMethod
central_bank_rate(cb, model)

Update the base interest rate set by the central bank according to the Taylor rule.

Arguments

  • cb: The central bank whose base interest rate is to be updated
  • model: The model object

Returns

  • r_bar: The updated base interest rate
source
BeforeIT.finance_insolvent_firms!Method
finance_insolvent_firms!(firms, bank, P_bar_CF, zeta_b,  insolvent)

Rifinance insolvent firms using bank equity.

Arguments

  • firms: The Firms object containing the firms of the model
  • bank: The Bank object containing the bank of the model
  • P_bar_CF: Capital price index
  • zeta_b: Parameter of loan-to-capital ratio for new firms after bankruptcy

Returns

  • This function does not return a value. It modifies the banks and firms collections in-place.
source
BeforeIT.taylor_ruleMethod
taylor_rule(rho, r_bar, r_star, pi_star, xi_pi, xi_gamma, gamma_EA, pi_EA)

Calculate the interest rate according to the Taylor rule.

Arguments

  • rho: Parameter for gradual adjustment of the policy rate.
  • r_bar: Nominal interest rate.
  • r_star: Real equilibrium interest rate.
  • pi_star: The target inflation rate.
  • xi_pi: Weight the CB puts on inflation targeting.
  • xi_gamma: Weight placed on economic growth.
  • gamma_EA: The output growth rate.
  • pi_EA: The inflation rate.

Returns

  • rate: The calculated interest rate.

The Taylor rule is given by the following equation:

\[r_t = ρ * r_{t-1} + (1 - ρ) * (r^* + π^* + ξ_π * (π_t - π^*) + ξ_γ * γ_t)```\]

source

Rest Of The World actions

BeforeIT.rotw_depositsMethod
rotw_deposits(rotw, tau_EXPORT)

Calculate the deposits of the rest of the world.

Arguments

  • rotw: The rest of the world object.
  • tau_EXPORT: The export tax.

Returns

  • D_RoW: The deposits of the rest of the world.

The deposits D_RoW are calculated as follows:

\[D_{RoW} = D_{RoW} + \left( \sum_{m} P_m \cdot Q_m \right) - (1 + \tau_{EXPORT}) \cdot C_l\]

source
BeforeIT.rotw_import_exportMethod
rotw_import_export(rotw, model, pi_e, epsilon_E, epsilon_I)

Calculate the demand for exports and supply of imports of the rest of the world.

Arguments

  • rotw: The rest of the world object.
  • model: The model object.

Returns

  • C_E: Total demand for exports.
  • Y_I: Supply of imports (in real terms).
  • C_d_l: TDemand for exports of specific product.
  • Y_m: Supply of imports per sector.
  • P_m: Price of imports per sector.
source

Markets

BeforeIT.search_and_matching_creditMethod
search_and_matching_credit(firms::Firms, model)

This function calculates the credit allocation for each firm in the given firms object.

Parameters:

  • firms::Firms: The firms object.
  • model: The model object.

Returns:

  • DL_i: An array of credit allocations for each firm.
source
BeforeIT.search_and_matching_labourMethod
search_and_matching_labour(firms::Firms, model)

This function implements a labor search and matching algorithm. It takes in a Firms object and a Model object as input. The Firms object contains information about the number of desired employees (N_d_i) and the current number of employees (N_i) for each firm. The model object contains information about the current employment status (O_h) of each worker.

The function performs the following steps:

  • Calculates the vacancies (V_i) for each firm as the difference between desired and current employees.
  • Identifies employed workers and shuffles them randomly.
  • Fires workers from firms with negative vacancies to adjust the workforce.
  • Identifies unemployed workers and firms with positive vacancies.
  • Randomly matches unemployed workers to firms with vacancies until all vacancies are filled or there are no more unemployed workers.

The function returns:

  • N_i: An updated array of the number of employed workers for each firm.
  • O_h: An updated array where each element represents the firm a worker is employed with (0 if unemployed).
source
BeforeIT.perform_firms_market!Method

Perform the firms market exchange process

source
BeforeIT.perform_retail_market!Method

Perform the retail market exchange process

source
BeforeIT.search_and_matching!Function
search_and_matching!(model, multi_threading::Bool = false)

This function performs a search and matching algorithm for firms and for retail markets. It takes in a model object and an optional boolean argument for multi-threading. The function loops over all goods and performs the firms market and retail market operations for each good. Finally, it updates the aggregate variables based on the results of markets.

Args:

  • model: The model object
  • multi_threading: A boolean indicating whether to use multi-threading for the algorithm. Default is false.

This function updates the model in-place and does not return any value.

source
diff --git a/dev/examples/basic_example-1141b5a5.svg b/dev/examples/basic_example-1141b5a5.svg new file mode 100644 index 0000000..a7b148a --- /dev/null +++ b/dev/examples/basic_example-1141b5a5.svg @@ -0,0 +1,277 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/basic_example-3a57c939.svg b/dev/examples/basic_example-3a57c939.svg deleted file mode 100644 index 6c94bfe..0000000 --- a/dev/examples/basic_example-3a57c939.svg +++ /dev/null @@ -1,296 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/examples/basic_example-47f987e4.svg b/dev/examples/basic_example-47f987e4.svg new file mode 100644 index 0000000..45c0014 --- /dev/null +++ b/dev/examples/basic_example-47f987e4.svg @@ -0,0 +1,280 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/basic_example-83292a87.svg b/dev/examples/basic_example-83292a87.svg deleted file mode 100644 index 66d0da5..0000000 --- a/dev/examples/basic_example-83292a87.svg +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/examples/basic_example-87e3d9ac.svg b/dev/examples/basic_example-87e3d9ac.svg new file mode 100644 index 0000000..b320411 --- /dev/null +++ b/dev/examples/basic_example-87e3d9ac.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/basic_example-9fa64baf.svg b/dev/examples/basic_example-9fa64baf.svg deleted file mode 100644 index 898dd50..0000000 --- a/dev/examples/basic_example-9fa64baf.svg +++ /dev/null @@ -1,275 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/examples/basic_example.html b/dev/examples/basic_example.html index 7d9b9ba..bfd73bb 100644 --- a/dev/examples/basic_example.html +++ b/dev/examples/basic_example.html @@ -22,10 +22,10 @@ "Y_EA" => 2.35485e6 "D_I" => 54049.0 ⋮ => ⋮

We can now initialise the model, by specifying in advance the maximum number of epochs.

T = 16
-model = Bit.init_model(parameters, initial_conditions, T)
Model(Workers{Vector{Float64}, Vector{Int64}}([0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249  …  4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569], [3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487  …  22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958], [6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249  …  42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983  …  11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522], [1, 2, 2, 3, 3, 4, 5, 5, 5, 5  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Workers{Vector{Float64}, Vector{Int64}}([2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714  …  2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714], [13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984  …  13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984], [25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977  …  25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1  …  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Firms{Vector{Float64}, Vector{Int64}}([1, 1, 1, 1, 1, 1, 1, 1, 1, 1  …  62, 62, 62, 62, 62, 62, 62, 62, 62, 62], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951], [1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485  …  3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877], [0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754  …  0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983  …  2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687], [0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721  …  0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782], [0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832  …  0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318], [-0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635  …  0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037], [1, 2, 2, 1, 6, 11, 1, 1, 1, 1  …  1, 2, 1, 7, 1, 1, 8, 2, 3, 3], [10.822026659306621, 21.644053318613242, 21.644053318613242, 10.822026659306621, 64.93215995583972, 119.04229325237283, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  11.988103388298951, 23.976206776597902, 11.988103388298951, 83.91672371809265, 11.988103388298951, 11.988103388298951, 95.90482710639161, 23.976206776597902, 35.96431016489685, 35.96431016489685], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [10.822026659306621, 21.644053318613242, 21.644053318613242, 10.822026659306621, 64.93215995583972, 119.04229325237283, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  11.988103388298951, 23.976206776597902, 11.988103388298951, 83.91672371809265, 11.988103388298951, 11.988103388298951, 95.90482710639161, 23.976206776597902, 35.96431016489685, 35.96431016489685], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0  …  1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [298.15365853658534, 596.3073170731707, 596.3073170731707, 298.15365853658534, 1788.921951219512, 3279.690243902439, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534  …  79.20833333333334, 158.41666666666669, 79.20833333333334, 554.4583333333334, 79.20833333333334, 79.20833333333334, 633.6666666666667, 158.41666666666669, 237.625, 237.625], [7.65511425407355, 15.3102285081471, 15.3102285081471, 7.65511425407355, 45.930685524441294, 84.20625679480905, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355  …  4.057486672347064, 8.114973344694128, 4.057486672347064, 28.402406706429453, 4.057486672347064, 4.057486672347064, 32.45989337877651, 8.114973344694128, 12.172460017041193, 12.172460017041193], [94.08074124608001, 188.16148249216002, 188.16148249216002, 94.08074124608001, 564.48444747648, 1034.88815370688, 94.08074124608001, 94.08074124608001, 94.08074124608001, 94.08074124608001  …  24.99375238071138, 49.98750476142276, 24.99375238071138, 174.95626666497967, 24.99375238071138, 24.99375238071138, 199.95001904569105, 49.98750476142276, 74.98125714213413, 74.98125714213413], [0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726  …  0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956], [12.384292053067009, 24.768584106134018, 24.768584106134018, 12.384292053067009, 74.30575231840204, 136.2272125837371, 12.384292053067009, 12.384292053067009, 12.384292053067009, 12.384292053067009  …  13.5301114965952, 27.0602229931904, 13.5301114965952, 94.71078047616639, 13.5301114965952, 13.5301114965952, 108.2408919727616, 27.0602229931904, 40.5903344897856, 40.5903344897856], [1.254845467476436, 2.509690934952872, 2.509690934952872, 1.254845467476436, 7.529072804858617, 13.8033001422408, 1.254845467476436, 1.254845467476436, 1.254845467476436, 1.254845467476436  …  3.5771064837982873, 7.154212967596575, 3.5771064837982873, 25.039745386588006, 3.5771064837982873, 3.5771064837982873, 28.6168518703863, 7.154212967596575, 10.731319451394864, 10.731319451394864], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.3061857958470842, 2.0220856873365385, 2.0220856873365385, 1.3061857958470842, 4.885685253294356, 8.465184710741628, 1.3061857958470842, 1.3061857958470842, 1.3061857958470842, 1.3061857958470842  …  2.631055234104207, 4.671824563850785, 2.631055234104207, 14.875671212583667, 2.631055234104207, 2.631055234104207, 16.916440542330246, 4.671824563850785, 6.712593893597363, 6.712593893597363], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [11.889212387273576, 18.405502707537227, 18.405502707537227, 11.889212387273576, 44.47066398859183, 77.0521155899101, 11.889212387273576, 11.889212387273576, 11.889212387273576, 11.889212387273576  …  23.948487711601803, 42.52405335619368, 23.948487711601803, 135.40188157915304, 23.948487711601803, 23.948487711601803, 153.97744722374492, 42.52405335619368, 61.09961900078557, 61.09961900078557], [6.44766966354178, 9.981535999529552, 9.981535999529552, 6.44766966354178, 24.117001343480638, 41.7863330234195, 6.44766966354178, 6.44766966354178, 6.44766966354178, 6.44766966354178  …  12.98756660038165, 23.06132987320929, 12.98756660038165, 73.43014623734747, 12.98756660038165, 12.98756660038165, 83.50390951017512, 23.06132987320929, 33.13509314603694, 33.13509314603694]), Bank{Float64}(89460.0, 6476.292527744362, 0.0, 126431.0, 0.028359903595743693, 3695.3696336675234, 0.0, 0.0, 0.0, 0.0, 33636.12938055409, 18241.29672694816), CentralBank{Float64}(0.0016459319014481277, 0.0089810924595537, 0.9259668580654086, -0.003424572940686137, 0.0049629315732038215, 0.30996974466133875, 1.328593153520194, 106179.90000000002), Government{Float64}(0.9905949533296431, 0.09373211872949586, 0.011235005057648862, 0.0, 14732.121510837034, 232610.9, 2.238468336136841, 0.5902859043576301, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, 0.0), RestOfTheWorld{Float64}(0.962809216044625, 0.39260026877953946, 0.020320381298662014, 0.9662360466537488, 0.35492769963078624, 0.02122821278168188, 2.3548476e6, 0.0, 0.0019383188997990075, 0.38456173629534834, 0.0026219533879005877, 0.0025327891562467505, 0.9635784504324201, 0.5360029623199525, 0.006618207536795881, 0.0, 33097.63671130043, 34095.03119997918, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0), Aggregates{Float64, Int64}([104531.39273728609, 105062.38754395355, 105399.12953350678, 106689.88106040593, 107938.33111423723, 108890.48532381697, 110110.17779727321, 110374.00540561741, 110808.89423399912, 111932.48072916963  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.007497362866886709, -0.007895434153021436, -0.0019938777296781562, -0.0035311300388783107, 0.001212170001002849, -0.001672412335241874, 0.001839696090252002, 0.004290005139261838, 0.00600429551344886, 0.0036060572293247772  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 1.0, [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0  …  1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1), MutableNamedTuple(tau_VAT = 0.1528683933530887, tau_EXPORT = 0.0029486201783457183, tau_SIW = 0.17114894621657745, psi_H = 0.07125099957246343, tau_FIRM = 0.07701197259426128, H_inact = 4130, theta_DIV = 0.7858074440019603, I_s = [48, 2, 1, 1, 5, 2, 4, 1, 1, 1  …  14, 10, 13, 41, 20, 16, 7, 7, 2, 19], psi = 0.9096681249468772, tau_INC = 0.21340742230566648, zeta_b = 0.5, tau_CF = 0.08761417854834112, H_act = 4743, zeta = 0.03, mu = 0.026713971694295565, tau_G = 0.009147800682711324, theta_UB = 0.3585824478060919, T_prime = 54, tau_SIF = 0.21215146534992413, T = 16, zeta_LTV = 0.6, I = 624, products = MutableNamedTuple(a_sg = [0.37790282216028437 0.0 … 0.0 0.0; 0.0006712800413285777 0.8149348034258406 … 2.4029219530949635e-5 0.00019143106686926454; … ; 0.00037430822580994426 0.000357977071568566 … 0.3197327950788158 0.0011366219595362582; 0.0 5.36965607352849e-5 … 0.0 0.05594572929254256], b_CF_g = [0.0033476048872100555, 0.0, 0.0, 0.0008050086095806136, 0.0, 0.003306696048303853, 0.0030629933432974495, 0.0, 0.0, 0.0  …  0.0017883064872300512, 0.0, 0.0, 0.0, 0.0, 0.002291709084994238, 0.0, 0.0, 0.0, 0.0], b_CFH_g = [0.0006092803753845975, 0.0, 0.0, 0.004372477702289994, 0.0, 0.0, 0.06710603871527036, 0.0, 0.0, 0.0  …  0.0041711096896454745, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], c_E_g = [0.005090338238241512, 0.0005933402816643566, 1.793599921320476e-5, 0.007268146142708006, 0.05434404438533037, 0.02138421321578873, 0.023894091259534518, 0.028037089231640524, 0.005923381894006229, 0.011927802553688313  …  0.0014618202435669027, 0.0009447261124040238, 0.0001280209174610526, 0.0010477673386531637, 0.0, 0.0013030104043795392, 5.5260305268213854e-5, 0.0, 1.307076865739618e-5, 8.641230390167474e-6], b_HH_g = [0.011287997598927976, 0.0020040637862256817, 0.0003326837475323491, 0.00034402684015257527, 0.06305103828047173, 0.03068200872784047, 0.0003505790613555631, 0.0020473225369636873, 0.0, 0.0191077565617325  …  0.005591228759882936, 0.0004356874830029748, 0.014434120586233577, 0.03514505772295519, 0.024907176866291014, 0.013342154173060372, 0.009686226103767459, 0.011051272187723254, 0.0021206651420422927, 0.01721782824162338], c_G_g = [0.0, 0.0, 0.0, 0.0, 8.57086390274792e-6, 0.0, 0.0, 0.0, 2.4536198623552867e-5, 0.0  …  0.008555738848801895, 0.3324338967920097, 0.22067672180252998, 0.2370889178393625, 0.0477595425645907, 0.012942508661614227, 0.004667927760053456, 0.021757222045203074, 0.0, 0.002000708524749294], c_I_g = [0.016810689305736877, 0.004087420487057966, 0.00036885674795364003, 0.05818437780960789, 0.04895082866561155, 0.04689140072807505, 0.010101572733480902, 0.016066325760592727, 0.00037371898454196314, 0.041008926225895866  …  0.0018123421762754539, 0.000401097116716159, 0.0003479865324437806, 0.0006664256271585853, 0.0028556289501379516, 0.001307065586721844, 6.418152296577174e-5, 0.0, 3.538212163497461e-5, 0.00020458795490837936]), J = 156, G = 62, H = 8873, L = 312, theta = 0.05, C = [4.3800671000101816e-5 0.00010629745355671226 9.959785873214212e-5; 0.00010629745355671226 0.0004129178961230129 0.0003596689472264872; 9.959785873214212e-5 0.0003596689472264872 0.0004506370179043619]))

Note that the it is very simple to inspect the model by typing

fieldnames(typeof(model))
(:w_act, :w_inact, :firms, :bank, :cb, :gov, :rotw, :agg, :prop)

and to inspect the specific attributes of one agent type by typing

fieldnames(typeof(model.bank))
(:E_k, :Pi_k, :Pi_e_k, :D_k, :r, :Y_h, :C_d_h, :I_d_h, :C_h, :I_h, :K_h, :D_h)

We can now define a data tracker, which will store the time series of the model.

data = Bit.init_data(model);

We can run now the model for a number of epochs and progressively update the data tracker.

for t in 1:T
-    Bit.run_one_epoch!(model; multi_threading = true)
+model = Bit.init_model(parameters, initial_conditions, T)
Model(Workers{Vector{Float64}, Vector{Int64}}([0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249  …  4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569], [3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487  …  22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958], [6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249  …  42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983  …  11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522], [1, 2, 3, 4, 5, 6, 7, 8, 9, 9  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Workers{Vector{Float64}, Vector{Int64}}([2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714  …  2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714], [13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984  …  13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984], [25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977  …  25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1  …  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Firms{Vector{Float64}, Vector{Int64}}([1, 1, 1, 1, 1, 1, 1, 1, 1, 1  …  62, 62, 62, 62, 62, 62, 62, 62, 62, 62], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951], [1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485  …  3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877], [0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754  …  0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983  …  2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687], [0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721  …  0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782], [0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832  …  0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318], [-0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635  …  0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037], [1, 1, 1, 1, 1, 1, 1, 1, 4, 1  …  8, 1, 1, 1, 1, 1, 1, 2, 1, 16], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 43.288106637226484, 10.822026659306621  …  95.90482710639161, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 23.976206776597902, 11.988103388298951, 191.80965421278322], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 43.288106637226484, 10.822026659306621  …  95.90482710639161, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 23.976206776597902, 11.988103388298951, 191.80965421278322], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0  …  1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 1192.6146341463414, 298.15365853658534  …  633.6666666666667, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 158.41666666666669, 79.20833333333334, 1267.3333333333335], [7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 30.6204570162942, 7.65511425407355  …  32.45989337877651, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 8.114973344694128, 4.057486672347064, 64.91978675755303], [94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 376.32296498432, 94.08074124608  …  199.95001904569102, 24.993752380711378, 24.993752380711378, 24.993752380711378, 24.993752380711378, 24.993752380711378, 24.993752380711378, 49.987504761422755, 24.993752380711378, 399.90003809138204], [0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726  …  0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956], [12.384292053067009, 12.384292053067009, 12.384292053067009, 12.384292053067009, 12.384292053067009, 12.384292053067009, 12.384292053067009, 12.384292053067009, 49.537168212268035, 12.384292053067009  …  108.2408919727616, 13.5301114965952, 13.5301114965952, 13.5301114965952, 13.5301114965952, 13.5301114965952, 13.5301114965952, 27.0602229931904, 13.5301114965952, 216.4817839455232], [1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 5.019381869905746, 1.2548454674764364  …  28.6168518703863, 3.5771064837982873, 3.5771064837982873, 3.5771064837982873, 3.5771064837982873, 3.5771064837982873, 3.5771064837982873, 7.154212967596575, 3.5771064837982873, 57.2337037407726], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 3.4538854703154476, 1.3061857958470844  …  16.916440542330246, 2.631055234104207, 2.631055234104207, 2.631055234104207, 2.631055234104207, 2.631055234104207, 2.631055234104207, 4.671824563850785, 2.631055234104207, 33.242595180302864], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 31.438083348064534, 11.889212387273577  …  153.97744722374492, 23.948487711601803, 23.948487711601803, 23.948487711601803, 23.948487711601803, 23.948487711601803, 23.948487711601803, 42.52405335619368, 23.948487711601803, 302.58197238047995], [6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 17.0492686715051, 6.447669663541781  …  83.50390951017512, 12.98756660038165, 12.98756660038165, 12.98756660038165, 12.98756660038165, 12.98756660038165, 12.98756660038165, 23.06132987320929, 12.98756660038165, 164.09401569279623]), Bank{Float64}(89460.0, 6476.29252774436, 0.0, 126431.00000000003, 0.028359903595743693, 3695.3696336675225, 0.0, 0.0, 0.0, 0.0, 33636.12938055408, 18241.296726948152), CentralBank{Float64}(0.0016459319014481277, 0.0089810924595537, 0.9259668580654086, -0.003424572940686137, 0.0049629315732038215, 0.30996974466133875, 1.328593153520194, 106179.90000000002), Government{Float64}(0.9905949533296431, 0.09373211872949586, 0.011235005057648862, 0.0, 14732.121510837034, 232610.9, 2.238468336136841, 0.5902859043576301, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, 0.0), RestOfTheWorld{Float64}(0.962809216044625, 0.39260026877953946, 0.020320381298662014, 0.9662360466537488, 0.35492769963078624, 0.02122821278168188, 2.3548476e6, 0.0, 0.0019383188997990075, 0.38456173629534834, 0.0026219533879005877, 0.0025327891562467505, 0.9635784504324201, 0.5360029623199525, 0.006618207536795881, 0.0, 33097.63671130043, 34095.03119997918, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0), Aggregates{Float64, Int64}([104531.39273728609, 105062.38754395355, 105399.12953350678, 106689.88106040593, 107938.33111423723, 108890.48532381697, 110110.17779727321, 110374.00540561741, 110808.89423399912, 111932.48072916963  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.007497362866886709, -0.007895434153021436, -0.0019938777296781562, -0.0035311300388783107, 0.001212170001002849, -0.001672412335241874, 0.001839696090252002, 0.004290005139261838, 0.00600429551344886, 0.0036060572293247772  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 1.0, [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0  …  1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1), MutableNamedTuple(tau_VAT = 0.1528683933530887, tau_EXPORT = 0.0029486201783457183, tau_SIW = 0.17114894621657745, psi_H = 0.07125099957246343, tau_FIRM = 0.07701197259426128, H_inact = 4130, theta_DIV = 0.7858074440019603, I_s = [48, 2, 1, 1, 5, 2, 4, 1, 1, 1  …  14, 10, 13, 41, 20, 16, 7, 7, 2, 19], psi = 0.9096681249468772, tau_INC = 0.21340742230566648, zeta_b = 0.5, tau_CF = 0.08761417854834112, H_act = 4743, zeta = 0.03, mu = 0.026713971694295565, tau_G = 0.009147800682711324, theta_UB = 0.3585824478060919, T_prime = 54, tau_SIF = 0.21215146534992413, T = 16, zeta_LTV = 0.6, I = 624, products = MutableNamedTuple(a_sg = [0.37790282216028437 0.0 … 0.0 0.0; 0.0006712800413285777 0.8149348034258406 … 2.4029219530949635e-5 0.00019143106686926454; … ; 0.00037430822580994426 0.000357977071568566 … 0.3197327950788158 0.0011366219595362582; 0.0 5.36965607352849e-5 … 0.0 0.05594572929254256], b_CF_g = [0.0033476048872100555, 0.0, 0.0, 0.0008050086095806136, 0.0, 0.003306696048303853, 0.0030629933432974495, 0.0, 0.0, 0.0  …  0.0017883064872300512, 0.0, 0.0, 0.0, 0.0, 0.002291709084994238, 0.0, 0.0, 0.0, 0.0], b_CFH_g = [0.0006092803753845975, 0.0, 0.0, 0.004372477702289994, 0.0, 0.0, 0.06710603871527036, 0.0, 0.0, 0.0  …  0.0041711096896454745, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], c_E_g = [0.005090338238241512, 0.0005933402816643566, 1.793599921320476e-5, 0.007268146142708006, 0.05434404438533037, 0.02138421321578873, 0.023894091259534518, 0.028037089231640524, 0.005923381894006229, 0.011927802553688313  …  0.0014618202435669027, 0.0009447261124040238, 0.0001280209174610526, 0.0010477673386531637, 0.0, 0.0013030104043795392, 5.5260305268213854e-5, 0.0, 1.307076865739618e-5, 8.641230390167474e-6], b_HH_g = [0.011287997598927976, 0.0020040637862256817, 0.0003326837475323491, 0.00034402684015257527, 0.06305103828047173, 0.03068200872784047, 0.0003505790613555631, 0.0020473225369636873, 0.0, 0.0191077565617325  …  0.005591228759882936, 0.0004356874830029748, 0.014434120586233577, 0.03514505772295519, 0.024907176866291014, 0.013342154173060372, 0.009686226103767459, 0.011051272187723254, 0.0021206651420422927, 0.01721782824162338], c_G_g = [0.0, 0.0, 0.0, 0.0, 8.57086390274792e-6, 0.0, 0.0, 0.0, 2.4536198623552867e-5, 0.0  …  0.008555738848801895, 0.3324338967920097, 0.22067672180252998, 0.2370889178393625, 0.0477595425645907, 0.012942508661614227, 0.004667927760053456, 0.021757222045203074, 0.0, 0.002000708524749294], c_I_g = [0.016810689305736877, 0.004087420487057966, 0.00036885674795364003, 0.05818437780960789, 0.04895082866561155, 0.04689140072807505, 0.010101572733480902, 0.016066325760592727, 0.00037371898454196314, 0.041008926225895866  …  0.0018123421762754539, 0.000401097116716159, 0.0003479865324437806, 0.0006664256271585853, 0.0028556289501379516, 0.001307065586721844, 6.418152296577174e-5, 0.0, 3.538212163497461e-5, 0.00020458795490837936]), J = 156, G = 62, H = 8873, L = 312, theta = 0.05, C = [4.3800671000101816e-5 0.00010629745355671226 9.959785873214212e-5; 0.00010629745355671226 0.0004129178961230129 0.0003596689472264872; 9.959785873214212e-5 0.0003596689472264872 0.0004506370179043619]))

Note that the it is very simple to inspect the model by typing

fieldnames(typeof(model))
(:w_act, :w_inact, :firms, :bank, :cb, :gov, :rotw, :agg, :prop)

and to inspect the specific attributes of one agent type by typing

fieldnames(typeof(model.bank))
(:E_k, :Pi_k, :Pi_e_k, :D_k, :r, :Y_h, :C_d_h, :I_d_h, :C_h, :I_h, :K_h, :D_h)

We can now define a data tracker, which will store the time series of the model.

data = Bit.init_data(model);

We can run now the model for a number of epochs and progressively update the data tracker.

for t in 1:T
+    Bit.step!(model; multi_threading = true)
     Bit.update_data!(data, model)
-end

Note that we can equivalently run the model for a number of epochs in the single command data = BeforeIT.run_one_sim!(model), but writing the loop explicitely is more instructive.

We can then plot any time series stored in the data tracker, for example

plot(data.real_gdp, title = "gdp", titlefont = 10)
Example block output

Or we can plot multiple time series at once using the function plot_data

ps = Bit.plot_data(data, quantities = [:real_gdp, :real_household_consumption, :real_government_consumption, :real_capitalformation, :real_exports, :real_imports, :wages, :euribor, :gdp_deflator])
-plot(ps..., layout = (3, 3))
Example block output

To run multiple monte-carlo repetitions in parallel we can use

model = Bit.init_model(parameters, initial_conditions, T)
-data_vector = Bit.run_n_sims(model, 4)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 71598.0342767719, 71756.84668011802, 72752.1622419966, 72667.19043471834, 73701.06214352732, 75479.33092928858, 75661.77516479732, 75297.37754006122, 74515.42536702489, 75116.17595767189, 75437.67885316671, 75967.48551548675, 76205.45321986827, 76238.33500726818, 77479.96049158982, 79074.95200527768], [72421.99999999999, 72154.63429378897, 71573.60219743138, 72024.00821204775, 71615.33928362819, 72327.62009498142, 73466.46015046007, 73299.43437655759, 73039.10549445837, 72385.15816784171, 72610.35725093006, 72653.78747648759, 72671.58841046889, 72550.18221649417, 72488.97659199071, 73391.16450275385, 74200.91338357846], [64900.92049553803, 64192.329233431505, 64352.63629707332, 65247.95856154557, 65161.42135147592, 66112.62263599437, 67709.37238212468, 67847.56010079151, 67506.07932847872, 66802.44066203378, 67359.200936965, 67648.65726295025, 68144.2497996369, 68370.99230175311, 68405.016004595, 69545.52454397536, 70970.02006463314], [64900.92049553803, 64691.35762023856, 64188.29984566335, 64594.91179965704, 64218.21554366649, 64880.593500632756, 65903.70962063997, 65729.19771424236, 65481.4790457578, 64892.67436241491, 65112.149038660944, 65152.20566924717, 65187.7686930923, 65091.50907485781, 65040.895809950576, 65875.44701692543, 66595.55495266314], [40512.94792630535, 39819.02172834475, 39756.453079544786, 40341.8265185659, 40402.68308757776, 40804.996020449944, 41824.43104524995, 42110.80686714994, 41967.69102932974, 41519.32960731431, 41743.18119163476, 41925.98479377641, 42101.66478182738, 42162.6397121951, 42142.97475664039, 42626.23121229724, 43525.366489387656], [40512.94792630535, 40128.57307839894, 39654.92756643948, 39938.05757686381, 39817.85782519226, 40044.58232090116, 40709.06377773954, 40796.00720151591, 40709.022181007495, 40332.36374677083, 40350.66030015786, 40378.78199935644, 40275.05759416984, 40140.26640616621, 40070.40697255153, 40376.74680246775, 40842.5407409923], [14866.888022051655, 14795.853330125738, 14921.938364118916, 14789.07822209308, 14827.891095608005, 14968.903405764371, 15058.650142520448, 15215.308506898795, 15284.938006652923, 15290.077066184094, 15188.741338594004, 15121.46427119298, 15019.754694168047, 15031.46699968476, 15326.526306283258, 15530.945869369623, 15895.871620419593], [14866.888022051655, 14910.8756529942, 14883.832413220536, 14641.058883907288, 14613.25868414624, 14689.953269088415, 14657.068458272628, 14740.250344263704, 14826.52166671023, 14852.960194252673, 14682.056437600651, 14563.433925783318, 14368.113196773813, 14310.467607376208, 14572.77636699147, 14711.342080588645, 14916.078522368456], [15944.236265986643, 15751.979729221872, 15738.51200836918, 16194.96558177866, 15870.9758540739, 16149.06572393911, 16993.508927797175, 16992.547229019805, 16453.360820035083, 15937.815132498261, 16583.577395427186, 16461.158454534943, 16836.867332554822, 16721.289135250583, 16416.35613252123, 16925.606517397417, 17352.699232667193], [15944.236265986643, 15874.434937299868, 15698.320784469837, 16032.8751491393, 15641.244883037816, 15848.122898084075, 16540.32873754654, 16461.999441477532, 15959.901870866039, 15482.180548971748, 16030.36182058777, 15853.689113372875, 16106.389261280183, 15919.235729193542, 15609.008975637573, 16032.4032736443, 16283.109886029271], [15944.236265986643, 15751.906943825968, 15737.834324604786, 15947.463604368699, 15941.202402846608, 16170.534039929345, 16570.04863513135, 16674.052038170652, 16588.951561258848, 16394.467635376426, 16496.406006111723, 16591.893545148232, 16699.109240928265, 16740.421813307526, 16732.62804165254, 16972.796400952517, 17334.27189542031], [15944.236265986643, 15874.36158607345, 15697.644831297248, 15787.850342946213, 15710.454908731514, 15869.191145377401, 16128.161216538958, 16153.448428894915, 16091.426059036407, 15925.778146190922, 15946.098402761196, 15979.599661437655, 15974.607891040465, 15937.450689156001, 15909.726810248445, 16077.102838343151, 16265.81837689431], [3173.2320350842087, 3120.337129835477, 3085.218198970793, 3116.1706140088604, 3107.7576404999663, 3157.9256120095024, 3235.995435816752, 3295.395105833336, 3286.768658713022, 3243.5943676342426, 3236.364263044663, 3263.6299709165487, 3272.6420639302632, 3268.335272677501, 3257.6651749714592, 3287.1769935829234, 3375.4973815938906], [3173.2320350842087, 3144.594495517497, 3077.3395192488965, 3084.9818201548587, 3062.773123664877, 3099.076693207387, 3149.69842479422, 3192.505023557049, 3188.1939403785555, 3150.86561174521, 3128.4016037535666, 3143.1915975356465, 3130.6564311154384, 3111.566292942491, 3097.4550348002253, 3113.7050916784983, 3167.4377598285187], [34195.564496956766, 34075.93763219303, 34127.97941931201, 34245.254729596025, 35107.34982228287, 35337.54800038735, 35268.43100450311, 35355.514006617406, 36067.41496538548, 36435.62487004886, 35941.9116135772, 36638.19419702174, 37651.41087226236, 38671.967748729425, 38811.79455208097, 38732.360472250846, 39374.664629387626], [34195.564496956766, 34340.842495259996, 34040.82726278385, 33902.50450101813, 34599.17404031884, 34679.02188278915, 34327.89810218312, 34251.630669951104, 34985.7035215818, 35393.99333993143, 34742.916679009264, 35286.127770366256, 36017.88074747721, 36817.028024829255, 36903.05233595055, 36688.36459083476, 36947.68072040871], [33097.63671130043, 32844.75814311389, 32788.0361912268, 32818.96281003673, 33541.70942482422, 33559.45100701353, 33665.690190782414, 34012.40144488825, 34476.02728134213, 34667.4213090208, 34341.23558156085, 34709.12286335938, 35642.21216532574, 36381.91037599184, 36459.31674025786, 36335.18357972539, 37073.64996658465], [33097.63671130043, 33100.091870164404, 32704.305829482284, 32490.487898880452, 33056.19614906701, 32934.06027588147, 32767.89892528212, 32950.453280650276, 33442.04374570738, 33676.339662085054, 33195.63798642509, 33428.24533239136, 34095.852389232045, 34636.81555107128, 34666.26805914066, 34417.69224478171, 34788.49648622047], [29576.147776884874, 29253.23402278928, 29281.129111712376, 29697.01272192946, 29721.892446685008, 30146.64514826107, 30883.144559559503, 30993.428152973556, 30811.695662752034, 30464.143590145908, 30705.836969273667, 30871.7766805973, 31119.5049751522, 31257.515163843258, 31271.2397416068, 31743.96762521136, 32353.743835522055], [34346.71094688275, 33971.71196268908, 34100.487676155695, 34566.25202103718, 34461.824716786716, 34972.24518920316, 35810.232970772435, 35838.96041319048, 35680.25180993212, 35330.82376003533, 35642.72430187235, 35762.37147640115, 36001.097129133515, 36087.515266019065, 36104.410586070626, 36753.179673773295, 37547.017272654746], [28335.32931213966, 28025.962871630174, 28132.200183672227, 28516.44617783685, 28430.295802050005, 28851.382181934965, 29542.704847066885, 29566.40439554679, 29435.4730657624, 29147.202119527217, 29404.513644326624, 29503.220099706985, 29700.16384770917, 29771.45703123934, 29785.395322397268, 30320.616461213765, 30975.516134706537], [978.0617717704337, 967.3832479531231, 971.019509205249, 984.6938185789181, 977.7041880042159, 993.7322985301672, 1015.9948517927821, 1015.1715346274972, 1014.1318557946323, 1007.4733118524758, 1010.6396658189904, 1014.5091059517923, 1023.6476953511658, 1025.9618718907682, 1029.365676917643, 1048.3772449907187, 1069.25895645634], [0.0019383188997990075, 0.0010346292920517808, 0.0008067259696711293, 7.856717352172637e-5, -0.0013708291382473758, 0.004059179440536909, 0.002909917196487699, 0.004225638831894196, 0.005896703029216743, 0.004726666019196024, 0.007643765367240096, 0.0025420628540533396, 0.006245875505247245, 0.0046336393028239, 0.004180953496671247, 0.0027432335650650064, 0.0011932266990601903], [2.3548476e6, 2.372537606014127e6, 2.375270170517318e6, 2.3706041295603113e6, 2.373700372639488e6, 2.3824296871996373e6, 2.367712285219626e6, 2.360833461509824e6, 2.378545303372179e6, 2.381812742557043e6, 2.3813387267640242e6, 2.3973150661280314e6, 2.4300613059749636e6, 2.430177844234006e6, 2.4316495464554527e6, 2.424898404894122e6, 2.443706237573683e6], [0.0016459319014481277, 0.0022867171852330157, 0.0022492229108933117, 0.0018912881021068027, 0.0018482800430836821, 0.002166316181383416, 0.0014650977975992742, 0.0011678407885562599, 0.0019546319841562305, 0.002053510462396277, 0.0020573169462752908, 0.0026232368268520444, 0.003915913035184516, 0.003737055641600761, 0.0036159005595405996, 0.0031380730505899605, 0.003696026438667329], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 512.4269800071543 255.42375441025303 … 135.50148626672438 499.3920573303602; … ; 551.063934171682 277.87909509640156 … 145.55230226208278 532.7916402105673; 564.6354043876576 285.8127393582412 … 148.52700641414944 543.0998294573636], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 516.4105651526563 257.4094076127104 … 136.5548689513712 503.27430955161253; … ; 521.9830209995855 263.2147751586688 … 137.87117199460346 504.6749980806994; 529.8322878713112 268.1957532598781 … 139.3720673687282 509.6241272648824]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 73017.294443303, 73274.01816932303, 74106.6075434397, 74436.48966802127, 76257.46806105234, 77751.69472600237, 77454.53788721428, 78943.21904976456, 79782.52294041436, 78997.75950673575, 78766.90757893576, 79943.44777390003, 80576.68134332624, 80198.79843587156, 80002.77977214039, 80056.49014812677], [72421.99999999999, 72858.70969960003, 72805.01586121568, 73210.68521369754, 73253.21842907839, 74625.22441461169, 75692.8451999997, 75469.15408005189, 76384.8868002035, 76693.85833657968, 75388.19777249244, 74274.16808628383, 75369.50409145257, 75997.47748891484, 75324.04140641037, 75191.71889054897, 74842.98001723165], [64900.92049553803, 65439.557994198214, 65680.3203269085, 66451.79283422396, 66762.54386849407, 68416.160724019, 69781.65259322769, 69500.03038935456, 70856.94064970055, 71600.11210728915, 70862.24963220069, 70629.62090142639, 71708.30037072898, 72285.99762838196, 71930.8634328725, 71758.79661662572, 71782.91120604302], [64900.92049553803, 65297.431178740764, 65259.92272076974, 65648.41447127998, 65701.2606409994, 66951.75538123687, 67933.84820939343, 67718.54361406395, 68560.66240628246, 68828.21766542568, 67624.41521421341, 66601.01933601806, 67605.52851646299, 68177.95652466036, 67558.65974661663, 67443.49731958123, 67108.20045985116], [40512.94792630535, 40801.44279848312, 40854.27912442606, 41093.42245189512, 41147.949897019054, 42002.64983646969, 42675.34884513906, 42645.45302062542, 43342.289057084, 43883.27074814661, 43713.56588929766, 43741.20599699647, 44241.93389310319, 44564.31167591325, 44502.96448506643, 44381.654183014165, 44567.77172374172], [40512.94792630535, 40712.82699316963, 40592.784645426196, 40596.61769992204, 40493.846165478884, 41103.609256282056, 41545.31403301774, 41552.32672763091, 41937.68487195905, 42184.39359980776, 41716.20779095972, 41246.27697566868, 41710.64309111098, 42031.7046686077, 41797.922225251175, 41712.71141742077, 41665.389556309325], [14866.888022051655, 14997.74802352912, 15184.46621168211, 15593.130509520246, 15671.918297852566, 16028.617069467367, 15997.246465383841, 16031.834990163748, 16229.111427186293, 16152.603802251859, 16132.169972756648, 16239.466010629949, 16226.195801989878, 16212.540009363103, 16047.590142495026, 15994.386839545901, 16065.02706205918], [14866.888022051655, 14965.174726414172, 15087.275558315743, 15404.615149322764, 15422.791421187412, 15685.534496204878, 15573.642537280804, 15620.892694763068, 15703.17063523915, 15527.27918496643, 15395.059657381107, 15313.192623390256, 15297.818207010807, 15291.175112435338, 15072.162774769657, 15032.545650177924, 15018.826045924441], [15944.236265986643, 16089.60119587255, 16111.939320374186, 16224.144662817667, 16313.993597657205, 16726.769105341504, 17335.07513141587, 16932.667779218733, 17740.685479352866, 18100.500901959953, 17596.6559312079, 17068.320324730248, 17971.91603631517, 17853.732954848947, 17772.481265612318, 17594.59658027418, 17146.503812430292], [15944.236265986643, 16054.656525553239, 16008.812224056397, 16028.000567625253, 16054.660043609996, 16368.743022232957, 16876.045764360806, 16498.634534196033, 17165.75873659442, 17399.76627503778, 16792.63039559106, 16094.770401886039, 16943.657509759378, 16839.09843032533, 16692.209121014206, 16536.524903567064, 16029.873903098329], [15944.236265986643, 16074.010995248123, 16106.026024198385, 16245.838723994097, 16306.681792464902, 16700.822854645245, 17015.35244827662, 16997.613262059676, 17312.545567178142, 17524.494500358793, 17369.13800472826, 17318.12691596937, 17564.295050509623, 17718.51678374977, 17652.771151814777, 17624.040053619483, 17649.665271522957], [15944.236265986643, 16039.100184961411, 16002.936776897533, 16049.432355375939, 16047.46446970194, 16343.352134885692, 16564.789274748953, 16561.915276487256, 16751.49365949515, 16846.059125436164, 16575.50820699567, 16330.328421326656, 16559.358453202258, 16711.566646341056, 16579.775397014433, 16564.197759150917, 16500.268033026277], [3173.2320350842087, 3197.0153281412713, 3187.990811017161, 3189.8666173965635, 3181.4321583773576, 3259.588342484074, 3309.9605823001248, 3332.0760613011153, 3384.7678595280154, 3437.21717796486, 3423.9248128773206, 3426.089762102012, 3465.3099591530013, 3491.656569637312, 3484.2105355980184, 3482.003546390568, 3491.9553834570256], [3173.2320350842087, 3190.0717970190485, 3167.585555703652, 3151.3022730531816, 3130.858881904418, 3189.8188825569227, 3222.31347955888, 3246.665315374599, 3275.0768578619995, 3304.1503026392747, 3267.4790090639303, 3230.6710354731817, 3267.043146340294, 3293.224381125638, 3272.4283127744375, 3272.6091841032244, 3264.5491515000367], [34195.564496956766, 34718.97173694934, 34863.223798638464, 34587.83703801744, 36023.35107495453, 37229.54243389281, 37718.385058931584, 38198.07347582755, 37574.92714800124, 38426.62221204163, 38434.060329213644, 38604.44995336761, 38181.11406670884, 37841.46073124973, 38099.44531011354, 37469.84792536336, 38982.688127119814], [34195.564496956766, 34643.566324074076, 34640.07604670495, 34169.68248247822, 35450.709948976655, 36432.6672472034, 36719.60966922686, 37218.94638253654, 36357.22727390514, 36938.991293677485, 36677.933138744425, 36402.51335043843, 35996.59150310676, 35690.91593406756, 35783.630828272435, 35216.55472597294, 36444.022753404075], [33097.63671130043, 33590.46931153148, 33739.89028579803, 33391.92711881129, 34720.72319946212, 35730.11038411918, 35974.360774868306, 36353.491378621366, 35943.79406185992, 36780.47472398541, 36878.692615739965, 36886.53470678863, 36677.712024217035, 35895.36402804906, 36223.68276741596, 35437.705756057505, 36705.500577224426], [33097.63671130043, 33517.51486961135, 33523.93261328774, 32988.23068565138, 34168.789150174605, 34965.32960731174, 35021.7668038868, 35421.646259074856, 34778.95471749433, 35356.57201690944, 35193.63321018373, 34782.5852650997, 34579.20621953535, 33855.41665652136, 34021.88354289728, 33306.61780658999, 34315.132241504754], [29576.147776884874, 29821.61151047918, 29912.02388163163, 30198.712429015246, 30346.22711367669, 31090.293582975475, 31695.147118874054, 31633.963939751975, 32238.366694203654, 32594.780732397183, 32301.217043522858, 32181.682868592303, 32647.75504655436, 32951.92253095739, 32828.84979483002, 32770.316975502334, 32798.66322541557], [34346.71094688275, 34631.76740417756, 34777.47102174451, 35247.38243631445, 35408.1787684444, 36288.91867090012, 37027.075637860115, 36814.294248055085, 37545.194907303, 37924.017367278386, 37492.65048011539, 37379.6717514579, 37972.73722468348, 38243.08142403761, 38023.53859697745, 37913.300875537156, 37914.09084206711], [28335.32931213966, 28570.495019927283, 28690.697504296575, 29078.364745563566, 29211.018408679443, 29937.610693251307, 30546.574991905927, 30371.034726611102, 30974.01272081492, 31286.533450116705, 30930.664650305906, 30837.45952546213, 31326.726329305307, 31549.754727225933, 31368.63641541761, 31277.692565089077, 31278.34427121042], [978.0617717704337, 986.1790795414034, 990.8254235322958, 1005.6979688943378, 1008.1379863729856, 1036.9484701433794, 1059.4298364934673, 1051.7722015475056, 1073.379048193897, 1081.3140076135608, 1068.3821085624063, 1068.2662813761663, 1087.8080994911747, 1090.993673387037, 1078.475041065018, 1075.17876558621, 1070.1571385603736], [0.0019383188997990075, 0.002060261488152859, 0.005490996103076684, 0.0053893841845324975, 0.0019864632195278897, 0.002881376770928812, 0.0035245127195111525, 0.0049728145964373915, 0.0018702984130702927, -0.0008561734158348822, 0.0003463375395134083, 0.0036799239037850207, 0.005297999630655914, 0.005410729578387619, 0.0024404893612939293, 0.0038091026877455914, 0.0053598202684272955], [2.3548476e6, 2.3675598580234465e6, 2.3656411143178674e6, 2.3552483978631e6, 2.3727430416053873e6, 2.4005947689932208e6, 2.4137430443995595e6, 2.4224575012518815e6, 2.405954521631003e6, 2.415100647113534e6, 2.4071822657052004e6, 2.405983301953106e6, 2.4036692866574298e6, 2.4024098326184372e6, 2.4223201470427276e6, 2.3987726936937794e6, 2.431901341093727e6], [0.0016459319014481277, 0.0021023372461099715, 0.0019929882556262847, 0.0015370027726373755, 0.0021994106772382045, 0.003257271597822741, 0.0036357324236576494, 0.0038357977909178483, 0.002924664799432472, 0.0030624059124786875, 0.002521141828741999, 0.0023699499138832856, 0.002221473605532534, 0.002129638750618562, 0.0028431512590303487, 0.0017639152048926614, 0.0031147403930524035], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 522.3832111470739 260.38652576452205 … 138.13422062636917 509.09502564820843; … ; 579.1032614084833 288.5249966284655 … 151.29467559736457 553.7080021700385; 584.0948267471983 291.3157684695673 … 151.29134542162217 554.0494580920631], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 521.2486579116232 259.82099768289595 … 137.83420978453174 507.98933274656963; … ; 544.2782083878315 271.1742079609462 … 142.19639304477494 520.4101228132009; 546.0568826527783 272.3444432541422 … 141.43881553162876 517.9681552840666]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 71907.57679982498, 72028.11403514518, 72537.19592773123, 72889.41764602158, 73301.17048315218, 75324.08419699123, 76730.8575470117, 77869.02259252293, 78915.58252516514, 80161.74290473259, 79619.75688586067, 81683.10954317963, 82980.41139203213, 84717.89655585277, 86145.27774849035, 87503.62409947469], [72421.99999999999, 71768.7348635946, 71965.03221902302, 71929.6708483208, 71850.85039534296, 71884.5537350084, 73468.4086598868, 74120.97480878608, 74314.11630592454, 75013.7026347539, 75885.35228424409, 74982.61753582499, 76412.51009567994, 76719.93925638204, 77574.58994923042, 78248.95322429713, 78824.0195385041], [64900.92049553803, 64459.0288263401, 64584.95422482278, 65060.870828395244, 65375.55363895066, 65750.81837129407, 67572.90358216522, 68834.37699524932, 69864.15964349255, 70812.08869156992, 71943.28195038735, 71492.24260574905, 73408.69844848308, 74572.59536502491, 76140.04080557973, 77429.5154628245, 78667.44720698797], [64900.92049553803, 64334.568835222715, 64528.391086092226, 64515.962658028264, 64444.04792526628, 64480.119555777295, 65908.18524558905, 66493.08096312369, 66674.69441000427, 67310.87567352565, 68105.32178395947, 67328.45833440711, 68672.00505314021, 68946.45242919133, 69720.00821947302, 70332.10283818167, 70864.31515840592], [40512.94792630535, 40059.33854931507, 40003.88055271421, 40105.90359107535, 40314.290489048326, 40463.64302849521, 41492.66515272615, 42297.29841451082, 42835.68549221043, 43323.38403630113, 43879.36593263421, 43350.97335047103, 43959.60645646837, 44725.96538190247, 45623.68832016752, 46385.1140417384, 47016.991766489366], [40512.94792630535, 39981.99042585129, 39968.845379698774, 39770.00223795072, 39739.87100281232, 39681.64358664108, 40470.456592024464, 40858.62051444986, 40880.1344582152, 41181.31480806095, 41538.53223681119, 40826.166540598446, 41123.11456974253, 41351.60683973287, 41776.75623798263, 42133.32075558002, 42353.31182889477], [14866.888022051655, 14764.20743734491, 14844.865998663883, 15104.763051281494, 15243.600125186007, 15498.782784828762, 15906.68364317401, 16134.62156770877, 16522.438337615, 16801.345977629768, 17086.68162177431, 17098.860333168468, 17644.012066433537, 17951.880254564592, 18042.30036660164, 18286.64040143186, 18760.12565505312], [14866.888022051655, 14735.700133403707, 14831.864948729026, 14978.255233398004, 15026.40119036474, 15199.253662386194, 15514.808401307111, 15585.827097484498, 15768.149687766698, 15970.624947584156, 16175.157965041122, 16103.004515555675, 16505.532878152084, 16597.497404071513, 16520.996266204853, 16610.43421995651, 16899.283045667322], [15944.236265986643, 15856.217069577579, 15825.97784991901, 15803.931155950595, 15927.098663887984, 16114.258054862621, 16468.10527328537, 16870.727911495796, 16935.323329581646, 17520.356641046594, 17314.171852784806, 17284.995361707744, 17897.18825128731, 17921.320257677497, 18620.86427981414, 18797.625028574214, 18970.828157846365], [15944.236265986643, 15825.601271115107, 15812.117547757078, 15671.567553970715, 15700.160877788876, 15802.834271395535, 16062.398912247168, 16296.895910067458, 16162.185496775646, 16654.08504977079, 16390.512268676597, 16278.298842000164, 16742.372879583454, 16569.243011673094, 17050.776397104255, 17074.580522953343, 17089.08567804864], [15944.236265986643, 15815.76179639393, 15792.029196954434, 15868.77154185834, 15923.523896336792, 16030.156082099471, 16471.4249940689, 16799.988568010504, 17058.89481889997, 17259.101750201156, 17522.092045878228, 17385.97086094201, 17755.662668707137, 18064.39782066326, 18438.205333074322, 18794.23168601645, 19097.349790727778], [15944.236265986643, 15785.22411054086, 15778.198626831338, 15735.864878348526, 15696.637045430025, 15720.357651438935, 16065.636848768547, 16228.562657135271, 16280.115653384288, 16405.747572346663, 16587.340537725755, 16373.393420729228, 16609.979229682212, 16701.52606205904, 16883.519023279376, 17071.498223957784, 17203.057456531216], [3173.2320350842087, 3131.7116538748314, 3099.7637854283466, 3095.3154307136415, 3090.9751541291644, 3126.3030533021406, 3216.363476099784, 3291.633882900048, 3344.957857148059, 3373.698742347155, 3426.6582255432713, 3368.38722158325, 3379.4583053479746, 3447.9386177227407, 3504.775509510665, 3595.619921279146, 3649.631767892326], [3173.2320350842087, 3125.664823636767, 3097.04902978392, 3069.391051796126, 3046.9332935763755, 3065.8841918311787, 3137.125512775522, 3179.673991844796, 3192.252566662955, 3206.8905295981417, 3243.856198487197, 3172.2087661057612, 3161.398890413486, 3187.8082655158137, 3209.2572415929753, 3266.0350327496976, 3287.6197842235065], [34195.564496956766, 35277.92138392652, 35630.25156699166, 36465.688264407225, 36433.93754898082, 36454.23332990647, 37248.944436567, 37699.287943628915, 39031.56431728309, 39603.649033923095, 40236.2792181056, 39714.50923323506, 40680.84775853967, 40940.551707482584, 42539.19851911781, 42997.38412508744, 42325.34648212752], [34195.564496956766, 35209.8054060406, 35599.04679358003, 36160.27502261803, 35914.80739849174, 35749.71964839908, 36331.2836948429, 36417.00433579625, 37249.680472492175, 37645.49733805122, 38089.79336566909, 37401.49396245501, 38055.917648519375, 37851.784384168895, 38952.34674191752, 39056.119930265835, 38127.03727891885], [33097.63671130043, 34050.10764033983, 34276.86193314395, 34943.09013498376, 35029.50918108157, 35229.746714940346, 35792.31430876139, 36271.07829033236, 37455.988884166814, 38333.153163735435, 38354.75572056642, 37829.581392721055, 38498.54498954872, 38559.306209594804, 40108.15492984843, 40321.485848340526, 39569.66796204136], [33097.63671130043, 33984.36237281681, 34246.84245074221, 34650.42919961688, 34530.39007411469, 34548.897433812985, 34910.53894053496, 35037.37304901179, 35746.03380932468, 36437.81950871318, 36308.643551953945, 35626.346324783815, 36014.42788031701, 35650.19238326415, 36726.28569397887, 36625.502204457676, 35644.69829302525], [29576.147776884874, 29374.77230778848, 29408.915265909676, 29583.015443477914, 29718.427390722944, 29874.030412925928, 30663.181906661073, 31257.162056817622, 31733.869151149705, 32117.73563149586, 32587.193511046997, 32419.718422338643, 33195.81220230558, 33770.720806635734, 34475.75986099722, 35106.62961520203, 35677.547453235056], [34346.71094688275, 34112.854087597945, 34197.61944745197, 34489.37430657177, 34662.38583552224, 34875.778071688066, 35878.69119593211, 36526.59863063652, 37064.581997173234, 37611.18588209833, 38252.2771507763, 37978.12400097386, 39087.27984168916, 39661.18042209207, 40504.456774403865, 41142.21708839596, 41790.86321951928], [28335.32931213966, 28142.402218480376, 28212.33189499119, 28453.023646360376, 28595.754595335075, 28771.798796299867, 29599.18147322838, 30133.691766063257, 30577.516966061186, 31028.453916227976, 31557.341012439916, 31331.170308827976, 32246.20103924507, 32719.65720112599, 33415.34282822571, 33941.48195540812, 34476.601657578394], [978.0617717704337, 971.4024309535944, 978.4195114610325, 988.4810783455484, 994.7404127054941, 1001.0098866800844, 1031.0304795720717, 1050.6163077952115, 1065.708495169565, 1083.1671779756846, 1103.811288564018, 1094.4001824365764, 1125.60640448835, 1140.6941362971254, 1159.824170178619, 1180.6687592265987, 1199.0365342336474], [0.0019383188997990075, 0.00502202717094602, 0.007438954885160554, 0.005160037894657465, 0.003134161035107441, 0.005939066254209369, 0.006419733930596472, 0.005813802070271157, 0.0015985304657173405, 0.0012492173586058364, 0.0004995823475320016, 0.0017374401580303456, 0.005015027421131357, -0.0025398820048344595, -0.001045015366300417, 0.0042635472348575565, 0.0022577844836126904], [2.3548476e6, 2.3887847813612795e6, 2.3905098293859535e6, 2.383167703713336e6, 2.3772980766155873e6, 2.381339595264038e6, 2.370740766234365e6, 2.3999660195215456e6, 2.400897702225255e6, 2.401042817842617e6, 2.411310751496274e6, 2.4119026439443235e6, 2.4217988151492956e6, 2.4164132319387244e6, 2.448012637027686e6, 2.453525908427463e6, 2.443392247768333e6], [0.0016459319014481277, 0.003056850437765088, 0.003072281674645905, 0.0026611446072325115, 0.002293798793178221, 0.0024274880604310345, 0.0019573149472389313, 0.003158353861785174, 0.002999398108214387, 0.002811955418392527, 0.003035873018085777, 0.0028751325573741974, 0.003180938746763182, 0.0026684262835988035, 0.0037331447479297406, 0.0037761288324522162, 0.00314213137391152], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 514.5559581669343 256.48496237908483 … 136.0644537062517 501.46687935321347; … ; 602.3512408194406 308.4550784476529 … 160.24311592301177 583.3561490094702; 612.536949265963 315.11571727987973 … 163.00475147658426 591.845914675522], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 513.5624335800934 255.98973127305266 … 135.80173518554156 500.4986276670443; … ; 547.1379894448553 280.18119664917157 … 145.5547699199924 529.8840425150064; 551.7785686465737 283.8589568304305 … 146.8360864762904 533.1399061727227]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 73124.69222463312, 73391.37236085607, 73362.65973717258, 73523.98192654044, 75922.10781861315, 76180.27676292327, 76038.21465835445, 77477.07018960724, 78423.9897171029, 78781.70915376852, 78386.19726984836, 80437.37304502787, 80368.94616170478, 80487.17398833313, 81282.94842525641, 81664.09960555246], [72421.99999999999, 72581.33255354251, 72870.18809696675, 72933.64512296731, 73130.89480491015, 74533.37703144517, 74281.9603365942, 74828.31613864956, 75354.66185280823, 76021.32587029989, 76024.67050855437, 75721.04925458964, 77053.39983107775, 76628.85169520565, 76564.8277550781, 76970.22818385708, 76915.86781513815], [64900.92049553803, 65543.80450474005, 65804.61121368597, 65801.92436165929, 65951.96510798702, 68127.29976784461, 68361.48699240624, 68260.22614406994, 69554.61500049688, 70396.88093650548, 70718.07878531446, 70356.8485449027, 72238.28342700069, 72154.31030404812, 72247.85912475923, 72971.41788315904, 73301.85840432481], [64900.92049553803, 65056.775308797296, 65337.303861981265, 65417.123874666075, 65599.36086307463, 66881.14787147913, 66658.00494691801, 67174.08877304531, 67649.23455208, 68240.14240070828, 68243.23432940329, 67964.70015921448, 69199.24315399393, 68796.49675054879, 68727.03581768405, 69099.69180720726, 69039.83609521946], [40512.94792630535, 40804.1647143986, 40752.82316613451, 40608.629634486126, 40681.1795937062, 41842.04968529555, 41962.21198486436, 41682.71951268712, 42467.38281390561, 43057.85249210426, 43255.99353504844, 43082.774506963186, 43942.70456070261, 44087.88554985719, 44237.93773359163, 44625.99160740405, 44915.97217758477], [40512.94792630535, 40500.96566023737, 40463.4195283497, 40371.15602545314, 40463.68256250637, 41076.694978139545, 40916.56658055757, 41019.47589416891, 41304.03052005029, 41738.69561323412, 41742.210106200866, 41617.950660823655, 42094.04976812633, 42036.18691923315, 42082.1096700858, 42258.22049394911, 42304.40298107007], [14866.888022051655, 15044.038998639473, 15291.171189874995, 15050.456107861663, 15169.774648003371, 15528.633627071988, 15530.40616761375, 15521.05067054154, 15583.065562534866, 15654.715045248404, 15658.547095754373, 15856.900793795689, 15964.674272988572, 16019.310058535693, 16089.31249002836, 16232.488207845823, 16327.888216967067], [14866.888022051655, 14932.252899669456, 15182.581889195146, 14962.443137177937, 15088.671273350446, 15244.591307645245, 15143.408031241886, 15274.084111490574, 15156.18276763993, 15175.1039210643, 15110.561783749545, 15317.762665519685, 15293.045799008087, 15273.826438699318, 15305.239064241605, 15371.222938579327, 15378.528605135098], [15944.236265986643, 16094.856099225242, 16102.554678733495, 16245.117074131898, 16044.718051109132, 16734.007118225527, 16725.774453355676, 16664.746250106098, 17081.23878968063, 17364.06601542847, 17402.489129775342, 16849.188615462943, 17885.48273481874, 17857.331530156993, 17868.263017518246, 18236.16036316079, 18017.804946369524], [15944.236265986643, 15975.26180829188, 15988.203388697553, 16150.117892542157, 15958.93689684057, 16427.916684945038, 16308.989246776684, 16399.581531157175, 16613.315008859397, 16832.08576551684, 16793.472956236095, 16276.312482147901, 17133.04649526985, 17026.312709678747, 16997.49677404532, 17268.584020923052, 16970.18776020001], [15944.236265986643, 16094.856099225242, 16099.944878723754, 16083.355098670987, 16140.48421953639, 16657.445582175245, 16724.02960193691, 16675.97157439559, 16974.070788059078, 17207.816464014297, 17290.629081825013, 17207.56103441433, 17612.083739871596, 17650.682987863096, 17678.988862016366, 17858.140293833127, 17958.001839623725], [15944.236265986643, 15975.261808291878, 15985.612122020182, 15989.301878579154, 16054.191062972659, 16352.755575796498, 16307.287874854845, 16410.628241268227, 16509.08276951594, 16680.623207848024, 16685.527553935968, 16622.50015972443, 16871.149304031584, 16829.280880138405, 16817.446433147652, 16910.620984912082, 16913.8618118872], [3173.2320350842087, 3197.3471232620323, 3161.976524964032, 3148.5925331839026, 3159.580285972668, 3245.1824718359267, 3261.477161437871, 3237.1804765467587, 3293.593746786335, 3357.4948363647936, 3380.221146851105, 3366.084293378579, 3408.0871681672693, 3446.6811372646835, 3462.410241429272, 3495.3382643907235, 3517.9183042875266], [3173.2320350842087, 3173.5889448902008, 3139.5219454325897, 3130.1800026710675, 3142.6879701917633, 3185.8231503141456, 3180.205263608958, 3185.671378336215, 3203.368976940221, 3254.6317776469023, 3261.9271871066057, 3251.6366841546237, 3264.710087945754, 3286.2844459439625, 3293.6781180921744, 3309.8821954928617, 3313.374427490009], [34195.564496956766, 34610.30267414108, 35265.94741322352, 34515.03791242807, 34684.94818096666, 35995.4335366459, 37284.72385861667, 38306.5921629579, 39587.46184107541, 40552.4989492223, 41454.77721144703, 41210.49832925213, 40570.02673134511, 40644.22423025376, 40269.146094876414, 39220.097674539866, 39370.26663749907], [34195.564496956766, 34353.12767476338, 35015.50848216574, 34313.198778905265, 34499.50927943965, 35337.02232828977, 36355.63555965686, 37697.068525913804, 38503.00215721552, 39310.09820584916, 40004.02901077492, 39809.332286563185, 38863.25936002313, 38752.781759017846, 38306.727417777256, 37139.15311743901, 37081.143846110965], [33097.63671130043, 33428.670261771105, 34021.124087110475, 33056.580991735056, 33056.63854724474, 34178.0161486258, 35322.839701527104, 36136.893937938235, 37242.0788175891, 38205.14278490087, 38990.09781825632, 38613.16497562608, 37925.51525482698, 38239.80520709848, 37977.485347682225, 37031.78942769402, 36967.83237286826], [33097.63671130043, 33180.27548941935, 33779.52519144134, 32863.27071111107, 32879.905207226635, 33552.848267574365, 34442.63908163867, 35561.89392408087, 36221.86860095677, 37034.6576353649, 37625.60334840675, 37300.30884046527, 36330.00159134937, 36460.25613142305, 36126.74517107257, 35066.95238703336, 34818.39537737821], [29576.147776884874, 29869.117927606534, 29938.224729668727, 29939.23467690633, 30052.541813262254, 31037.74509050545, 31158.47453048177, 31115.54657226037, 31690.787033326178, 32103.315263605025, 32261.54503305229, 32122.971335145496, 32931.13761931282, 32936.819386403564, 32965.80662243442, 33295.08469501356, 33453.282376641684], [34346.71094688275, 34686.93649480777, 34873.44084032165, 34868.06778981286, 34907.98138498492, 36067.25971684561, 36177.09764131977, 36118.031995047306, 36812.62124915791, 37226.56972563884, 37381.29017536167, 37171.69859664208, 38215.090896612375, 38127.779016783854, 38188.15174689721, 38574.362446562816, 38745.35072799882], [28335.32931213966, 28616.008383733086, 28769.870628547553, 28765.437972512074, 28798.365866684555, 29754.746620244947, 29845.360646308465, 29796.632704330186, 30369.65453696897, 30711.15350662243, 30838.794691858435, 30665.885955029018, 31526.663118441586, 31454.632615386166, 31504.438874619555, 31823.054749537554, 31964.11656097269], [978.0617717704337, 987.7500823256931, 992.9456436955461, 994.6218949400799, 991.4419097398362, 1022.2949604934963, 1025.9148206047078, 1026.64757676224, 1051.2067180128167, 1066.9959472616183, 1075.243576900548, 1062.1786131151196, 1092.0549110754062, 1089.7119008606574, 1093.9007554276523, 1101.97074158267, 1103.2252996842958], [0.0019383188997990075, 0.006038217839340776, 0.0060931303316527075, 0.00898602249108027, 0.0013172025220828942, 0.005093498118048823, 0.0068756768427225, 0.004723733855572343, 0.004341157654156547, 0.004182603140772567, 0.003151806896517728, 0.004673599121267191, 0.006247938465308911, 0.007134994373846348, 0.0032307487081741915, 0.00028030123989375433, -0.0025113665301153], [2.3548476e6, 2.362706152597187e6, 2.37651536511467e6, 2.378638887182222e6, 2.3827254652733905e6, 2.391459457801954e6, 2.4167204461952113e6, 2.4568639502871563e6, 2.4611354738419177e6, 2.476117663718816e6, 2.491498861353907e6, 2.4864993033928913e6, 2.4712840733410744e6, 2.4778055787448296e6, 2.465655302297204e6, 2.458840909796039e6, 2.457218237409419e6], [0.0016459319014481277, 0.001990888491848516, 0.002558202378790557, 0.0026629111331331955, 0.0026649801783479574, 0.0029451120352734965, 0.003923835385791209, 0.005375572635062441, 0.005248232499891493, 0.005554439030593794, 0.005826548398344022, 0.00530506700614487, 0.004453816266497101, 0.004547383704090604, 0.0038025438743339484, 0.0032556222091520443, 0.002892056297415445], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 523.2153779372646 260.8013266515553 … 138.35427117267625 509.90602409600865; … ; 577.714391453694 297.1472927939034 … 153.48363402754296 557.2919254704096; 584.1310163385747 300.13982964900305 … 154.40814628324213 560.5407076076317], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 519.3275785220952 258.8634186924483 … 137.3262171871986 506.1171210440987; … ; 547.0619532973548 281.38121677012714 … 145.3400813142358 527.7230649171444; 550.1676288164865 282.68866705010726 … 145.430325277166 527.9489418189975])])

Note that this will use the number of threads specified when activating the Julia environment. To discover the number of threads available, you can use the command

Threads.nthreads()
2

To activate Julia with a specific number of threads, say 8, you can use the command julia -t 8 in the terminal.

We can then plot the results of the monte-carlo repetitions using the function plot_data_vector

ps = Bit.plot_data_vector(data_vector)
-plot(ps..., layout = (3, 3))
Example block output +end

Note that we can equivalently run the model for a number of epochs in the single command data = BeforeIT.run!(model), but writing the loop explicitely is more instructive.

We can then plot any time series stored in the data tracker, for example

plot(data.real_gdp, title = "gdp", titlefont = 10)
Example block output

Or we can plot multiple time series at once using the function plot_data

ps = Bit.plot_data(data, quantities = [:real_gdp, :real_household_consumption, :real_government_consumption, :real_capitalformation, :real_exports, :real_imports, :wages, :euribor, :gdp_deflator])
+plot(ps..., layout = (3, 3))
Example block output

To run multiple monte-carlo repetitions in parallel we can use

model = Bit.init_model(parameters, initial_conditions, T)
+data_vector = Bit.ensemblerun(model, 4)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 72300.19007207702, 72968.23070569789, 73143.84063319786, 73082.84597442718, 73221.80843151831, 72951.20362277684, 73294.60742883345, 74073.93758327601, 74555.63830369072, 74807.61758681641, 74579.82911992821, 76111.51464758225, 75475.43794424798, 75044.74884384322, 75094.90806409175, 75004.89312787801], [72421.99999999997, 72361.96691582676, 73339.64853337938, 73860.72722825562, 73482.38930316144, 73099.19720849833, 72593.04775192623, 72700.74324834568, 73218.59509541879, 73773.06451966545, 74010.04377686855, 73488.46936237277, 74306.21379330635, 73952.292038932, 74186.8653067632, 74160.50727006826, 74158.49385565244], [64900.92049553802, 64794.839361574224, 65401.025592418635, 65564.79291190396, 65486.765437962225, 65599.95884950912, 65330.88402147149, 65642.83363396018, 66336.18702939778, 66784.07316510165, 67004.59914024964, 66782.73482925905, 68180.18039165568, 67598.7908722679, 67212.68432846865, 67264.12364640611, 67171.60327214621], [64900.92049553802, 64850.203263979434, 65733.92535740884, 66207.39686514711, 65844.78105574862, 65490.110549434394, 65010.140312003154, 65110.96738938308, 65570.193468101, 66083.07366944248, 66290.21850436988, 65805.47341484968, 66563.00408823216, 66234.60108648006, 66444.3340273925, 66427.16076616854, 66413.59944395816], [40512.94792630534, 40418.19757223428, 40765.82942381061, 40837.880321808916, 40967.799932630944, 41105.96391280149, 41136.02533584565, 41305.817013707645, 41802.26113051126, 41964.298898667774, 42136.75480145149, 42145.66526602221, 42821.010670568896, 42554.94482781507, 42260.7313641476, 42179.53428558699, 42199.07199968339], [40512.94792630534, 40452.732871153734, 40973.33282168375, 41238.13451573478, 41191.770564011866, 41037.13124372757, 40934.066927404885, 40971.13966116111, 41319.5643656305, 41523.82033889308, 41687.50680840019, 41528.9290309099, 41805.33245811344, 41696.15696608302, 41777.62246897757, 41654.697231463964, 41722.872883337346], [14866.888022051655, 14704.643535039268, 14796.480074464727, 14643.49447004886, 14875.7093089866, 14730.458285890343, 14825.715518998084, 14720.327029992099, 14833.990564616975, 14895.862212866548, 14825.077075736854, 14996.673716986064, 15165.388281439742, 15222.504737208203, 15361.23945367301, 15483.80749312674, 15592.139719035593], [14866.888022051655, 14717.207906794813, 14871.796091222142, 14787.016122719879, 14957.03469164447, 14705.791870996132, 14752.9282750734, 14601.056659976608, 14662.700326668915, 14739.507689942922, 14667.01706009284, 14777.220731037385, 14805.678077974775, 14915.30419103505, 15185.635502171071, 15291.143537752589, 15416.188855561515], [15944.236265986645, 16086.39944985826, 16478.081052797457, 16928.578783586257, 16534.397957785437, 17255.88589750369, 15950.11356873631, 17142.903434559707, 16009.472923708645, 16636.186476613508, 17092.514235513485, 15869.98094946431, 16629.26935310693, 16692.502507188092, 15836.101195027924, 16404.82885457434, 15921.136688196728], [15944.236265986645, 16100.144461929754, 16561.95663823783, 17094.49666673643, 16624.791377890942, 17226.990609071097, 15871.8060627366, 17004.004316923663, 15824.609220676082, 16461.564627763917, 16910.279562893644, 15637.748470980512, 16234.837126811704, 16355.636401660096, 15655.068801475427, 16200.704693526652, 15741.473229668522], [15944.236265986645, 15915.78123742799, 16059.768685005343, 16100.708547226519, 16099.257131528402, 16110.586067696806, 16061.363222976004, 16118.703411712922, 16296.556819481168, 16421.030635743587, 16475.94658879525, 16426.31297247095, 16740.907563127068, 16625.22639661637, 16518.180220531347, 16510.11092884032, 16474.910657050463], [15944.236265986645, 15929.380464894497, 16141.515005840623, 16258.512431032988, 16187.271640250898, 16083.608604238296, 15982.509533845416, 15988.102799636294, 16108.378117116246, 16248.667171697285, 16300.285554301405, 16185.939440448768, 16343.827372764219, 16289.71796896523, 16329.350554338434, 16304.676750158591, 16288.998087768692], [3173.2320350842083, 3165.651326956277, 3193.040581011732, 3198.682809205217, 3208.8589403471956, 3219.6808229899816, 3222.035425049489, 3235.334590354922, 3274.2192545352705, 3286.9110842619853, 3300.418928626904, 3301.1168529466713, 3354.0142050809263, 3333.1742341855975, 3310.1295623991614, 3304.7062121467975, 3305.3000083776496], [3173.2320350842083, 3168.3562153832218, 3209.2935747437755, 3230.033266166597, 3226.401746259733, 3214.2894100776693, 3206.2167565935533, 3209.120529150347, 3236.411370489474, 3252.409998851283, 3265.230965365361, 3252.8101441380304, 3274.459820468789, 3265.9085007922467, 3272.289397684998, 3263.5859792541833, 3268.0010615368333], [34195.564496956766, 34748.872173887874, 34828.510625882955, 34577.91385953158, 35142.32292590228, 35589.99425781452, 36052.31240408548, 36236.28108222675, 36165.581684844656, 36548.86444885547, 37486.66028674939, 37612.54039349561, 37863.60515896852, 37199.53119830089, 37978.67742686799, 39592.28799351597, 39255.622478399004], [34195.564496956766, 34778.563321928166, 35005.79229535663, 34916.813795826616, 35334.44572153324, 35530.39817822162, 35875.31261924254, 35942.67927271148, 35747.97247407009, 36165.22903503131, 37086.99004685145, 37062.13938762999, 36965.51241891528, 36448.819242628415, 37544.51937281978, 39099.64386767487, 38812.638975445014], [33097.63671130043, 33657.92265894249, 33900.67047125759, 33844.02680177813, 34437.38415087744, 35460.493922491994, 35012.96320488893, 36110.72113165329, 34737.36872040531, 35489.57373331288, 36733.388812634934, 36045.031206040156, 36367.75881650178, 36194.04532626467, 36392.00059587301, 38565.550562712255, 37963.077757437226], [33097.63671130043, 33686.68164597937, 34073.22931312077, 34175.73387276235, 34625.65305191834, 35401.11469351827, 34841.06613253148, 35818.13666242764, 34336.25129162652, 35117.05717196593, 36341.749701369525, 35517.56825818535, 35505.14628850874, 35463.62476247491, 35975.9808386803, 38085.68206034988, 37534.68008836046], [29576.14777688488, 29527.80529929745, 29819.64065660428, 29902.014598105652, 29886.420598562305, 29895.67147536199, 29792.414369862796, 29893.317924595627, 30234.245567041173, 30490.124452307224, 30583.041909156476, 30496.79859702958, 31116.95568057732, 30862.91198566854, 30654.112779044288, 30633.701828824138, 30567.831845733082], [34346.71094688275, 34290.57094120399, 34593.45749853484, 34671.73906223517, 34609.49804963369, 34704.631656076905, 34536.29368258146, 34737.19765533953, 35075.103303181924, 35278.610913196, 35394.60670009316, 35260.29195160856, 36016.18783074294, 35701.31018116412, 35530.108670483176, 35595.35414132619, 35559.32229444772], [28335.329312139664, 28289.014963410515, 28538.890136595586, 28603.47081478479, 28552.12326096773, 28630.60652742631, 28491.73116547074, 28657.472806264836, 28936.238008058204, 29104.12759597808, 29199.821731746568, 29089.01482986667, 29712.613365810503, 29452.845788424514, 29311.60806725283, 29365.434237255588, 29335.708705497826], [978.0617717704339, 976.4631210726628, 987.9274372795684, 991.0392515630801, 990.8467897661845, 999.6557180701309, 1002.1759690272621, 1012.3180540249732, 1026.8381591746333, 1015.337799598312, 1026.9505309998633, 1025.644280621049, 1047.0368803354138, 1034.5687054351542, 1028.4628789410872, 1035.0676762558473, 1044.4491319653969], [0.0019383188997990075, 0.005233798439571391, 0.005911269002983666, 0.0036040837524329294, 0.003587830586483598, -0.0002978550320325013, 0.005326312587368154, 0.004584989321936073, 0.0010476568931321317, 0.0037347638827061047, 0.004239391467207421, 0.0024826605749252995, 0.0018724232347453462, 0.006389356733333518, 0.006195685776263282, 0.004567534093948833, 0.0019300370564123703], [2.3548476e6, 2.368950044426747e6, 2.382396865554428e6, 2.3755633261683783e6, 2.3835430259738886e6, 2.39782179382399e6, 2.3979977309811884e6, 2.4005660724804327e6, 2.390757036500042e6, 2.3808995681758015e6, 2.3881643687938936e6, 2.3770606593277813e6, 2.3706294417613964e6, 2.3500342558021443e6, 2.376669950008189e6, 2.433826208610241e6, 2.4338815284691434e6], [0.0016459319014481277, 0.0022332305509793313, 0.0027618678480346355, 0.0023579743958355793, 0.0025961383513805536, 0.0029863343469596457, 0.002894692071057896, 0.002890952418249696, 0.0022990559032062137, 0.0018090015742616287, 0.002072485265079655, 0.0015187028779387833, 0.0011831208776606655, 0.00038763782683536355, 0.0016159469757060841, 0.003966575655707561, 0.003719443833638691], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 517.2366270331287 257.82116545356905 … 136.77330517139748 504.0793583840634; … ; 507.5800641706069 264.31136200122404 … 141.97481024600646 523.2235746579889; 491.71447904184026 257.9959499294536 … 141.8194483446368 522.1654118686542], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 517.6785794852325 258.0414605570502 … 136.89017102049564 504.510068617735; … ; 501.2642802217557 261.02255383978905 … 140.20822741309334 516.7131395803533; 486.1656840253053 255.08457208260927 … 140.2190743842117 516.2729906391027]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 71901.86769819552, 71820.55118132733, 72997.48559602383, 74307.85655658951, 74996.29960883454, 74889.42172473362, 74808.49457106319, 74987.2311334544, 75821.7113709048, 75281.57993405679, 75487.61534909082, 75941.99128104965, 76357.6349776494, 76291.75675935314, 76858.66839669425, 77224.38833144122], [72421.99999999997, 71271.19545083112, 71536.70947031405, 72283.0616639615, 72566.7287274705, 72758.54919195773, 72454.6696115579, 72441.8599889407, 72277.6524716966, 72453.9608285206, 71716.167587983, 71290.23395233706, 72015.37047503694, 71755.38037165492, 71310.40420766764, 71208.77978942227, 71537.75133482339], [64900.92049553802, 64447.380243785694, 64377.726558185284, 65428.621163645104, 66607.13751035527, 67223.92926268604, 67120.22862161552, 67053.38784747258, 67201.54272434111, 67965.07840394233, 67478.43180532358, 67660.72301814119, 68067.065131312, 68403.18204969491, 68344.41178426823, 68864.47268082628, 69187.90632586017], [64900.92049553802, 63882.093479529394, 64123.29960438364, 64788.2734527687, 65046.4473476816, 65218.09195449501, 64938.06304055399, 64932.09310095748, 64773.29109468674, 64946.293605767816, 64282.58450691216, 63898.54482806441, 64547.621544960755, 64280.361067287115, 63881.968861255176, 63802.23822163641, 64093.05848915703], [40512.94792630534, 40090.124600918745, 39950.418535553465, 40623.53917160087, 41298.40369403628, 41679.1112893364, 41680.57282971883, 41618.04271967808, 41823.227607729874, 42134.37211133598, 41875.393323420576, 41991.35447331082, 42270.335205099924, 42745.04132627212, 42664.11179544311, 42820.552644626325, 43057.035783282845], [40512.94792630534, 39738.48242821042, 39792.53064738893, 40225.957962435954, 40330.72943586251, 40435.48394839783, 40325.483413371854, 40301.418187860036, 40311.99264973994, 40262.90215945335, 39892.13201988789, 39656.48498146522, 40084.725177056105, 40168.69695173977, 39878.4244396257, 39672.80942202362, 39886.40875806072], [14866.888022051655, 14857.288748732777, 15253.09169237714, 15604.11241437353, 15992.561289424957, 15932.07827152663, 15999.809067262935, 15757.459255765816, 16152.15897905451, 16019.416828401452, 16030.801768417077, 16106.478129052966, 15831.296579295456, 16189.106475569106, 16409.80916340709, 16678.182419432727, 16664.50096696168], [14866.888022051655, 14726.971136897775, 15192.810010142803, 15451.395491915204, 15617.835186288006, 15456.694619536118, 15479.634548088337, 15258.957739127827, 15568.519009296495, 15307.887126194953, 15271.566659474875, 15210.900339855752, 15012.73102042878, 15213.350876722547, 15338.355991780007, 15452.167516920974, 15437.363144617606], [15944.236265986645, 16036.868765407926, 15934.520095218117, 15970.295558676473, 16247.114337604637, 16677.560842636947, 16187.297727943793, 16564.43210186297, 16311.53078556358, 16575.231946733635, 16294.906539308911, 16427.203890314966, 17633.743046874588, 16814.779978714818, 16397.233853772093, 16955.381655530084, 17094.569888084447], [15944.236265986645, 15896.20471329428, 15871.545342537876, 15813.994814122472, 15866.423731968085, 16179.933374045118, 15661.02770953479, 16040.401267259705, 15722.132096091877, 15839.014768705441, 15523.163159264803, 15513.79260170787, 16721.981040536222, 15801.313563359292, 15326.601767585946, 15708.989808704282, 15835.762720203364], [15944.236265986645, 15815.82870318226, 15730.550119604808, 15995.959354489558, 16282.896908090512, 16439.30642387562, 16435.091020514104, 16400.912054874272, 16455.431797837322, 16605.81805031201, 16502.766792491442, 16528.91197919907, 16622.8978176153, 16765.12457214173, 16718.879329276326, 16815.52958198412, 16864.493753015144], [15944.236265986645, 15677.103457907218, 15668.381475843547, 15839.407439230612, 15901.367871201097, 15948.788025033724, 15900.76492116841, 15882.054325281242, 15860.833408278435, 15868.242338361893, 15721.178939023634, 15609.845357088492, 15763.402098240347, 15754.651005159261, 15627.24589801439, 15579.418275447573, 15622.628894293033], [3173.2320350842083, 3134.0707330383752, 3105.964568134514, 3164.769429620218, 3213.724568118429, 3246.428500742899, 3265.4811784405347, 3251.6676723881274, 3265.137306894559, 3272.293038398993, 3259.1806943292436, 3259.8567029490923, 3279.9321659882517, 3348.111433338934, 3329.5575678297128, 3349.978317325085, 3338.5113100068993], [3173.2320350842083, 3106.5808847787875, 3093.6894980763573, 3133.795937841435, 3138.4229036650463, 3149.5610983671927, 3159.3161551750686, 3148.798216089511, 3147.1552686095897, 3126.9485657452533, 3104.822575174124, 3078.597011306089, 3110.3415394056988, 3146.312867026903, 3112.1592434103572, 3103.721067173753, 3092.670555041891], [34195.564496956766, 35659.258542963384, 35003.75994704381, 34682.22176856191, 35126.19534761163, 36139.49754052092, 36466.44647403853, 36145.679813798204, 35679.72693317137, 36924.96388676708, 37266.30264149816, 37583.14918322682, 37443.99770824687, 38935.347673094904, 39591.95952244667, 39504.186267951256, 39921.056137189524], [34195.564496956766, 35346.48078844056, 34865.42172836063, 34342.78803264285, 34303.14380118164, 35061.1619945163, 35280.87505997392, 35002.17844631113, 34390.48041354173, 35284.87868018477, 35501.33256984309, 35493.39167156636, 35507.93601192705, 36588.622513037895, 37006.86360945747, 36600.229478290734, 36981.355873077846], [33097.63671130043, 34741.67295982698, 34321.23908886512, 33882.6833171888, 34356.41811208825, 35431.9483351863, 35444.704374230656, 35277.11932004211, 34979.41317206519, 35832.27340233345, 36185.82433858826, 36620.5703268146, 37237.38125846691, 38326.64047600179, 38771.35757571576, 39099.63459084631, 39512.77444407656], [33097.63671130043, 34436.94361601157, 34185.598258116195, 33551.07463715489, 33551.40342783006, 34374.72474453757, 34292.35111941117, 34161.09565161816, 33715.4716969738, 34240.721906017934, 34472.02682048793, 34584.33564225801, 35312.00277491099, 36016.603533204834, 36239.84160078147, 36225.416436517466, 36603.13916113551], [29576.14777688488, 29369.463905436274, 29216.039517878482, 29676.118369659827, 30198.799560603235, 30481.83258977614, 30462.374107187745, 30409.282941322475, 30520.51080197102, 30820.089574171103, 30647.274453153088, 30707.124678854023, 30877.689979939874, 31085.698599336305, 31019.445161996002, 31159.159103368023, 31296.16362138958], [34346.71094688275, 34106.689452414335, 34178.54383351642, 34750.097786272854, 35389.71765397781, 35714.0807969512, 35628.4815303156, 35614.4006876807, 35652.79589857345, 36106.100545134505, 35799.52938397173, 35916.131836620785, 36143.26351852589, 36263.129692173985, 36262.29550416434, 36627.50585042928, 36806.25913630353], [28335.329312139664, 28137.31652138737, 28196.5949062725, 28668.11514866353, 29195.788369369744, 29463.38128349435, 29392.763651059366, 29381.147245818436, 29412.82250422491, 29786.789503827713, 29533.87460834947, 29630.06923087166, 29817.44819166807, 29916.33531681252, 29915.64712888099, 30216.93814465311, 30364.405924863764], [978.0617717704339, 971.2268859350532, 983.1432067904728, 1002.4050077124768, 1018.6202957742898, 1028.015875958638, 1029.372984112192, 1029.7042184693196, 1028.236023796683, 1038.8882846367, 1031.6279681987353, 1037.466502666425, 1046.1116328462654, 1054.3537581846522, 1062.6711181079309, 1077.8077270289416, 1085.4835681670756], [0.0019383188997990075, 0.001526346066129669, 0.0038502018716961572, 0.005624845415248991, 0.002952686997649945, -0.0003656973110821582, 0.00023877584150922004, -0.001520214415796639, -0.0004862799432907572, 0.005562779394255646, 0.004730381141074158, 0.0039254540469757515, 0.006509580224196343, 0.007659693739261897, 0.0007873712392838517, 0.002513171195039021, 0.001306972991066635], [2.3548476e6, 2.382130634326662e6, 2.3772743181880987e6, 2.3661207900701915e6, 2.3775266931583313e6, 2.412884924424644e6, 2.4172102771837297e6, 2.4126367951688482e6, 2.4196698374948674e6, 2.4518461404008144e6, 2.454834010799753e6, 2.4527961188362483e6, 2.441501299970423e6, 2.454885889941904e6, 2.4628209360139794e6, 2.4512663083296022e6, 2.447895529491664e6], [0.0016459319014481277, 0.0026986935243668688, 0.002386734463206816, 0.0018776379893335005, 0.0022805336731557754, 0.003566101075390479, 0.0034838914683375114, 0.0030049802355439476, 0.0030580805225057053, 0.0042673073867057505, 0.004179801599836283, 0.003878785254753892, 0.003288073528998919, 0.0037596424135297127, 0.003817306426709384, 0.0031309038742868374, 0.002793849243720557], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 514.4629712314082 256.438612219726 … 136.03986509468598 501.37625778399666; … ; 500.61128803117685 262.23046587806886 … 144.51058396254732 534.3236468868454; 501.0079265687584 261.4265293733411 … 145.2598615395863 538.1669218406329], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 509.95046649906624 254.18931437730453 … 134.84661977023154 496.9785404312428; … ; 463.81130083492707 242.9538774001473 … 133.8875960941376 495.04546072883704; 464.1147860417431 242.1756449577685 … 134.56323938947878 498.53747324001654]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 73608.75694117618, 74057.91917810784, 74402.61298720409, 74631.50806531993, 74978.34237375992, 75757.65736863251, 75381.45824925676, 76062.4796434014, 75613.7845465823, 76770.30437807008, 77184.52170214492, 77759.94737424426, 77801.16359099779, 77477.61101129671, 78605.08487590979, 81011.02877612422], [72421.99999999997, 73393.2719645476, 73254.81288419224, 72943.81352757663, 73205.19455743567, 73641.23193309295, 74017.84064196337, 73352.91129726755, 73740.37850928814, 73323.37568647385, 74051.83230119727, 74470.0796840983, 74788.9632285457, 74444.57291300087, 74231.37355137547, 74544.32097186234, 75936.2772395915], [64900.92049553802, 65982.1262986847, 66366.91612260381, 66670.97269723586, 66886.14899977234, 67208.85063085004, 67915.52635983563, 67571.38987323809, 68200.10124009644, 67790.73329855148, 68840.16571588902, 69222.48065682776, 69760.50726058795, 69792.03418698777, 69551.20317631282, 70580.58168729141, 72798.83140271793], [64900.92049553802, 65788.96780050847, 65647.21337322402, 65363.766202212755, 65607.86024101864, 66010.29578102735, 66355.80853241628, 65753.01516740806, 66118.02959085848, 65737.29162635747, 66402.50352629634, 66788.04942703508, 67095.15873521403, 66780.98293096785, 66637.07458888619, 66934.36619251923, 68238.51428170376], [40512.94792630534, 41073.398264181786, 41419.42577825744, 41631.605706284034, 41680.973662955425, 41761.51528435078, 42160.2233855086, 41974.00648411982, 42199.6416762675, 41996.78553653071, 42481.63664947068, 42615.98556692894, 42754.40880617178, 42840.4474436674, 42296.71149544347, 42800.3852747654, 43661.949565719355], [40512.94792630534, 40953.1584906439, 40970.26109874642, 40815.34184847841, 40884.39139765789, 41016.77011745415, 41191.99041218302, 40844.468201183045, 40911.33453383605, 40724.66550886977, 40977.34219672608, 41117.257333440066, 41120.88570062601, 40992.17371749815, 40524.51992299081, 40589.303639557394, 40926.846099017705], [14866.888022051655, 15081.227223042377, 15180.624714772966, 15358.61537517702, 15417.868821548858, 15570.049788037653, 15734.701171151928, 15735.33174491134, 15807.343121486667, 15944.801487393619, 16276.623720110763, 16432.55753664667, 16358.866175888832, 16664.909753866476, 16541.644570583754, 16866.18189767263, 17491.633619436674], [14866.888022051655, 15037.077884964521, 15016.001465979209, 15057.481598950792, 15123.21157646524, 15292.384592006649, 15373.345009444049, 15311.887306570385, 15324.762885320151, 15461.819253156955, 15700.260926614696, 15854.653785249804, 15733.8409065653, 15945.93232284047, 15848.565556494104, 15994.869529556894, 16395.910037996815], [15944.236265986645, 16580.66463003527, 16665.796731545513, 16068.674424450022, 16208.603328364847, 16424.03695689754, 16644.355256060688, 16457.466076778146, 16821.166335900947, 16597.703179682012, 16769.887035251217, 16820.334073922804, 17343.31791505656, 16581.45177342114, 16790.90265497196, 17061.29006133745, 17721.361072053263], [15944.236265986645, 16532.125783860432, 16485.06783183077, 15753.61864043677, 15898.834030242793, 16131.142360968819, 16262.108382477896, 16014.588697872527, 16307.635228200674, 16094.943971845047, 16176.057559036903, 16228.792913066349, 16680.679573604837, 15866.074986218915, 16087.379966636714, 16179.89834288903, 16611.246737147332], [15944.236265986645, 16201.863696444872, 16313.159754523307, 16375.737493097271, 16412.610871406407, 16479.138142496056, 16651.190412816257, 16566.850788046948, 16677.392116073657, 16595.446845618488, 16789.865835525, 16876.4942620663, 16942.177605434554, 17000.248473828084, 16879.394607308717, 17081.46779600968, 17584.61949007812], [15944.236265986645, 16154.433766025624, 16136.254955983115, 16054.66117538729, 16098.942701053395, 16185.260911205918, 16268.786566057872, 16121.029820256317, 16168.250272048223, 16092.755984149335, 16195.328900728702, 16282.978047519335, 16294.86568253545, 16266.803459421033, 16172.164191194732, 16199.033689314343, 16483.07102038486], [3173.2320350842083, 3218.1031012099543, 3244.233152162656, 3260.583512232292, 3264.5286473213264, 3266.527132348963, 3303.130551042859, 3278.3798985111616, 3279.8605707357738, 3275.2759563176996, 3289.1576084487406, 3304.458525291663, 3288.353419121227, 3328.9413122671235, 3259.515654458875, 3262.4269710561975, 3334.6699087202155], [3173.2320350842083, 3208.6823080819495, 3209.0517145480585, 3196.6538023102344, 3202.1388949599755, 3208.2742103036453, 3227.2723212257456, 3190.157307637458, 3179.730151812465, 3176.064931309039, 3172.687012331681, 3188.246610387812, 3162.7148840712566, 3185.320152112034, 3122.9450803202253, 3093.888947026711, 3125.7771011757854], [34195.564496956766, 33533.69657755209, 35175.04768945572, 35833.98551198656, 35961.6359121415, 36284.93859641361, 35698.8284187737, 36149.58643080142, 37185.91961362557, 37763.05720785537, 38987.1298340216, 40262.334744172906, 40447.396244082986, 40692.67676833092, 40224.153184937786, 40436.50074825199, 40241.171505075], [34195.564496956766, 33435.52880345072, 34793.598919335076, 35131.39461359731, 35274.35826766176, 35637.85880376666, 34878.984973730934, 35176.785757094716, 36050.67571265526, 36619.18058096373, 37606.57748803559, 38846.38021385931, 38902.01745932623, 38937.064728627054, 38538.799814355494, 38347.53814610343, 37720.35489513412], [33097.63671130043, 32660.22975363452, 34382.975735923304, 34490.26803069356, 34637.5736596912, 35062.1982519391, 34480.45086286223, 34934.932487353915, 35951.59110387924, 36688.562864879364, 37744.97286078424, 38946.69021952641, 39144.04176695626, 38978.32214828839, 38375.80089464102, 38559.273106117624, 38105.08698616004], [33097.63671130043, 32564.618998371123, 34010.11643169877, 33814.02317388673, 33975.60071459254, 34436.92394110276, 33688.58813587225, 33994.81866545304, 34854.029850724124, 35577.23362836165, 36408.40586921612, 37577.00456151721, 37648.46041157705, 37296.67284218407, 36767.89170910228, 36567.288686244334, 35718.08052970434], [29576.14777688488, 30068.866560639086, 30250.130393365584, 30376.939143432865, 30448.626081585568, 30581.047882589057, 30900.86131261693, 30740.2760048666, 30991.399118347683, 30841.071649331032, 31235.61694424854, 31417.19255144401, 31586.50448138109, 31666.16032422602, 31525.901364252866, 31975.73196155765, 32921.614798729686], [34346.71094688275, 34918.90411319269, 35119.29627030725, 35283.04848011929, 35422.42280157481, 35610.2114328863, 35984.289771973214, 35810.11647142185, 36174.84384188902, 35919.71580578733, 36550.463128962205, 36740.68302816919, 37093.03018607427, 37043.45896171044, 36949.63764465303, 37516.655816491526, 38755.17970944753], [28335.329312139664, 28807.37689255055, 28972.696295977337, 29107.788497317673, 29222.76944271899, 29377.691196872278, 29686.298124125322, 29542.608737501447, 29843.50130818516, 29633.02593163802, 30153.37948579785, 30310.30698590368, 30600.98613613955, 30560.09089674014, 30482.690242004035, 30950.468558532175, 31972.22526828335], [978.0617717704339, 994.3556248529462, 997.4894589309863, 1010.9850736838232, 1015.1001166119497, 1017.5913153747221, 1030.3752752454027, 1020.9973969496242, 1033.8582798598397, 1029.9458434331675, 1054.0856426783491, 1064.6050772145588, 1080.9725931326036, 1082.4149010514288, 1075.6641674068762, 1088.1939092422515, 1122.0368945406403], [0.0019383188997990075, 0.005085238735853315, 0.0033748746847959143, 0.006873678803828609, 0.00927629443030864, 0.001908356445978976, 0.004407657211715099, 0.005741475650266725, 0.0019460731615537075, 0.00581933950211555, 0.006537620134837052, 0.0034149697282523928, 0.0017275455896621494, 0.0053016701805155275, -0.0013297842173580765, 0.006492105246950874, 0.005912496647696663], [2.3548476e6, 2.3275026350756623e6, 2.3477214100884483e6, 2.3338650900771874e6, 2.334435278445459e6, 2.336240586945823e6, 2.3327660260171094e6, 2.32778111381578e6, 2.3721639983948492e6, 2.38373465592792e6, 2.402866173685753e6, 2.441221633872967e6, 2.4375242418109677e6, 2.447867968905752e6, 2.4549716260179766e6, 2.458713886278471e6, 2.456864864770369e6], [0.0016459319014481277, 0.000498599344962388, 0.0013935757227872703, 0.0008676192094034866, 0.0010402897430152162, 0.001083132363446095, 0.0009578064826905252, 0.0008084662814104546, 0.00266866144894064, 0.0030844027265068017, 0.0037955031048748, 0.005162935321071019, 0.004671378142513379, 0.004864598345200575, 0.004759379176233139, 0.004705944359293608, 0.004419259276380415], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 526.7143616293157 262.54542597909466 … 139.27951029784688 513.3160019713214; … ; 532.966843420632 273.83586296038663 … 146.4527321019395 538.3336209591919; 550.7587158776611 283.5718740097093 … 150.55329934421377 553.1945125172704], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 525.1724386758237 261.77684086324683 … 138.87177834762048 511.81330186763336; … ; 505.4336052944573 259.6894144233912 … 138.88693697421297 510.5231333835185; 516.2576895126854 265.80815930210963 … 141.12223052902203 518.540901215079]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 73072.61093220949, 73009.8691296898, 74023.00595573895, 74049.2843294804, 73663.98407823533, 73326.54182359765, 73525.78694357106, 74388.01984021267, 75161.24837582445, 75849.58415229172, 76167.22305956823, 77212.17907273296, 78947.5325951186, 78669.95060892029, 78707.4165495027, 80833.7588180792], [72421.99999999997, 72859.5444697429, 72381.08105486799, 73048.28165325712, 72996.13400862408, 72428.1790580427, 71567.93064248572, 71113.30827102589, 72056.47224330404, 72392.11620559669, 72787.4423173705, 72573.09989354515, 73040.39384234622, 74140.88902002663, 73735.9974199929, 73458.4440803097, 74358.3709880583], [64900.92049553802, 65494.169243441735, 65423.66060056341, 66349.06009106274, 66357.84273496558, 65998.82188602995, 65670.00741007636, 65840.02621829216, 66630.90652997956, 67316.52168655, 67948.78948185818, 68235.00538822045, 69177.97647022903, 70760.56376453073, 70492.56592212366, 70528.82771545422, 72477.00202158155], [64900.92049553802, 65303.20014058821, 64860.20776758066, 65475.385204686776, 65414.082319176654, 64891.6095022016, 64095.02505821672, 63679.7275577236, 64542.49054130936, 64836.409264015805, 65205.61253197684, 65015.18190315372, 65440.2803713443, 66452.37580718225, 66071.47479730351, 65825.28272322293, 66671.05282771599], [40512.94792630534, 40828.730905574565, 40872.93556623965, 41317.66022715688, 41429.16381618802, 41299.14851340703, 41276.827857302036, 41453.54561962224, 41756.12294770518, 42224.18310732809, 42450.245650694014, 42619.94297180315, 43093.94619761963, 43875.606520678106, 43859.356196386594, 43839.002342301836, 44684.67242869631], [40512.94792630534, 40709.6817413245, 40520.92268396255, 40773.595216217276, 40839.9462759929, 40606.30389332321, 40286.874026323414, 40093.399759701504, 40447.358601993816, 40668.53646320317, 40736.476556737165, 40608.824301377965, 40765.57403631905, 41204.28298144288, 41108.62343636216, 40915.3932790199, 41105.09641659415], [14866.888022051655, 14968.31319117801, 15040.068465811688, 15287.706487826792, 15363.103682953844, 15273.002460931948, 15159.858201046081, 15455.50662201816, 15724.438706007591, 16055.397659441323, 16368.299555744716, 16594.762629129986, 17083.767772058345, 17308.692791930243, 17482.056105796903, 17581.13630170247, 18086.04306774385], [14866.888022051655, 14924.668308368295, 14910.53781730431, 15086.400166224528, 15144.605182670446, 15016.778834816534, 14796.275036295618, 14948.390933101919, 15231.586801137972, 15463.875843009388, 15707.490991052598, 15811.701117837081, 16160.729322337958, 16254.869901375252, 16385.631793787456, 16408.655937457177, 16637.215933060263], [15944.236265986645, 16500.71293677496, 15938.245239727812, 16590.48149823036, 16818.861294296315, 16887.13210305501, 16369.961993849729, 16084.12394994369, 17045.708428029524, 15782.705911342127, 16840.618380848642, 16564.086950111345, 16777.272781788943, 17866.378407900676, 16949.074811214574, 16201.760190008621, 17092.16894201214], [15944.236265986645, 16452.599854612392, 15800.979159678733, 16372.020422549813, 16579.658588572496, 16603.829443135794, 15977.35656775425, 15556.382492030569, 16511.44389715016, 15201.230754705433, 16160.741719080772, 15782.47294030485, 15870.79430083188, 16778.60137217089, 15886.077554105861, 15121.269978055892, 15722.958548062092], [15944.236265986645, 16085.624513127348, 16084.3985420295, 16292.326263511297, 16313.903298339126, 16222.70313942188, 16150.577736085059, 16189.277106588199, 16362.730305116791, 16532.233990176577, 16666.94182733127, 16739.0189604583, 16949.18826442653, 17312.62254861109, 17289.054209742946, 17260.166697439046, 17673.119493232763], [15944.236265986645, 16038.721753422255, 15945.873735527699, 16077.791253105193, 16081.882251159028, 15950.547102361765, 15763.233864660917, 15658.08543401841, 15849.872393268804, 15923.144306633527, 15994.076703546294, 15949.150387000782, 16033.421165016323, 16258.560398650749, 16204.734421927717, 16109.0916935789, 16257.370621000588], [3173.2320350842083, 3197.8826117634285, 3201.8063590346055, 3236.3893718456525, 3245.018281636668, 3234.812270951795, 3233.06397504587, 3248.969921452892, 3271.3376863711187, 3311.3857458167017, 3325.690380045956, 3341.7984805877727, 3367.497461001693, 3419.0816871464003, 3436.52356830832, 3406.322914066392, 3444.3495601352174], [3173.2320350842083, 3188.5581668478926, 3174.2312150102575, 3193.773061790402, 3198.8666938740644, 3180.5442688359008, 3155.524487782935, 3142.3669054353813, 3168.803978151453, 3189.385845669696, 3191.4281325129045, 3184.108140139524, 3185.5510849262523, 3210.9142310649036, 3220.9946873640856, 3179.156326965028, 3168.4314344640775], [34195.564496956766, 33320.49031853224, 34099.75081190092, 33232.59800209199, 33597.178307938775, 33356.084799766315, 34164.754344962785, 34021.25999889982, 33949.328648840645, 34073.83159013328, 34285.29023147456, 33442.959024728814, 33032.4273572775, 32804.54932596123, 33617.39620614564, 34357.49906904222, 35846.700258004195], [34195.564496956766, 33223.33382023212, 33806.071109135875, 32794.99592839868, 33119.34952896726, 32796.494959964286, 33345.371383530684, 32904.97729629583, 32885.25306519305, 32818.46469218921, 32901.15051978643, 31864.877155088732, 31247.68051775235, 30807.276313515373, 31509.009739255725, 32066.20843049987, 32975.11182773602], [33097.63671130043, 32545.63641985057, 32941.130953990105, 32405.44025956724, 33159.02277189644, 33151.38379892525, 33644.86057356281, 33488.64924691334, 34087.578890370365, 32974.86989242014, 34094.86966647062, 33054.528516205224, 32775.235036011385, 32907.69445135141, 33237.932710623936, 33271.98135355236, 34875.82587837763], [33097.63671130043, 32450.739254794655, 32657.429715213428, 31978.730080133206, 32687.425567578837, 32595.22807319732, 32837.9463714181, 32389.842210104267, 33019.17012217097, 31759.99154751032, 32718.417469286967, 31494.77562106356, 31004.384334894858, 30904.141548477553, 31153.345103518714, 31053.08354472313, 32082.011737394456], [29576.14777688488, 29846.498528499484, 29824.903834383917, 30215.54472275874, 30231.59931159332, 30049.098617150736, 29896.799092961428, 29961.418406045093, 30284.03742297171, 30583.392014192214, 30814.357515884927, 30930.102771236852, 31308.116604539126, 31983.665005369374, 31930.188114702676, 31912.958533396315, 32759.165616890434], [34346.71094688275, 34660.668639751675, 34616.03849157741, 35134.48257584895, 35130.40299687151, 34955.58850520115, 34778.78796647118, 34871.429513928706, 35327.21437613723, 35703.857447218805, 36099.21594387428, 36264.09385922233, 36815.64536868361, 37699.14535466716, 37494.21727688688, 37548.00026587128, 38621.6720622779], [28335.329312139664, 28594.337944182436, 28557.51899089974, 28985.224685354253, 28981.8591166988, 28837.640760604263, 28691.783956579417, 28768.21132568776, 29144.224452130624, 29454.947230469916, 29781.10984954603, 29917.13073477464, 30372.14937330927, 31101.018669959838, 30931.957225381102, 30976.327083869764, 31862.08420836961], [978.0617717704339, 987.0020751905549, 982.7182746021709, 999.0327924549453, 995.8404265006549, 994.1347636779329, 994.420350643791, 1007.1782983182264, 1019.6547308705663, 1029.2722251390278, 1035.2160220990743, 1040.8087577612064, 1054.2144970062564, 1077.7534044942495, 1068.1605305340283, 1067.8689161866935, 1096.164342413155], [0.0019383188997990075, 0.0033197764489889536, 0.0027264992699984614, 0.004771960834863087, 0.006652043646639072, 0.0019458464254871188, 0.0022076668629631424, 0.00764475072398918, 0.003975224983806092, 0.0029942193648979654, 0.0009823468546548142, 0.0029182806308103437, 0.008953340208487814, 0.006207881944523486, 0.00445095922508254, 0.005283295926441278, 0.006847820805378824], [2.3548476e6, 2.3444538257416612e6, 2.3613031957956683e6, 2.329418985638733e6, 2.355633910813384e6, 2.3451084322800576e6, 2.369938950517641e6, 2.354584884760252e6, 2.3769002711548363e6, 2.3781732791175144e6, 2.3624885267453785e6, 2.3566940584784052e6, 2.358954180238727e6, 2.3490621347017395e6, 2.3503040506259785e6, 2.3532484392326367e6, 2.378613380404704e6], [0.0016459319014481277, 0.0011661218706041862, 0.001849261574684348, 0.0004937274244071171, 0.0017167541221147732, 0.0011948174861844216, 0.002198479296668388, 0.0015739089134017398, 0.0024808092695846025, 0.0024185377134605312, 0.001613316053125203, 0.0013195989166215288, 0.0015216957646204759, 0.0011390357259265817, 0.0012088515978052317, 0.0013638200595747943, 0.0024801875868136047], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 522.819155407992 260.60382603203703 … 138.24949772454832 509.51988052477714; … ; 557.27903276092 271.86631831223104 … 147.24493010235105 549.369736387807; 572.98112129629 276.7326768689779 … 150.48517793381313 561.7862425433498], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 521.2947097021184 259.84395260464004 … 137.8463872972327 508.0342130891287; … ; 520.1142720705369 253.73564038273418 … 137.42521274637113 512.7324441461823; 527.0810538749063 254.56432253079413 … 138.43019120501106 516.7829685248128])])

Note that this will use the number of threads specified when activating the Julia environment. To discover the number of threads available, you can use the command

Threads.nthreads()
2

To activate Julia with a specific number of threads, say 8, you can use the command julia -t 8 in the terminal.

We can then plot the results of the monte-carlo repetitions using the function plot_data_vector

ps = Bit.plot_data_vector(data_vector)
+plot(ps..., layout = (3, 3))
Example block output diff --git a/dev/examples/change_expectations-f457dcfe.svg b/dev/examples/change_expectations-8099abbf.svg similarity index 86% rename from dev/examples/change_expectations-f457dcfe.svg rename to dev/examples/change_expectations-8099abbf.svg index 6f8381d..b8147f6 100644 --- a/dev/examples/change_expectations-f457dcfe.svg +++ b/dev/examples/change_expectations-8099abbf.svg @@ -1,86 +1,86 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/change_expectations-05288ea4.svg b/dev/examples/change_expectations-f56ccf2d.svg similarity index 86% rename from dev/examples/change_expectations-05288ea4.svg rename to dev/examples/change_expectations-f56ccf2d.svg index 02010bd..c60984f 100644 --- a/dev/examples/change_expectations-05288ea4.svg +++ b/dev/examples/change_expectations-f56ccf2d.svg @@ -1,284 +1,284 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/change_expectations.html b/dev/examples/change_expectations.html index 8d916a2..2384ebe 100644 --- a/dev/examples/change_expectations.html +++ b/dev/examples/change_expectations.html @@ -24,18 +24,18 @@ ⋮ => ⋮

Set the seed, initialise the model and run one simulation

Random.seed!(1234)
 T = 40
 model = Bit.init_model(par, init, T)
-data = Bit.run_one_sim!(model)
BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 72317.15814504564, 74007.03073675784, 74929.79038171521, 76964.05078463048, 76745.71570794475, 76898.39958485053, 77773.55063023673, 77938.7980076462, 79522.71435941223  …  90038.56480945727, 91038.38236847312, 92000.73066102534, 93060.76082892239, 94134.41056442978, 94325.1147338447, 94283.18838732237, 93352.76607408191, 93199.48796444442, 91925.98868787859], [72421.99999999997, 72374.72225438412, 73689.76049724416, 74305.22430514175, 75338.94698073059, 74975.39159216381, 74281.602508388, 74860.96833101544, 74784.84681695756, 75642.06995990749  …  80796.9984019707, 81114.42382754607, 82038.37286302527, 82120.71585029642, 83254.3217215746, 83441.49422817545, 83091.8778362033, 82672.52265299296, 82240.87724671683, 81075.08678412552], [64900.920495538034, 64822.27522027363, 66507.22467346229, 67326.15807204095, 69162.71255573993, 68921.04688798341, 69012.68796952805, 69805.04764599986, 69941.612037235, 71444.42169967119  …  80729.9608028636, 81667.41714613243, 82523.57135638037, 83457.93049912958, 84407.32016311774, 84565.50388119344, 84501.78673524137, 83653.85932905963, 83510.80007434572, 82301.49447286894], [64900.920495538034, 64873.873438926865, 66222.10631522692, 66764.97093694282, 67702.33480643346, 67331.21753705278, 66664.23597192549, 67190.88197499096, 67111.28316121259, 67957.99147431925  …  72443.83034962598, 72764.9735743376, 73587.45379824738, 73646.77587981599, 74651.49190801354, 74807.9875006343, 74471.51778004257, 74083.24221377372, 73691.40762135427, 72586.66348976598], [40512.94792630534, 40340.45199288648, 40360.79564537339, 40839.441114257155, 41848.25388312623, 42027.44125504281, 42330.19840504895, 42746.157297272686, 42916.46741321401, 43252.61010376722  …  50090.994460779526, 50511.30221609159, 51072.85995208717, 51759.51856005769, 52508.21191930011, 52731.487795817935, 52856.64427184138, 52356.60560381333, 52268.32174413649, 51872.064990111634], [40512.94792630534, 40372.56279824504, 40187.7677698609, 40499.030052431845, 40964.62372230807, 41057.97746032752, 40889.73228312157, 41145.3341370226, 41179.76570677022, 41141.917573774634  …  44949.65027447466, 45005.14035337464, 45542.4027377361, 45674.76859589158, 46439.2940046292, 46647.11139735395, 46582.61885061636, 46366.6246309204, 46122.491939991574, 45749.11002615789], [14866.888022051655, 14850.382665230743, 14890.943984962865, 15128.956219174526, 15657.508267428098, 15715.438807680437, 15916.591347812231, 16254.186152488654, 16247.012527034607, 16404.14523402758  …  18515.96877594203, 18819.686376027075, 18921.445917458117, 19522.699168524727, 19276.522908860927, 18950.507991959363, 19223.311320634293, 19390.178792543826, 19643.46544890804, 19738.93743110351], [14866.888022051655, 14862.20349825829, 14827.106085811114, 15002.85106419776, 15326.898378972564, 15352.924495908437, 15374.961223764625, 15645.474649768852, 15589.544285097563, 15603.636161319386  …  16615.488071879958, 16768.18037943525, 16872.525078125243, 17227.64800941723, 17048.535496264416, 16763.920273978732, 16941.52545308095, 17171.799646515494, 17333.741482572095, 17408.96223250698], [15944.236265986641, 15914.498524222605, 18599.097522015, 18260.897855073094, 18343.328712272152, 17616.920338029195, 17012.865711983977, 17766.64969172317, 16993.68551599565, 18692.689566894845  …  20602.335841262724, 21506.383676686713, 22297.317793318845, 22063.05127003847, 23378.676015166428, 22668.043397565278, 22904.691603080275, 22638.45026829365, 22300.824781695243, 22242.78696250633], [15944.236265986641, 15927.16638834521, 18519.36266349139, 18108.68686836204, 17956.007450428508, 17210.54379137104, 16433.930161989254, 17101.297152341227, 16306.001640474431, 17780.501374328887  …  18487.71023356564, 19162.004806806657, 19882.83851476614, 19469.36117864029, 20676.56027929275, 20052.511122398893, 20185.929953287057, 20048.44496143729, 19678.642377001306, 19617.258503783774], [15944.236265986641, 15914.49852422261, 17735.705316788397, 18273.686210168453, 18706.9357760714, 16822.16523679847, 16898.348849526283, 17090.711369353707, 17138.275638969895, 19358.048786797033  …  21511.92651124939, 21620.594252402167, 21808.062745999687, 22154.004910153584, 22206.774999151934, 22362.098322259575, 20770.412806996843, 22553.078587417505, 20479.09825434436, 20217.694123602472], [15944.236265986641, 15927.166388345213, 17659.671845133296, 18121.368628033513, 18311.936913887326, 16434.121623892646, 16323.310225768033, 16450.67239707967, 16444.740631507026, 18413.391600294293  …  19303.94043520076, 19263.765457678892, 19446.562762294423, 19549.622482856084, 19640.108001872555, 19781.86725085638, 18304.987698088466, 19972.84042910285, 18071.11865573249, 17831.206702725576], [3173.2320350842083, 3158.969869559669, 2646.305773143414, 3063.661977187671, 3243.8251564438838, 3297.0394226937296, 3319.56566320649, 3349.0948366380126, 3359.855719644192, 3393.101805423237  …  3903.2329088798515, 3799.972683746809, 3913.7062651811766, 3977.2064222325243, 3966.063220781148, 4013.5965817735823, 4138.6990786365795, 4100.902715164161, 4093.987761154467, 4062.95040913858], [3173.2320350842083, 3161.4843943506366, 2634.9609852480858, 3038.1252803506445, 3175.331456499805, 3220.985295804264, 3206.60323785693, 3223.672835706336, 3223.8923584120307, 3227.5211707047924  …  3502.604731302418, 3385.7433181861793, 3489.9080860812046, 3509.6536453055046, 3507.6642151492483, 3550.49126584438, 3647.440059304555, 3631.7292660410712, 3612.607239249144, 3583.3615903654045], [34195.564496956766, 34190.11831748914, 33850.5350481832, 34220.71171766003, 34454.345136868, 34343.542448829954, 34538.34409472843, 33498.074127821026, 32841.6900558153, 32513.113538283313  …  39204.715400596164, 39627.75165109404, 39805.91470515528, 39975.194968443175, 39220.43946080486, 39492.75839497814, 39358.43976410293, 38900.15569955993, 39808.60309606364, 41388.040808865786], [34195.564496956766, 34217.33348688468, 33705.41684447357, 33935.47008617845, 33726.83811544719, 33551.32622076223, 33363.02915526447, 32243.587262144072, 31512.68460405552, 30926.49978925368  …  35180.73987824126, 35307.989434055795, 35495.50584296323, 35275.78753733398, 34687.327039632226, 34935.921159149126, 34686.63634143871, 34449.69162161431, 35127.81574331859, 36502.61529192764], [33097.63671130043, 32978.29335478363, 33694.34146377729, 33520.216524449395, 33339.38521506472, 32957.627141637575, 32899.599974723475, 32491.516639068606, 31060.05750441362, 31339.84408356041  …  38375.44966912361, 39426.741551426676, 40096.807706994055, 40259.70313814174, 40249.43973970221, 39517.68284647587, 40059.898572335835, 39932.62429012826, 40821.72710635898, 43315.841504707445], [33097.63671130043, 33004.543917349474, 33549.89286639347, 33240.81376602822, 32635.42068642653, 32197.38037620525, 31780.050315752353, 31274.724870261107, 29803.149419440422, 29810.48493876877  …  34436.59005619127, 35128.89114612664, 35754.89931056537, 35526.84947098674, 35597.39509824373, 34957.96972470515, 35304.832762219194, 35364.03820749405, 36021.81429616672, 38202.859270249624], [29576.147776884864, 29540.30815757877, 30292.943432081607, 30659.752129799897, 31470.43102338082, 31343.133705093118, 31387.02640205149, 31736.348121683142, 31793.391333121475, 32501.159588540366  …  36712.64006874383, 37172.31883509497, 37523.73899824494, 37944.49242007238, 38338.4724381756, 38501.540003118294, 38525.968110767135, 38119.66981037679, 37972.47865890076, 37372.14202925547], [34346.71094688274, 34305.090481160245, 35211.75075073366, 35650.37993372928, 36648.67733439142, 36539.43462458365, 36586.55960188689, 37018.22876469332, 37099.11053622822, 37874.48536845477  …  42796.25434483112, 43261.55611500028, 43748.390628986905, 44243.5975115139, 44784.66846081228, 44784.33623000669, 44699.7193514847, 44264.68958310676, 44269.65844257435, 43675.88723090872], [28335.329312139656, 28300.993284908534, 29048.96933863684, 29410.829382974618, 30234.40418298853, 30144.281196768952, 30183.158332713047, 30539.27650370566, 30606.002299818563, 31245.670570980295  …  35306.02863436434, 35689.893013915986, 36091.521463745135, 36500.05694522808, 36946.42933742925, 36946.15525385545, 36876.34807138626, 36517.457469994, 36521.556676743014, 36031.707653218364], [978.0617717704339, 976.8765815346229, 1002.5304906469918, 1016.0260085118274, 1043.6041979677732, 1038.4785583065247, 1039.1019655897114, 1050.470759623419, 1049.1101678853386, 1068.7767426760688  …  1221.0663892886755, 1233.5421960371611, 1251.4417291484717, 1269.8405675432552, 1284.1792641298557, 1279.6276480684621, 1276.0992729895574, 1269.4999355760315, 1268.6629728705543, 1253.4652127047414], [0.0019383188997990075, -0.003952295097048086, 0.004956948059654076, 0.007114732025734094, 0.0035391752262126097, -0.0003608070994732815, 0.0017794524471583806, 0.0002442073299642189, 9.177357428868937e-5, 0.0018888992087409129  …  0.005383681618703839, 0.004883052145744804, 0.006695749772000603, 0.007423681534728832, 0.008973362968299314, 0.001955892169429152, 0.004048164862117121, 0.005927619485927238, -0.00013296480254920695, 0.001287084675797745], [2.3548476e6, 2.3588626485893e6, 2.3686528332620063e6, 2.371686113212186e6, 2.357060225202081e6, 2.358614034745582e6, 2.368561899028043e6, 2.354970445382262e6, 2.348058708273566e6, 2.3396666060391376e6  …  2.422412850829009e6, 2.4211672653116006e6, 2.4173995616164864e6, 2.4207180069083306e6, 2.4051012465298795e6, 2.4192692432369734e6, 2.396204684560901e6, 2.3926891306042643e6, 2.4159713703492098e6, 2.428836735410318e6], [0.0016459319014481277, 0.0016010860580926674, 0.0020045362540946406, 0.002145362270381164, 0.0014611782662367872, 0.0014095631765680236, 0.0017608937880558586, 0.001071717309308333, 0.0007057985760453944, 0.000345348357775852  …  0.0024861636122284216, 0.0023635856605183176, 0.0021891933109979477, 0.0023325013108871184, 0.0017311912814285504, 0.0022273293558820887, 0.0012175977280879187, 0.001119175141481578, 0.0019903663875925886, 0.0023963289034279636], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 517.4556387808753 257.93033379374606 … 136.83121862733822 504.29279899424546; … ; 649.4452152787419 326.6898114613495 … 177.2921431793251 651.9444842923218; 646.2872705741617 315.4458886853067 … 175.7060468876137 647.9140835530511], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 517.8675309753778 258.13564509630606 … 136.94013561788393 504.69421363171887; … ; 573.081949211812 288.27687006602196 … 156.4457241393938 575.2873484113309; 569.9998150379971 278.21079942574687 … 154.96578501077704 571.4345997526095])

Now we can experiment with changing expectations of the agents in the model. We will change the function estimate_next_value to make the agents expect the last value of the time series (so to represent backward looking expectations)

import BeforeIT: estimate_next_value
+data = Bit.run!(model)
BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 72317.15814504564, 74007.03073675784, 74929.79038171521, 76964.05078463048, 76745.71570794475, 76898.39958485053, 77773.55063023673, 77938.7980076462, 79522.71435941223  …  90038.56480945727, 91038.38236847312, 92000.73066102534, 93060.76082892239, 94134.41056442978, 94325.1147338447, 94283.18838732237, 93352.76607408191, 93199.48796444442, 91925.98868787859], [72421.99999999997, 72374.72225438412, 73689.76049724416, 74305.22430514175, 75338.94698073059, 74975.39159216381, 74281.602508388, 74860.96833101544, 74784.84681695756, 75642.06995990749  …  80796.9984019707, 81114.42382754607, 82038.37286302527, 82120.71585029642, 83254.3217215746, 83441.49422817545, 83091.8778362033, 82672.52265299296, 82240.87724671683, 81075.08678412552], [64900.920495538034, 64822.27522027363, 66507.22467346229, 67326.15807204095, 69162.71255573993, 68921.04688798341, 69012.68796952805, 69805.04764599986, 69941.612037235, 71444.42169967119  …  80729.9608028636, 81667.41714613243, 82523.57135638037, 83457.93049912958, 84407.32016311774, 84565.50388119344, 84501.78673524137, 83653.85932905963, 83510.80007434572, 82301.49447286894], [64900.920495538034, 64873.873438926865, 66222.10631522692, 66764.97093694282, 67702.33480643346, 67331.21753705278, 66664.23597192549, 67190.88197499096, 67111.28316121259, 67957.99147431925  …  72443.83034962598, 72764.9735743376, 73587.45379824738, 73646.77587981599, 74651.49190801354, 74807.9875006343, 74471.51778004257, 74083.24221377372, 73691.40762135427, 72586.66348976598], [40512.94792630534, 40340.45199288648, 40360.79564537339, 40839.441114257155, 41848.25388312623, 42027.44125504281, 42330.19840504895, 42746.157297272686, 42916.46741321401, 43252.61010376722  …  50090.994460779526, 50511.30221609159, 51072.85995208717, 51759.51856005769, 52508.21191930011, 52731.487795817935, 52856.64427184138, 52356.60560381333, 52268.32174413649, 51872.064990111634], [40512.94792630534, 40372.56279824504, 40187.7677698609, 40499.030052431845, 40964.62372230807, 41057.97746032752, 40889.73228312157, 41145.3341370226, 41179.76570677022, 41141.917573774634  …  44949.65027447466, 45005.14035337464, 45542.4027377361, 45674.76859589158, 46439.2940046292, 46647.11139735395, 46582.61885061636, 46366.6246309204, 46122.491939991574, 45749.11002615789], [14866.888022051655, 14850.382665230743, 14890.943984962865, 15128.956219174526, 15657.508267428098, 15715.438807680437, 15916.591347812231, 16254.186152488654, 16247.012527034607, 16404.14523402758  …  18515.96877594203, 18819.686376027075, 18921.445917458117, 19522.699168524727, 19276.522908860927, 18950.507991959363, 19223.311320634293, 19390.178792543826, 19643.46544890804, 19738.93743110351], [14866.888022051655, 14862.20349825829, 14827.106085811114, 15002.85106419776, 15326.898378972564, 15352.924495908437, 15374.961223764625, 15645.474649768852, 15589.544285097563, 15603.636161319386  …  16615.488071879958, 16768.18037943525, 16872.525078125243, 17227.64800941723, 17048.535496264416, 16763.920273978732, 16941.52545308095, 17171.799646515494, 17333.741482572095, 17408.96223250698], [15944.236265986641, 15914.498524222605, 18599.097522015, 18260.897855073094, 18343.328712272152, 17616.920338029195, 17012.865711983977, 17766.64969172317, 16993.68551599565, 18692.689566894845  …  20602.335841262724, 21506.383676686713, 22297.317793318845, 22063.05127003847, 23378.676015166428, 22668.043397565278, 22904.691603080275, 22638.45026829365, 22300.824781695243, 22242.78696250633], [15944.236265986641, 15927.16638834521, 18519.36266349139, 18108.68686836204, 17956.007450428508, 17210.54379137104, 16433.930161989254, 17101.297152341227, 16306.001640474431, 17780.501374328887  …  18487.71023356564, 19162.004806806657, 19882.83851476614, 19469.36117864029, 20676.56027929275, 20052.511122398893, 20185.929953287057, 20048.44496143729, 19678.642377001306, 19617.258503783774], [15944.236265986641, 15914.49852422261, 17735.705316788397, 18273.686210168453, 18706.9357760714, 16822.16523679847, 16898.348849526283, 17090.711369353707, 17138.275638969895, 19358.048786797033  …  21511.92651124939, 21620.594252402167, 21808.062745999687, 22154.004910153584, 22206.774999151934, 22362.098322259575, 20770.412806996843, 22553.078587417505, 20479.09825434436, 20217.694123602472], [15944.236265986641, 15927.166388345213, 17659.671845133296, 18121.368628033513, 18311.936913887326, 16434.121623892646, 16323.310225768033, 16450.67239707967, 16444.740631507026, 18413.391600294293  …  19303.94043520076, 19263.765457678892, 19446.562762294423, 19549.622482856084, 19640.108001872555, 19781.86725085638, 18304.987698088466, 19972.84042910285, 18071.11865573249, 17831.206702725576], [3173.2320350842083, 3158.969869559669, 2646.305773143414, 3063.661977187671, 3243.8251564438838, 3297.0394226937296, 3319.56566320649, 3349.0948366380126, 3359.855719644192, 3393.101805423237  …  3903.2329088798515, 3799.972683746809, 3913.7062651811766, 3977.2064222325243, 3966.063220781148, 4013.5965817735823, 4138.6990786365795, 4100.902715164161, 4093.987761154467, 4062.95040913858], [3173.2320350842083, 3161.4843943506366, 2634.9609852480858, 3038.1252803506445, 3175.331456499805, 3220.985295804264, 3206.60323785693, 3223.672835706336, 3223.8923584120307, 3227.5211707047924  …  3502.604731302418, 3385.7433181861793, 3489.9080860812046, 3509.6536453055046, 3507.6642151492483, 3550.49126584438, 3647.440059304555, 3631.7292660410712, 3612.607239249144, 3583.3615903654045], [34195.564496956766, 34190.11831748914, 33850.5350481832, 34220.71171766003, 34454.345136868, 34343.542448829954, 34538.34409472843, 33498.074127821026, 32841.6900558153, 32513.113538283313  …  39204.715400596164, 39627.75165109404, 39805.91470515528, 39975.194968443175, 39220.43946080486, 39492.75839497814, 39358.43976410293, 38900.15569955993, 39808.60309606364, 41388.040808865786], [34195.564496956766, 34217.33348688468, 33705.41684447357, 33935.47008617845, 33726.83811544719, 33551.32622076223, 33363.02915526447, 32243.587262144072, 31512.68460405552, 30926.49978925368  …  35180.73987824126, 35307.989434055795, 35495.50584296323, 35275.78753733398, 34687.327039632226, 34935.921159149126, 34686.63634143871, 34449.69162161431, 35127.81574331859, 36502.61529192764], [33097.63671130043, 32978.29335478363, 33694.34146377729, 33520.216524449395, 33339.38521506472, 32957.627141637575, 32899.599974723475, 32491.516639068606, 31060.05750441362, 31339.84408356041  …  38375.44966912361, 39426.741551426676, 40096.807706994055, 40259.70313814174, 40249.43973970221, 39517.68284647587, 40059.898572335835, 39932.62429012826, 40821.72710635898, 43315.841504707445], [33097.63671130043, 33004.543917349474, 33549.89286639347, 33240.81376602822, 32635.42068642653, 32197.38037620525, 31780.050315752353, 31274.724870261107, 29803.149419440422, 29810.48493876877  …  34436.59005619127, 35128.89114612664, 35754.89931056537, 35526.84947098674, 35597.39509824373, 34957.96972470515, 35304.832762219194, 35364.03820749405, 36021.81429616672, 38202.859270249624], [29576.147776884864, 29540.30815757877, 30292.943432081607, 30659.752129799897, 31470.43102338082, 31343.133705093118, 31387.02640205149, 31736.348121683142, 31793.391333121475, 32501.159588540366  …  36712.64006874383, 37172.31883509497, 37523.73899824494, 37944.49242007238, 38338.4724381756, 38501.540003118294, 38525.968110767135, 38119.66981037679, 37972.47865890076, 37372.14202925547], [34346.71094688274, 34305.090481160245, 35211.75075073366, 35650.37993372928, 36648.67733439142, 36539.43462458365, 36586.55960188689, 37018.22876469332, 37099.11053622822, 37874.48536845477  …  42796.25434483112, 43261.55611500028, 43748.390628986905, 44243.5975115139, 44784.66846081228, 44784.33623000669, 44699.7193514847, 44264.68958310676, 44269.65844257435, 43675.88723090872], [28335.329312139656, 28300.993284908534, 29048.96933863684, 29410.829382974618, 30234.40418298853, 30144.281196768952, 30183.158332713047, 30539.27650370566, 30606.002299818563, 31245.670570980295  …  35306.02863436434, 35689.893013915986, 36091.521463745135, 36500.05694522808, 36946.42933742925, 36946.15525385545, 36876.34807138626, 36517.457469994, 36521.556676743014, 36031.707653218364], [978.0617717704339, 976.8765815346229, 1002.5304906469918, 1016.0260085118274, 1043.6041979677732, 1038.4785583065247, 1039.1019655897114, 1050.470759623419, 1049.1101678853386, 1068.7767426760688  …  1221.0663892886755, 1233.5421960371611, 1251.4417291484717, 1269.8405675432552, 1284.1792641298557, 1279.6276480684621, 1276.0992729895574, 1269.4999355760315, 1268.6629728705543, 1253.4652127047414], [0.0019383188997990075, -0.003952295097048086, 0.004956948059654076, 0.007114732025734094, 0.0035391752262126097, -0.0003608070994732815, 0.0017794524471583806, 0.0002442073299642189, 9.177357428868937e-5, 0.0018888992087409129  …  0.005383681618703839, 0.004883052145744804, 0.006695749772000603, 0.007423681534728832, 0.008973362968299314, 0.001955892169429152, 0.004048164862117121, 0.005927619485927238, -0.00013296480254920695, 0.001287084675797745], [2.3548476e6, 2.3588626485893e6, 2.3686528332620063e6, 2.371686113212186e6, 2.357060225202081e6, 2.358614034745582e6, 2.368561899028043e6, 2.354970445382262e6, 2.348058708273566e6, 2.3396666060391376e6  …  2.422412850829009e6, 2.4211672653116006e6, 2.4173995616164864e6, 2.4207180069083306e6, 2.4051012465298795e6, 2.4192692432369734e6, 2.396204684560901e6, 2.3926891306042643e6, 2.4159713703492098e6, 2.428836735410318e6], [0.0016459319014481277, 0.0016010860580926674, 0.0020045362540946406, 0.002145362270381164, 0.0014611782662367872, 0.0014095631765680236, 0.0017608937880558586, 0.001071717309308333, 0.0007057985760453944, 0.000345348357775852  …  0.0024861636122284216, 0.0023635856605183176, 0.0021891933109979477, 0.0023325013108871184, 0.0017311912814285504, 0.0022273293558820887, 0.0012175977280879187, 0.001119175141481578, 0.0019903663875925886, 0.0023963289034279636], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 517.4556387808753 257.93033379374606 … 136.83121862733822 504.29279899424546; … ; 649.4452152787419 326.6898114613495 … 177.2921431793251 651.9444842923218; 646.2872705741617 315.4458886853067 … 175.7060468876137 647.9140835530511], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 517.8675309753778 258.13564509630606 … 136.94013561788393 504.69421363171887; … ; 573.081949211812 288.27687006602196 … 156.4457241393938 575.2873484113309; 569.9998150379971 278.21079942574687 … 154.96578501077704 571.4345997526095])

Now we can experiment with changing expectations of the agents in the model. We will change the function estimate_next_value to make the agents expect the last value of the time series (so to represent backward looking expectations)

import BeforeIT: estimate_next_value
 function estimate_next_value(data)
     return data[end]
 end
estimate_next_value (generic function with 2 methods)

Run the model again, with the same seed

Random.seed!(1234)
 model = Bit.init_model(par, init, T)
-data_back = Bit.run_one_sim!(model)
BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 72487.15720268336, 72588.9859929605, 72760.55065828687, 72862.39108440242, 73117.75995158694, 73347.91764563385, 73336.73940769253, 73416.44757987179, 73455.87933682224  …  79908.35020369886, 80254.76553029781, 80629.29738282178, 81065.09974811536, 81630.94331641759, 82101.4466536077, 82311.4658279318, 82760.59607213446, 82932.59412381802, 83039.08963526484], [72421.99999999997, 72414.1299324907, 72442.79995226984, 72540.86402832363, 72569.21329998954, 72750.18846044765, 72905.66615665257, 72821.11761403612, 72826.82191115391, 72792.52810958224  …  77450.08213018041, 77707.47504141096, 77991.46740145641, 78334.01498284892, 78801.32672223875, 79175.67468735752, 79298.23993718246, 79650.60358133283, 79735.72739882988, 79757.68474171181], [64900.920495538034, 64966.370940930356, 65052.463080422065, 65223.23238242176, 65317.56928331891, 65555.73522577029, 65747.94950168808, 65724.42947186915, 65790.96215077116, 65827.83828456838  …  71731.08287485935, 72051.27417899562, 72386.31576926842, 72782.11377019306, 73298.47116224813, 73700.81052565602, 73882.87397451198, 74298.44787342481, 74441.35923385191, 74549.89625136931], [64900.920495538034, 64900.92049553802, 64921.454747893134, 65026.303249976125, 65054.7497414302, 65226.17891324617, 65351.52204337812, 65262.328913744605, 65262.57864363486, 65233.37290335098  …  69524.37693661048, 69764.36293807939, 70018.15927808413, 70330.08296138271, 70757.68746059852, 71074.40412095955, 71178.19867194406, 71506.44750209874, 71571.81069492296, 71603.95361823592], [40512.94792630534, 40504.855519081226, 40568.96366966951, 40576.36746549506, 40616.49293489363, 40710.71064571137, 40932.556299143864, 41019.78992325869, 41114.124340279865, 41143.7606302783  …  43685.81656825279, 43832.18958046235, 44080.381242434305, 44248.44184332816, 44477.48175990843, 44918.776080610325, 45040.88288204748, 45171.88957273917, 45338.047171015816, 45292.37378790962], [40512.94792630534, 40464.04885563548, 40487.262346904594, 40453.85484919408, 40453.06358221869, 40506.05316403674, 40685.75332842334, 40731.384714267086, 40783.92662768261, 40772.20747001708  …  42341.88382703658, 42440.95357238697, 42638.268325596604, 42757.71098898288, 42935.73526841816, 43318.047942781035, 43392.04388887355, 43474.41222199491, 43590.36646829268, 43502.58276730617], [14866.888022051655, 14914.412839498767, 14975.692652925489, 14953.187686835156, 15005.22813685588, 15051.891343529052, 14960.040689476866, 14953.494004809463, 14955.200010346452, 14968.267041605939  …  17128.17270430469, 17054.801950897152, 17217.71681229949, 17313.674228476997, 17506.417805496476, 17531.04486946254, 17624.66891023052, 17815.484433069665, 17833.603291293693, 17876.18623685406], [14866.888022051655, 14899.38729706853, 14945.533294923955, 14908.03938352507, 14944.851315915743, 14976.223733508314, 14869.839079362915, 14848.357787103807, 14835.091096096441, 14833.09449447495  …  16601.248546699506, 16513.481637862682, 16654.430127528984, 16730.37621165959, 16899.583579227048, 16906.307526714467, 16979.47193624865, 17146.01097061963, 17146.15761868567, 17169.783923758758], [15944.236265986641, 16069.165265288759, 15876.03150309954, 16070.727600807086, 15966.803651695871, 16166.300250931892, 16342.558683508234, 16239.502572383877, 16214.820689247004, 16114.063029947514  …  17519.826091438605, 17616.74467536471, 17529.254858282024, 17740.25018908835, 17833.419495958213, 18005.985018229094, 17937.585184876512, 18196.333547896873, 18307.287418839056, 17960.391095514908], [15944.236265986641, 16052.97636619428, 15844.058964076301, 16022.205098493163, 15902.557721126046, 16085.030377601872, 16244.021177011264, 16125.3245831238, 16084.59544943766, 15968.543248777596  …  16980.853267892726, 17057.588270630546, 16955.776042056787, 17142.580819976618, 17215.250237015345, 17364.3226804956, 17280.93309451546, 17512.54846924956, 17601.58227850903, 17250.6613105448], [15944.236265986641, 15956.894253937371, 15975.290551103222, 15995.242115506864, 16025.262363496295, 16077.849434072503, 16125.347491099246, 16165.57323563215, 16174.48913194592, 16183.60988774581  …  17455.938357222592, 17547.74428896111, 17645.937278574518, 17728.826531950937, 17813.08975785321, 17932.2307905329, 18023.780894133073, 18094.9176141039, 18146.041563527026, 18160.99774092782], [15944.236265986641, 15940.818462402867, 15943.118115538768, 15946.947527244261, 15960.781211499472, 15997.024213295666, 16028.11966013704, 16051.915034646378, 16044.587804859515, 16037.462056188533  …  16918.930950018217, 16990.77796012903, 17068.64113544037, 17131.542026067258, 17195.62519938249, 17293.196762781525, 17363.973385019715, 17414.943561566994, 17446.55209165444, 17443.340705902006], [3173.2320350842083, 3173.010884978986, 3173.6943494578736, 3164.1175957895816, 3164.1843102383536, 3168.3289749056844, 3172.5036888525374, 3211.884161136667, 3216.4345308353195, 3215.489953993725  …  3363.4628329896564, 3388.0318757186665, 3413.9417876877346, 3417.4546435162433, 3418.3448660234067, 3453.4375246917552, 3513.7922521137557, 3502.8273808890604, 3530.7318489446657, 3526.2260412216747], [3173.2320350842083, 3169.814231500442, 3167.302886552549, 3154.5641451197116, 3151.4525218391077, 3152.401416313943, 3153.37506836501, 3189.301789932854, 3190.602548716216, 3186.452125757009  …  3259.9906266717016, 3280.495565369526, 3302.2528818618243, 3302.32053103261, 3299.852968655112, 3330.3706225996502, 3385.1607220798073, 3371.19750667157, 3394.6300028370233, 3386.882324446083], [34195.564496956766, 33751.528998769754, 34569.95644716177, 33703.4234344634, 33728.34322462739, 32958.953782453515, 33631.30822091187, 34503.0090460788, 34191.5830805822, 33369.47677866404  …  37554.195095249524, 37815.82187075543, 37436.083257622064, 38754.756135371026, 38985.56780798001, 38867.0228684277, 39261.372105459064, 39399.56273987626, 39961.30568843665, 40637.66180367982], [34195.564496956766, 33717.52598192198, 34500.33644915898, 33601.66236413677, 33592.629850534875, 32793.26528493628, 33428.528147332356, 34260.4225395806, 33916.98201089031, 33068.13012577077  …  36398.893069941754, 36615.54569096338, 36211.34205303245, 37449.10765789053, 37634.190436590994, 37481.955362859524, 37824.1071783367, 37918.99891992641, 38420.88639018447, 39031.80818834203], [33097.63671130043, 32752.805419954726, 33401.65827989574, 32543.155529313684, 32454.476863670152, 31770.096071039003, 32518.54624740699, 33379.05613883806, 33059.28054058376, 32139.688143673524  …  35979.660255546565, 36064.79254718173, 35634.13878781588, 36992.02264814908, 37171.94355292535, 37221.38218312187, 37553.04325468158, 37822.67422144753, 38507.64944576708, 38727.52328869353], [33097.63671130043, 32719.808568329216, 33334.39110279383, 32444.897667025358, 32323.8891698056, 31610.384099635594, 32322.47557547731, 33144.372010038904, 32793.773272953185, 31849.447229458117  …  34872.796581390045, 34920.09413043252, 34468.34914675837, 35745.76069566068, 35883.43279901268, 35894.95882549304, 36178.31616079182, 36401.36700045779, 37023.26535684193, 37197.15144823997], [29576.147776884864, 29605.974349916603, 29632.489755699513, 29711.169775955394, 29770.11928322126, 29875.72474905089, 29952.269971374113, 29981.998581151907, 30006.311784726746, 30027.59576072079  …  32523.275263887463, 32691.04396638387, 32870.38187045533, 33030.475204297196, 33219.94466824486, 33433.189159988804, 33511.25195305636, 33670.26722327924, 33738.46039093027, 33790.40720342477], [34346.71094688274, 34381.34847608993, 34440.67812819331, 34528.594323724596, 34566.596806034504, 34697.21610172567, 34811.258712117386, 34758.7128265803, 34795.6205540742, 34810.27157749574  …  38122.85306262314, 38270.50678702313, 38422.069324873686, 38652.73106676094, 38967.21507888629, 39150.21440403827, 39251.69611327525, 39499.22474205198, 39570.172045736894, 39621.08608761451], [28335.329312139656, 28363.90456052843, 28412.850301881183, 28485.379352948174, 28516.730618360314, 28624.488847777182, 28718.571653145726, 28675.222379528404, 28705.670494759004, 28717.757287408553  …  31450.568804631872, 31572.380086984587, 31697.416059949242, 31887.70724754489, 32147.150082136992, 32298.120757323322, 32381.841077875582, 32586.047099855903, 32644.577164549126, 32686.580200747998], [978.0617717704339, 979.0481149238877, 979.2951965291289, 983.4682827417945, 980.853194063137, 982.7943749937023, 984.420818196592, 983.7180641369315, 989.0298119702568, 989.9709463518589  …  1084.9545483487664, 1089.7234255885255, 1093.8645739394494, 1098.9074991349305, 1111.3114151169912, 1117.4069616289157, 1119.9259081804157, 1128.9559080936135, 1132.7267971847361, 1138.4029603300612], [0.0019383188997990075, 0.004220038374121549, 0.007005984606115234, 0.002346933044874655, 0.0036516744035737236, 0.006506860457373476, 0.010954032805192915, 0.008916604604359835, 0.006836631711282237, 0.007798941998575337  …  0.0015015719683397766, 0.008179623587014184, 0.00190366245196949, 0.0035121839063618765, -0.002731861288506554, -0.00032007216549834183, 0.00765950772805013, 0.004414981215902669, 0.00413254546412567, -0.000615861188655753], [2.3548476e6, 2.352396197078055e6, 2.3687608750522775e6, 2.3489358910521604e6, 2.3325667268239697e6, 2.323771457244648e6, 2.331462532341804e6, 2.35042648756668e6, 2.347090348513485e6, 2.323260814353414e6  …  2.406649015473945e6, 2.4302095839785803e6, 2.434717668651892e6, 2.4524625837059407e6, 2.4645160695100487e6, 2.451635163427777e6, 2.44657916097215e6, 2.4448572880382375e6, 2.4593268857702897e6, 2.47002678994776e6], [0.0016459319014481277, 0.0015185270190031042, 0.002251129865149383, 0.0013151207058681102, 0.0006161104840447192, 0.0003489376678451245, 0.0009000238344603896, 0.0018380636299575467, 0.001719263539904509, 0.0007723229917119014  …  0.002990572669784612, 0.0039197996592207985, 0.003855749404926428, 0.0043677689988356385, 0.004465142773470529, 0.00361314654343514, 0.0033185771129730546, 0.0031049830316457333, 0.0035520767233054675, 0.00370291147466435], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613045 258.50369622511613 … 137.13538556670355 505.41380923410765; … ; 580.9669663982805 293.2221597837535 … 154.720305117898 568.029148464828; 576.6894871207411 293.5178646953359 … 155.21082677437812 569.5449065545222], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.9972283642248 504.90462950861695; … ; 558.5719842707092 281.9190988395567 … 148.75618208114645 546.1328903924056; 553.9008015341049 281.91909883955645 … 149.07745550613674 547.0385489863567])

Plot the results, comparing the two cases as different lines

p1 = plot(data.real_gdp, title = "gdp", titlefont = 10, label = "forward looking")
+data_back = Bit.run!(model)
BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 72487.15720268336, 72588.9859929605, 72760.55065828687, 72862.39108440242, 73117.75995158694, 73347.91764563385, 73336.73940769253, 73416.44757987179, 73455.87933682224  …  79908.35020369886, 80254.76553029781, 80629.29738282178, 81065.09974811536, 81630.94331641759, 82101.4466536077, 82311.4658279318, 82760.59607213446, 82932.59412381802, 83039.08963526484], [72421.99999999997, 72414.1299324907, 72442.79995226984, 72540.86402832363, 72569.21329998954, 72750.18846044765, 72905.66615665257, 72821.11761403612, 72826.82191115391, 72792.52810958224  …  77450.08213018041, 77707.47504141096, 77991.46740145641, 78334.01498284892, 78801.32672223875, 79175.67468735752, 79298.23993718246, 79650.60358133283, 79735.72739882988, 79757.68474171181], [64900.920495538034, 64966.370940930356, 65052.463080422065, 65223.23238242176, 65317.56928331891, 65555.73522577029, 65747.94950168808, 65724.42947186915, 65790.96215077116, 65827.83828456838  …  71731.08287485935, 72051.27417899562, 72386.31576926842, 72782.11377019306, 73298.47116224813, 73700.81052565602, 73882.87397451198, 74298.44787342481, 74441.35923385191, 74549.89625136931], [64900.920495538034, 64900.92049553802, 64921.454747893134, 65026.303249976125, 65054.7497414302, 65226.17891324617, 65351.52204337812, 65262.328913744605, 65262.57864363486, 65233.37290335098  …  69524.37693661048, 69764.36293807939, 70018.15927808413, 70330.08296138271, 70757.68746059852, 71074.40412095955, 71178.19867194406, 71506.44750209874, 71571.81069492296, 71603.95361823592], [40512.94792630534, 40504.855519081226, 40568.96366966951, 40576.36746549506, 40616.49293489363, 40710.71064571137, 40932.556299143864, 41019.78992325869, 41114.124340279865, 41143.7606302783  …  43685.81656825279, 43832.18958046235, 44080.381242434305, 44248.44184332816, 44477.48175990843, 44918.776080610325, 45040.88288204748, 45171.88957273917, 45338.047171015816, 45292.37378790962], [40512.94792630534, 40464.04885563548, 40487.262346904594, 40453.85484919408, 40453.06358221869, 40506.05316403674, 40685.75332842334, 40731.384714267086, 40783.92662768261, 40772.20747001708  …  42341.88382703658, 42440.95357238697, 42638.268325596604, 42757.71098898288, 42935.73526841816, 43318.047942781035, 43392.04388887355, 43474.41222199491, 43590.36646829268, 43502.58276730617], [14866.888022051655, 14914.412839498767, 14975.692652925489, 14953.187686835156, 15005.22813685588, 15051.891343529052, 14960.040689476866, 14953.494004809463, 14955.200010346452, 14968.267041605939  …  17128.17270430469, 17054.801950897152, 17217.71681229949, 17313.674228476997, 17506.417805496476, 17531.04486946254, 17624.66891023052, 17815.484433069665, 17833.603291293693, 17876.18623685406], [14866.888022051655, 14899.38729706853, 14945.533294923955, 14908.03938352507, 14944.851315915743, 14976.223733508314, 14869.839079362915, 14848.357787103807, 14835.091096096441, 14833.09449447495  …  16601.248546699506, 16513.481637862682, 16654.430127528984, 16730.37621165959, 16899.583579227048, 16906.307526714467, 16979.47193624865, 17146.01097061963, 17146.15761868567, 17169.783923758758], [15944.236265986641, 16069.165265288759, 15876.03150309954, 16070.727600807086, 15966.803651695871, 16166.300250931892, 16342.558683508234, 16239.502572383877, 16214.820689247004, 16114.063029947514  …  17519.826091438605, 17616.74467536471, 17529.254858282024, 17740.25018908835, 17833.419495958213, 18005.985018229094, 17937.585184876512, 18196.333547896873, 18307.287418839056, 17960.391095514908], [15944.236265986641, 16052.97636619428, 15844.058964076301, 16022.205098493163, 15902.557721126046, 16085.030377601872, 16244.021177011264, 16125.3245831238, 16084.59544943766, 15968.543248777596  …  16980.853267892726, 17057.588270630546, 16955.776042056787, 17142.580819976618, 17215.250237015345, 17364.3226804956, 17280.93309451546, 17512.54846924956, 17601.58227850903, 17250.6613105448], [15944.236265986641, 15956.894253937371, 15975.290551103222, 15995.242115506864, 16025.262363496295, 16077.849434072503, 16125.347491099246, 16165.57323563215, 16174.48913194592, 16183.60988774581  …  17455.938357222592, 17547.74428896111, 17645.937278574518, 17728.826531950937, 17813.08975785321, 17932.2307905329, 18023.780894133073, 18094.9176141039, 18146.041563527026, 18160.99774092782], [15944.236265986641, 15940.818462402867, 15943.118115538768, 15946.947527244261, 15960.781211499472, 15997.024213295666, 16028.11966013704, 16051.915034646378, 16044.587804859515, 16037.462056188533  …  16918.930950018217, 16990.77796012903, 17068.64113544037, 17131.542026067258, 17195.62519938249, 17293.196762781525, 17363.973385019715, 17414.943561566994, 17446.55209165444, 17443.340705902006], [3173.2320350842083, 3173.010884978986, 3173.6943494578736, 3164.1175957895816, 3164.1843102383536, 3168.3289749056844, 3172.5036888525374, 3211.884161136667, 3216.4345308353195, 3215.489953993725  …  3363.4628329896564, 3388.0318757186665, 3413.9417876877346, 3417.4546435162433, 3418.3448660234067, 3453.4375246917552, 3513.7922521137557, 3502.8273808890604, 3530.7318489446657, 3526.2260412216747], [3173.2320350842083, 3169.814231500442, 3167.302886552549, 3154.5641451197116, 3151.4525218391077, 3152.401416313943, 3153.37506836501, 3189.301789932854, 3190.602548716216, 3186.452125757009  …  3259.9906266717016, 3280.495565369526, 3302.2528818618243, 3302.32053103261, 3299.852968655112, 3330.3706225996502, 3385.1607220798073, 3371.19750667157, 3394.6300028370233, 3386.882324446083], [34195.564496956766, 33751.528998769754, 34569.95644716177, 33703.4234344634, 33728.34322462739, 32958.953782453515, 33631.30822091187, 34503.0090460788, 34191.5830805822, 33369.47677866404  …  37554.195095249524, 37815.82187075543, 37436.083257622064, 38754.756135371026, 38985.56780798001, 38867.0228684277, 39261.372105459064, 39399.56273987626, 39961.30568843665, 40637.66180367982], [34195.564496956766, 33717.52598192198, 34500.33644915898, 33601.66236413677, 33592.629850534875, 32793.26528493628, 33428.528147332356, 34260.4225395806, 33916.98201089031, 33068.13012577077  …  36398.893069941754, 36615.54569096338, 36211.34205303245, 37449.10765789053, 37634.190436590994, 37481.955362859524, 37824.1071783367, 37918.99891992641, 38420.88639018447, 39031.80818834203], [33097.63671130043, 32752.805419954726, 33401.65827989574, 32543.155529313684, 32454.476863670152, 31770.096071039003, 32518.54624740699, 33379.05613883806, 33059.28054058376, 32139.688143673524  …  35979.660255546565, 36064.79254718173, 35634.13878781588, 36992.02264814908, 37171.94355292535, 37221.38218312187, 37553.04325468158, 37822.67422144753, 38507.64944576708, 38727.52328869353], [33097.63671130043, 32719.808568329216, 33334.39110279383, 32444.897667025358, 32323.8891698056, 31610.384099635594, 32322.47557547731, 33144.372010038904, 32793.773272953185, 31849.447229458117  …  34872.796581390045, 34920.09413043252, 34468.34914675837, 35745.76069566068, 35883.43279901268, 35894.95882549304, 36178.31616079182, 36401.36700045779, 37023.26535684193, 37197.15144823997], [29576.147776884864, 29605.974349916603, 29632.489755699513, 29711.169775955394, 29770.11928322126, 29875.72474905089, 29952.269971374113, 29981.998581151907, 30006.311784726746, 30027.59576072079  …  32523.275263887463, 32691.04396638387, 32870.38187045533, 33030.475204297196, 33219.94466824486, 33433.189159988804, 33511.25195305636, 33670.26722327924, 33738.46039093027, 33790.40720342477], [34346.71094688274, 34381.34847608993, 34440.67812819331, 34528.594323724596, 34566.596806034504, 34697.21610172567, 34811.258712117386, 34758.7128265803, 34795.6205540742, 34810.27157749574  …  38122.85306262314, 38270.50678702313, 38422.069324873686, 38652.73106676094, 38967.21507888629, 39150.21440403827, 39251.69611327525, 39499.22474205198, 39570.172045736894, 39621.08608761451], [28335.329312139656, 28363.90456052843, 28412.850301881183, 28485.379352948174, 28516.730618360314, 28624.488847777182, 28718.571653145726, 28675.222379528404, 28705.670494759004, 28717.757287408553  …  31450.568804631872, 31572.380086984587, 31697.416059949242, 31887.70724754489, 32147.150082136992, 32298.120757323322, 32381.841077875582, 32586.047099855903, 32644.577164549126, 32686.580200747998], [978.0617717704339, 979.0481149238877, 979.2951965291289, 983.4682827417945, 980.853194063137, 982.7943749937023, 984.420818196592, 983.7180641369315, 989.0298119702568, 989.9709463518589  …  1084.9545483487664, 1089.7234255885255, 1093.8645739394494, 1098.9074991349305, 1111.3114151169912, 1117.4069616289157, 1119.9259081804157, 1128.9559080936135, 1132.7267971847361, 1138.4029603300612], [0.0019383188997990075, 0.004220038374121549, 0.007005984606115234, 0.002346933044874655, 0.0036516744035737236, 0.006506860457373476, 0.010954032805192915, 0.008916604604359835, 0.006836631711282237, 0.007798941998575337  …  0.0015015719683397766, 0.008179623587014184, 0.00190366245196949, 0.0035121839063618765, -0.002731861288506554, -0.00032007216549834183, 0.00765950772805013, 0.004414981215902669, 0.00413254546412567, -0.000615861188655753], [2.3548476e6, 2.352396197078055e6, 2.3687608750522775e6, 2.3489358910521604e6, 2.3325667268239697e6, 2.323771457244648e6, 2.331462532341804e6, 2.35042648756668e6, 2.347090348513485e6, 2.323260814353414e6  …  2.406649015473945e6, 2.4302095839785803e6, 2.434717668651892e6, 2.4524625837059407e6, 2.4645160695100487e6, 2.451635163427777e6, 2.44657916097215e6, 2.4448572880382375e6, 2.4593268857702897e6, 2.47002678994776e6], [0.0016459319014481277, 0.0015185270190031042, 0.002251129865149383, 0.0013151207058681102, 0.0006161104840447192, 0.0003489376678451245, 0.0009000238344603896, 0.0018380636299575467, 0.001719263539904509, 0.0007723229917119014  …  0.002990572669784612, 0.0039197996592207985, 0.003855749404926428, 0.0043677689988356385, 0.004465142773470529, 0.00361314654343514, 0.0033185771129730546, 0.0031049830316457333, 0.0035520767233054675, 0.00370291147466435], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613045 258.50369622511613 … 137.13538556670355 505.41380923410765; … ; 580.9669663982805 293.2221597837535 … 154.720305117898 568.029148464828; 576.6894871207411 293.5178646953359 … 155.21082677437812 569.5449065545222], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.9972283642248 504.90462950861695; … ; 558.5719842707092 281.9190988395567 … 148.75618208114645 546.1328903924056; 553.9008015341049 281.91909883955645 … 149.07745550613674 547.0385489863567])

Plot the results, comparing the two cases as different lines

p1 = plot(data.real_gdp, title = "gdp", titlefont = 10, label = "forward looking")
 plot!(p1, data_back.real_gdp, titlefont = 10, label = "backward looking")
 
 p2 = plot(data.real_household_consumption, title = "consumption", titlefont = 10)
 plot!(p2, data_back.real_household_consumption, titlefont = 10, label = "backward looking")
 
-plot(p1, p2, layout = (2, 1), legend = true)
Example block output

Plot all time series

p1 = plot(data.real_gdp, title = "gdp", titlefont = 10)
+plot(p1, p2, layout = (2, 1), legend = true)
Example block output

Plot all time series

p1 = plot(data.real_gdp, title = "gdp", titlefont = 10)
 plot!(p1, data_back.real_gdp, titlefont = 10)
 p2 = plot(data.real_household_consumption, title = "household cons.", titlefont = 10)
 plot!(p2, data_back.real_household_consumption, titlefont = 10)
@@ -54,4 +54,4 @@
 p9 = plot(data.nominal_gdp ./ data.real_gdp, title = "gdp deflator", titlefont = 10)
 plot!(p9, data_back.nominal_gdp ./ data_back.real_gdp, titlefont = 10)
 
-plot(p1, p2, p3, p4, p5, p6, p7, p8, p9, layout = (3, 3), legend = false)
Example block output

Note that, importantly, once the function estimate_next_value has been changed, the model will use the new expectations in all the simulations, unless the function is changed again. To restore the original expectations you could close the Julia session.

+plot(p1, p2, p3, p4, p5, p6, p7, p8, p9, layout = (3, 3), legend = false)Example block output

Note that, importantly, once the function estimate_next_value has been changed, the model will use the new expectations in all the simulations, unless the function is changed again. To restore the original expectations you could close the Julia session.

diff --git a/dev/examples/data/italy/initial_conditions/2010Q1.jld2 b/dev/examples/data/italy/initial_conditions/2010Q1.jld2 index b115563..1e7800e 100644 Binary files a/dev/examples/data/italy/initial_conditions/2010Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2010Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2010Q2.jld2 b/dev/examples/data/italy/initial_conditions/2010Q2.jld2 index 5811de2..b5e7f4e 100644 Binary files a/dev/examples/data/italy/initial_conditions/2010Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2010Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2010Q3.jld2 b/dev/examples/data/italy/initial_conditions/2010Q3.jld2 index 6fc41bf..a933631 100644 Binary files a/dev/examples/data/italy/initial_conditions/2010Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2010Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2010Q4.jld2 b/dev/examples/data/italy/initial_conditions/2010Q4.jld2 index 746b836..9ea6183 100644 Binary files a/dev/examples/data/italy/initial_conditions/2010Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2010Q4.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2011Q1.jld2 b/dev/examples/data/italy/initial_conditions/2011Q1.jld2 index 3e9dd68..57c2b06 100644 Binary files a/dev/examples/data/italy/initial_conditions/2011Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2011Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2011Q2.jld2 b/dev/examples/data/italy/initial_conditions/2011Q2.jld2 index fb98625..1e555f7 100644 Binary files a/dev/examples/data/italy/initial_conditions/2011Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2011Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2011Q3.jld2 b/dev/examples/data/italy/initial_conditions/2011Q3.jld2 index 1cc049f..58f18aa 100644 Binary files a/dev/examples/data/italy/initial_conditions/2011Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2011Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2011Q4.jld2 b/dev/examples/data/italy/initial_conditions/2011Q4.jld2 index df988ee..0f1cd9d 100644 Binary files a/dev/examples/data/italy/initial_conditions/2011Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2011Q4.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2012Q1.jld2 b/dev/examples/data/italy/initial_conditions/2012Q1.jld2 index 211e2fa..d490c42 100644 Binary files a/dev/examples/data/italy/initial_conditions/2012Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2012Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2012Q2.jld2 b/dev/examples/data/italy/initial_conditions/2012Q2.jld2 index 0e85913..a248f15 100644 Binary files a/dev/examples/data/italy/initial_conditions/2012Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2012Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2012Q3.jld2 b/dev/examples/data/italy/initial_conditions/2012Q3.jld2 index 275237c..e8da626 100644 Binary files a/dev/examples/data/italy/initial_conditions/2012Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2012Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2012Q4.jld2 b/dev/examples/data/italy/initial_conditions/2012Q4.jld2 index f28fc05..8b77e31 100644 Binary files a/dev/examples/data/italy/initial_conditions/2012Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2012Q4.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2013Q1.jld2 b/dev/examples/data/italy/initial_conditions/2013Q1.jld2 index 0f0b2df..7c46f3a 100644 Binary files a/dev/examples/data/italy/initial_conditions/2013Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2013Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2013Q2.jld2 b/dev/examples/data/italy/initial_conditions/2013Q2.jld2 index 4925271..6d23fab 100644 Binary files a/dev/examples/data/italy/initial_conditions/2013Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2013Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2013Q3.jld2 b/dev/examples/data/italy/initial_conditions/2013Q3.jld2 index 8b1a864..f636a03 100644 Binary files a/dev/examples/data/italy/initial_conditions/2013Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2013Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2013Q4.jld2 b/dev/examples/data/italy/initial_conditions/2013Q4.jld2 index 0753b9c..43b0c3f 100644 Binary files a/dev/examples/data/italy/initial_conditions/2013Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2013Q4.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2014Q1.jld2 b/dev/examples/data/italy/initial_conditions/2014Q1.jld2 index fb5aea1..5f070f4 100644 Binary files a/dev/examples/data/italy/initial_conditions/2014Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2014Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2014Q2.jld2 b/dev/examples/data/italy/initial_conditions/2014Q2.jld2 index 1ad98e3..8ce4ef7 100644 Binary files a/dev/examples/data/italy/initial_conditions/2014Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2014Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2014Q3.jld2 b/dev/examples/data/italy/initial_conditions/2014Q3.jld2 index 731b5af..d77e8dc 100644 Binary files a/dev/examples/data/italy/initial_conditions/2014Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2014Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2014Q4.jld2 b/dev/examples/data/italy/initial_conditions/2014Q4.jld2 index 1bb1bb6..98bea15 100644 Binary files a/dev/examples/data/italy/initial_conditions/2014Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2014Q4.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2015Q1.jld2 b/dev/examples/data/italy/initial_conditions/2015Q1.jld2 index 28f2ccb..252d7a5 100644 Binary files a/dev/examples/data/italy/initial_conditions/2015Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2015Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2015Q2.jld2 b/dev/examples/data/italy/initial_conditions/2015Q2.jld2 index fa86a42..0ee603f 100644 Binary files a/dev/examples/data/italy/initial_conditions/2015Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2015Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2015Q3.jld2 b/dev/examples/data/italy/initial_conditions/2015Q3.jld2 index 9344132..d8eea91 100644 Binary files a/dev/examples/data/italy/initial_conditions/2015Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2015Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2015Q4.jld2 b/dev/examples/data/italy/initial_conditions/2015Q4.jld2 index 89f8969..c21358d 100644 Binary files a/dev/examples/data/italy/initial_conditions/2015Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2015Q4.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2016Q1.jld2 b/dev/examples/data/italy/initial_conditions/2016Q1.jld2 index bdf46f3..622810d 100644 Binary files a/dev/examples/data/italy/initial_conditions/2016Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2016Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2016Q2.jld2 b/dev/examples/data/italy/initial_conditions/2016Q2.jld2 index edf25d9..7e720dc 100644 Binary files a/dev/examples/data/italy/initial_conditions/2016Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2016Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2016Q3.jld2 b/dev/examples/data/italy/initial_conditions/2016Q3.jld2 index ccc5a15..df385cd 100644 Binary files a/dev/examples/data/italy/initial_conditions/2016Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2016Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2016Q4.jld2 b/dev/examples/data/italy/initial_conditions/2016Q4.jld2 index 007c6db..2d6920f 100644 Binary files a/dev/examples/data/italy/initial_conditions/2016Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2016Q4.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2017Q1.jld2 b/dev/examples/data/italy/initial_conditions/2017Q1.jld2 index 0e978ec..89c96b4 100644 Binary files a/dev/examples/data/italy/initial_conditions/2017Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2017Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2017Q2.jld2 b/dev/examples/data/italy/initial_conditions/2017Q2.jld2 index 6bc2fee..f4ca956 100644 Binary files a/dev/examples/data/italy/initial_conditions/2017Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2017Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2017Q3.jld2 b/dev/examples/data/italy/initial_conditions/2017Q3.jld2 index b62ded5..b97b6fa 100644 Binary files a/dev/examples/data/italy/initial_conditions/2017Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2017Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2017Q4.jld2 b/dev/examples/data/italy/initial_conditions/2017Q4.jld2 index 138a991..6421607 100644 Binary files a/dev/examples/data/italy/initial_conditions/2017Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2017Q4.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2018Q1.jld2 b/dev/examples/data/italy/initial_conditions/2018Q1.jld2 index c69fc29..2ca9ebe 100644 Binary files a/dev/examples/data/italy/initial_conditions/2018Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2018Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2018Q2.jld2 b/dev/examples/data/italy/initial_conditions/2018Q2.jld2 index 9d51e20..51d79fe 100644 Binary files a/dev/examples/data/italy/initial_conditions/2018Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2018Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2018Q3.jld2 b/dev/examples/data/italy/initial_conditions/2018Q3.jld2 index 229a8ce..a7da454 100644 Binary files a/dev/examples/data/italy/initial_conditions/2018Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2018Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2018Q4.jld2 b/dev/examples/data/italy/initial_conditions/2018Q4.jld2 index b588982..797d175 100644 Binary files a/dev/examples/data/italy/initial_conditions/2018Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2018Q4.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2019Q1.jld2 b/dev/examples/data/italy/initial_conditions/2019Q1.jld2 index 124a4ba..f724617 100644 Binary files a/dev/examples/data/italy/initial_conditions/2019Q1.jld2 and b/dev/examples/data/italy/initial_conditions/2019Q1.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2019Q2.jld2 b/dev/examples/data/italy/initial_conditions/2019Q2.jld2 index d22312e..8611448 100644 Binary files a/dev/examples/data/italy/initial_conditions/2019Q2.jld2 and b/dev/examples/data/italy/initial_conditions/2019Q2.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2019Q3.jld2 b/dev/examples/data/italy/initial_conditions/2019Q3.jld2 index 10d60ec..a8b7969 100644 Binary files a/dev/examples/data/italy/initial_conditions/2019Q3.jld2 and b/dev/examples/data/italy/initial_conditions/2019Q3.jld2 differ diff --git a/dev/examples/data/italy/initial_conditions/2019Q4.jld2 b/dev/examples/data/italy/initial_conditions/2019Q4.jld2 index 7d6f149..13850f3 100644 Binary files a/dev/examples/data/italy/initial_conditions/2019Q4.jld2 and b/dev/examples/data/italy/initial_conditions/2019Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2010Q1.jld2 b/dev/examples/data/italy/parameters/2010Q1.jld2 index 4c1bf16..612161c 100644 Binary files a/dev/examples/data/italy/parameters/2010Q1.jld2 and b/dev/examples/data/italy/parameters/2010Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2010Q2.jld2 b/dev/examples/data/italy/parameters/2010Q2.jld2 index 083e6b3..38af6c4 100644 Binary files a/dev/examples/data/italy/parameters/2010Q2.jld2 and b/dev/examples/data/italy/parameters/2010Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2010Q3.jld2 b/dev/examples/data/italy/parameters/2010Q3.jld2 index 44f473a..cfaf579 100644 Binary files a/dev/examples/data/italy/parameters/2010Q3.jld2 and b/dev/examples/data/italy/parameters/2010Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2010Q4.jld2 b/dev/examples/data/italy/parameters/2010Q4.jld2 index 10924c3..d2fdd60 100644 Binary files a/dev/examples/data/italy/parameters/2010Q4.jld2 and b/dev/examples/data/italy/parameters/2010Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2011Q1.jld2 b/dev/examples/data/italy/parameters/2011Q1.jld2 index 1b25678..e912618 100644 Binary files a/dev/examples/data/italy/parameters/2011Q1.jld2 and b/dev/examples/data/italy/parameters/2011Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2011Q2.jld2 b/dev/examples/data/italy/parameters/2011Q2.jld2 index 0514c39..7ad6311 100644 Binary files a/dev/examples/data/italy/parameters/2011Q2.jld2 and b/dev/examples/data/italy/parameters/2011Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2011Q3.jld2 b/dev/examples/data/italy/parameters/2011Q3.jld2 index 080a0cf..4bba898 100644 Binary files a/dev/examples/data/italy/parameters/2011Q3.jld2 and b/dev/examples/data/italy/parameters/2011Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2011Q4.jld2 b/dev/examples/data/italy/parameters/2011Q4.jld2 index 2055cc8..3616582 100644 Binary files a/dev/examples/data/italy/parameters/2011Q4.jld2 and b/dev/examples/data/italy/parameters/2011Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2012Q1.jld2 b/dev/examples/data/italy/parameters/2012Q1.jld2 index af3d74b..eb21029 100644 Binary files a/dev/examples/data/italy/parameters/2012Q1.jld2 and b/dev/examples/data/italy/parameters/2012Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2012Q2.jld2 b/dev/examples/data/italy/parameters/2012Q2.jld2 index 11e1ec5..2b3f508 100644 Binary files a/dev/examples/data/italy/parameters/2012Q2.jld2 and b/dev/examples/data/italy/parameters/2012Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2012Q3.jld2 b/dev/examples/data/italy/parameters/2012Q3.jld2 index 27162b3..67481c5 100644 Binary files a/dev/examples/data/italy/parameters/2012Q3.jld2 and b/dev/examples/data/italy/parameters/2012Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2012Q4.jld2 b/dev/examples/data/italy/parameters/2012Q4.jld2 index b69f002..786ff6e 100644 Binary files a/dev/examples/data/italy/parameters/2012Q4.jld2 and b/dev/examples/data/italy/parameters/2012Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2013Q1.jld2 b/dev/examples/data/italy/parameters/2013Q1.jld2 index 3fb112d..180dfdf 100644 Binary files a/dev/examples/data/italy/parameters/2013Q1.jld2 and b/dev/examples/data/italy/parameters/2013Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2013Q2.jld2 b/dev/examples/data/italy/parameters/2013Q2.jld2 index c811740..c0bcf80 100644 Binary files a/dev/examples/data/italy/parameters/2013Q2.jld2 and b/dev/examples/data/italy/parameters/2013Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2013Q3.jld2 b/dev/examples/data/italy/parameters/2013Q3.jld2 index 9f603e3..eef1b2d 100644 Binary files a/dev/examples/data/italy/parameters/2013Q3.jld2 and b/dev/examples/data/italy/parameters/2013Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2013Q4.jld2 b/dev/examples/data/italy/parameters/2013Q4.jld2 index f12cd81..dd1b70e 100644 Binary files a/dev/examples/data/italy/parameters/2013Q4.jld2 and b/dev/examples/data/italy/parameters/2013Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2014Q1.jld2 b/dev/examples/data/italy/parameters/2014Q1.jld2 index 4e622db..535065e 100644 Binary files a/dev/examples/data/italy/parameters/2014Q1.jld2 and b/dev/examples/data/italy/parameters/2014Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2014Q2.jld2 b/dev/examples/data/italy/parameters/2014Q2.jld2 index 8cb1a96..ef6aa90 100644 Binary files a/dev/examples/data/italy/parameters/2014Q2.jld2 and b/dev/examples/data/italy/parameters/2014Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2014Q3.jld2 b/dev/examples/data/italy/parameters/2014Q3.jld2 index 53b292f..29f87c8 100644 Binary files a/dev/examples/data/italy/parameters/2014Q3.jld2 and b/dev/examples/data/italy/parameters/2014Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2014Q4.jld2 b/dev/examples/data/italy/parameters/2014Q4.jld2 index 09c40fe..ff261c2 100644 Binary files a/dev/examples/data/italy/parameters/2014Q4.jld2 and b/dev/examples/data/italy/parameters/2014Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2015Q1.jld2 b/dev/examples/data/italy/parameters/2015Q1.jld2 index 4409ee6..e845547 100644 Binary files a/dev/examples/data/italy/parameters/2015Q1.jld2 and b/dev/examples/data/italy/parameters/2015Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2015Q2.jld2 b/dev/examples/data/italy/parameters/2015Q2.jld2 index 5a60000..92ff717 100644 Binary files a/dev/examples/data/italy/parameters/2015Q2.jld2 and b/dev/examples/data/italy/parameters/2015Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2015Q3.jld2 b/dev/examples/data/italy/parameters/2015Q3.jld2 index e5a3ef4..92cc164 100644 Binary files a/dev/examples/data/italy/parameters/2015Q3.jld2 and b/dev/examples/data/italy/parameters/2015Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2015Q4.jld2 b/dev/examples/data/italy/parameters/2015Q4.jld2 index d3a699d..a679453 100644 Binary files a/dev/examples/data/italy/parameters/2015Q4.jld2 and b/dev/examples/data/italy/parameters/2015Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2016Q1.jld2 b/dev/examples/data/italy/parameters/2016Q1.jld2 index 122697e..8cbf9c5 100644 Binary files a/dev/examples/data/italy/parameters/2016Q1.jld2 and b/dev/examples/data/italy/parameters/2016Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2016Q2.jld2 b/dev/examples/data/italy/parameters/2016Q2.jld2 index cfd5439..ed93801 100644 Binary files a/dev/examples/data/italy/parameters/2016Q2.jld2 and b/dev/examples/data/italy/parameters/2016Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2016Q3.jld2 b/dev/examples/data/italy/parameters/2016Q3.jld2 index 21be3b7..ee3cf86 100644 Binary files a/dev/examples/data/italy/parameters/2016Q3.jld2 and b/dev/examples/data/italy/parameters/2016Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2016Q4.jld2 b/dev/examples/data/italy/parameters/2016Q4.jld2 index 3847873..55c328d 100644 Binary files a/dev/examples/data/italy/parameters/2016Q4.jld2 and b/dev/examples/data/italy/parameters/2016Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2017Q1.jld2 b/dev/examples/data/italy/parameters/2017Q1.jld2 index 0b24862..b6a8b79 100644 Binary files a/dev/examples/data/italy/parameters/2017Q1.jld2 and b/dev/examples/data/italy/parameters/2017Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2017Q2.jld2 b/dev/examples/data/italy/parameters/2017Q2.jld2 index 87e176b..ac189f6 100644 Binary files a/dev/examples/data/italy/parameters/2017Q2.jld2 and b/dev/examples/data/italy/parameters/2017Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2017Q3.jld2 b/dev/examples/data/italy/parameters/2017Q3.jld2 index 95c8e02..35d3376 100644 Binary files a/dev/examples/data/italy/parameters/2017Q3.jld2 and b/dev/examples/data/italy/parameters/2017Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2017Q4.jld2 b/dev/examples/data/italy/parameters/2017Q4.jld2 index 47cde35..2621bcd 100644 Binary files a/dev/examples/data/italy/parameters/2017Q4.jld2 and b/dev/examples/data/italy/parameters/2017Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2018Q1.jld2 b/dev/examples/data/italy/parameters/2018Q1.jld2 index a532ec7..cc956f0 100644 Binary files a/dev/examples/data/italy/parameters/2018Q1.jld2 and b/dev/examples/data/italy/parameters/2018Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2018Q2.jld2 b/dev/examples/data/italy/parameters/2018Q2.jld2 index 1ec1bf6..728189d 100644 Binary files a/dev/examples/data/italy/parameters/2018Q2.jld2 and b/dev/examples/data/italy/parameters/2018Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2018Q3.jld2 b/dev/examples/data/italy/parameters/2018Q3.jld2 index fdb2d3c..b3e141c 100644 Binary files a/dev/examples/data/italy/parameters/2018Q3.jld2 and b/dev/examples/data/italy/parameters/2018Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2018Q4.jld2 b/dev/examples/data/italy/parameters/2018Q4.jld2 index 28af90d..2259245 100644 Binary files a/dev/examples/data/italy/parameters/2018Q4.jld2 and b/dev/examples/data/italy/parameters/2018Q4.jld2 differ diff --git a/dev/examples/data/italy/parameters/2019Q1.jld2 b/dev/examples/data/italy/parameters/2019Q1.jld2 index 73a6a87..864a778 100644 Binary files a/dev/examples/data/italy/parameters/2019Q1.jld2 and b/dev/examples/data/italy/parameters/2019Q1.jld2 differ diff --git a/dev/examples/data/italy/parameters/2019Q2.jld2 b/dev/examples/data/italy/parameters/2019Q2.jld2 index 7503a5a..f2d1877 100644 Binary files a/dev/examples/data/italy/parameters/2019Q2.jld2 and b/dev/examples/data/italy/parameters/2019Q2.jld2 differ diff --git a/dev/examples/data/italy/parameters/2019Q3.jld2 b/dev/examples/data/italy/parameters/2019Q3.jld2 index 83c530c..7183e5b 100644 Binary files a/dev/examples/data/italy/parameters/2019Q3.jld2 and b/dev/examples/data/italy/parameters/2019Q3.jld2 differ diff --git a/dev/examples/data/italy/parameters/2019Q4.jld2 b/dev/examples/data/italy/parameters/2019Q4.jld2 index 655574c..20ab44e 100644 Binary files a/dev/examples/data/italy/parameters/2019Q4.jld2 and b/dev/examples/data/italy/parameters/2019Q4.jld2 differ diff --git a/dev/examples/get_parameters_and_initial_conditions.html b/dev/examples/get_parameters_and_initial_conditions.html index f043972..49b1941 100644 --- a/dev/examples/get_parameters_and_initial_conditions.html +++ b/dev/examples/get_parameters_and_initial_conditions.html @@ -31,4 +31,4 @@ ".jld2", init_conds, ) -end +end diff --git a/dev/examples/multithreading_speedup.html b/dev/examples/multithreading_speedup.html index 2ee4ba5..582777e 100644 --- a/dev/examples/multithreading_speedup.html +++ b/dev/examples/multithreading_speedup.html @@ -3,9 +3,9 @@ using FileIO, Plots, StatsPlots

First, we initialise the model, this time we use the Italy 2010Q1 scenario, and we want to simulate the model for a large number of epochs

parameters = Bit.ITALY2010Q1.parameters
 initial_conditions = Bit.ITALY2010Q1.initial_conditions
 T = 50
-model = Bit.init_model(parameters, initial_conditions, T);

The model is in scale 1:2000, so it has around 30,000 households

model.prop.H
29915

Note that the households number is actually the sum of active and inactive households, the owners of firms and of the bank

length(model.w_act) + length(model.w_inact) + length(model.firms) + 1
29915

Let's fist check how many threads we have available in this Julia session

Threads.nthreads()
2

Then we need to first compile the code not to count compilation time, we can do that just by executing the function one time

Bit.run_one_sim!(model; multi_threading = false);

Let's now compare the performance of single threading and multi threading

model = Bit.init_model(parameters, initial_conditions, T);
-@time data = Bit.run_one_sim!(model; multi_threading = false);
+model = Bit.init_model(parameters, initial_conditions, T);

The model is in scale 1:2000, so it has around 30,000 households

model.prop.H
29915

Note that the households number is actually the sum of active and inactive households, the owners of firms and of the bank

length(model.w_act) + length(model.w_inact) + length(model.firms) + 1
29915

Let's fist check how many threads we have available in this Julia session

Threads.nthreads()
2

Then we need to first compile the code not to count compilation time, we can do that just by executing the function one time

Bit.run!(model; multi_threading = false);

Let's now compare the performance of single threading and multi threading

model = Bit.init_model(parameters, initial_conditions, T);
+@time data = Bit.run!(model; multi_threading = false);
 
 model = Bit.init_model(parameters, initial_conditions, T);
-@time data = Bit.run_one_sim!(model; multi_threading = true);
  5.702206 seconds (3.42 M allocations: 6.010 GiB, 20.83% gc time)
-  2.719377 seconds (3.49 M allocations: 6.254 GiB, 8.82% gc time)

Is the speedup in line to what we would expect? Yes!

+@time data = Bit.run!(model; multi_threading = true);
  5.705671 seconds (3.42 M allocations: 6.010 GiB, 20.57% gc time)
+  2.930004 seconds (3.49 M allocations: 6.254 GiB, 14.59% gc time)

Is the speedup in line to what we would expect? Yes!

diff --git a/dev/examples/scenario_analysis_via_overload-4f56a4a8.svg b/dev/examples/scenario_analysis_via_overload-7f2eed8c.svg similarity index 86% rename from dev/examples/scenario_analysis_via_overload-4f56a4a8.svg rename to dev/examples/scenario_analysis_via_overload-7f2eed8c.svg index 83ee401..fa19c89 100644 --- a/dev/examples/scenario_analysis_via_overload-4f56a4a8.svg +++ b/dev/examples/scenario_analysis_via_overload-7f2eed8c.svg @@ -1,48 +1,48 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/scenario_analysis_via_overload.html b/dev/examples/scenario_analysis_via_overload.html index 85e8db8..da89633 100644 --- a/dev/examples/scenario_analysis_via_overload.html +++ b/dev/examples/scenario_analysis_via_overload.html @@ -25,7 +25,7 @@ "D_I" => 54049.0 ⋮ => ⋮

Initialise the model and the data collector

T = 20
 model = Bit.init_model(parameters, initial_conditions, T);
-data = Bit.init_data(model);

Simulate the model for T quarters

data_vec_baseline = Bit.run_n_sims(model, 4)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72470.3001250894, 72746.25123635326, 73080.77902122147, 73654.56674465675, 74367.44601843781, 74879.54128679796, 75284.71520524375, 76024.51469640991, 76664.89824035026  …  77507.6060886566, 77851.36003444636, 77935.26138823139, 77761.2601259757, 78369.37793930309, 78395.22737839939, 78405.11580975066, 78688.30914238012, 78993.96065975128, 78867.40548601138], [72422.0, 72397.28983757908, 72599.74848117842, 72860.12552268404, 73358.20146802087, 73993.59220996086, 74428.05486848806, 74755.3974280623, 75413.94299491169, 75972.56762239202  …  76652.9833211439, 76915.38029666171, 76920.70093480225, 76671.64398604339, 77193.39365363526, 77141.06098001561, 77073.0655626361, 77273.51982558685, 77495.52414228271, 77293.42171815403], [64900.92049553801, 64966.370940930254, 65233.714801294336, 65553.63325964153, 66111.40355757861, 66767.95839466019, 67245.00702582242, 67623.45230464965, 68313.98150241056, 68882.69748479423  …  69672.82000094304, 69978.73753180778, 70038.4713149197, 69948.61070833125, 70481.89131944004, 70466.30120417888, 70496.68382850083, 70763.27167721959, 71030.22256329648, 70899.91869878172], [64900.92049553801, 64900.920495538, 65102.34144821762, 65355.70654465153, 65845.3898496703, 66432.30809514761, 66839.55305468991, 67147.99994540714, 67765.33500215196, 68260.64486865734  …  68904.58600102422, 69137.40758745559, 69126.71119570006, 68968.46796025634, 69424.26398086394, 69338.98172129637, 69298.99252807126, 69490.97186697561, 69682.85020161426, 69484.94478799318], [40512.94792630534, 40343.176919281956, 40377.30796437989, 40455.43529887678, 40446.25673752128, 40711.28937380646, 40871.36313244492, 40977.14654824399, 41119.83356355162, 41537.67823229206  …  41779.39334713298, 41997.07746319392, 42186.55605267624, 41838.656856651985, 42108.17008716498, 42348.96711007872, 42294.22555277289, 42432.484143092806, 42596.97393730176, 42572.6927556393], [40512.94792630534, 40302.533139128216, 40295.992614615636, 40333.2878142289, 40283.512367461255, 40506.62898279837, 40624.92912610617, 40689.04115969298, 40789.58999876882, 41162.567756713535  …  41318.720871627964, 41492.161254481245, 41637.371887831956, 41252.39995044645, 41476.309178952986, 41671.468576917316, 41575.67507277879, 41669.56235833289, 41788.95189677843, 41723.05497513393], [14866.888022051655, 14809.90943593952, 14716.887958410754, 14892.97792589506, 15032.339247438205, 15351.004260312455, 15548.078351727612, 15659.548950889404, 16036.09526501224, 16206.788019505717  …  16422.392693967187, 16417.031988329192, 16184.221008851518, 16304.600533869683, 16323.422223482055, 16273.486835819805, 16108.720220833131, 16127.714868427374, 16347.936845102751, 16479.531698997584], [14866.888022051655, 14794.989175583829, 14687.249803909841, 14848.011414494917, 14971.853339008432, 15273.832974838411, 15454.331166769074, 15549.448545783898, 15907.305413338107, 16060.430875334107  …  16241.314327577626, 16219.65574096705, 15973.53498159432, 16076.135153189467, 16078.478489999765, 16013.143686669768, 15835.043885695422, 15837.74398267798, 16037.832815004984, 16150.644052240747], [15944.236265986641, 16041.675113200012, 16038.371153569975, 15875.95166824005, 16132.439959536114, 16294.85737347352, 16430.48170792678, 16406.6030314156, 16620.416949347466, 16783.969192689  …  17023.745286455192, 17226.760230866123, 17358.90109633304, 18099.81839929218, 17457.552390527853, 17430.025548624486, 18225.154497150594, 18465.226840510408, 17940.780012043982, 17064.473337535772], [15944.236265986641, 16025.513909090978, 16006.071680778181, 15828.01725477149, 16067.527555014132, 16212.941228522783, 16331.414069290928, 16291.250178927377, 16486.93426554608, 16632.399751788707  …  16836.036220928116, 17019.64890337448, 17132.923095443373, 17846.197840343375, 17195.590284698897, 17151.180099774127, 17915.5213654231, 18133.22827616398, 17600.46133834547, 16723.911810567846], [15944.236265986641, 15943.540393781193, 15977.314163300152, 16035.341806534283, 16132.707856253328, 16263.55715181466, 16378.109388254747, 16483.02550314188, 16613.289785358058, 16749.098935792706  …  16946.504436788004, 17024.243476919106, 17090.972642913668, 18143.950323548997, 17169.98200501877, 17222.719030758755, 18538.005876175615, 18588.490370516905, 17325.355534604758, 17339.769127663112], [15944.236265986641, 15927.478055608512, 15945.137652408734, 15986.926144889145, 16067.794373790242, 16181.798356721956, 16279.35752867711, 16367.135333447224, 16479.864341575383, 16597.844394501742  …  16759.64705268987, 16819.56693769799, 16868.482531951428, 17889.711373683193, 16912.335082789254, 16947.190070393317, 18223.05760968381, 18254.275569383793, 16996.710848424245, 16993.71342851658], [3173.2320350842083, 3159.6570248228027, 3154.5852216124954, 3149.72915927931, 3137.211589301899, 3143.136813129596, 3156.6321262971014, 3166.529603176966, 3170.682781993743, 3202.295898638117  …  3228.2191472136087, 3235.993797842712, 3278.866926982654, 2906.0042784607954, 3295.152587424633, 3317.3539647850253, 3212.9358574543808, 3205.2190702677776, 3340.1382403813036, 3349.0025169468727], [3173.2320350842083, 3156.473824706087, 3148.2322423380288, 3140.2191517540964, 3124.5883315512683, 3127.3358984678025, 3137.5992034435094, 3144.266114414822, 3145.218243497915, 3173.377220738892  …  3192.6238073372406, 3197.0885735147444, 3236.1826701146133, 2865.284398672405, 3245.706646119718, 3264.2829550653064, 3158.350235601972, 3147.5903100615865, 3276.7791548134983, 3282.165329040107], [34195.564496956766, 35997.919416067445, 36644.849567287056, 36291.05851916763, 36353.64837950781, 35644.809730852685, 34567.292361939915, 35135.51347739926, 36770.15824797828, 36212.65875021221  …  34181.197977347874, 33838.67610706623, 33631.580617701045, 32800.12983157711, 32455.911623910055, 34286.207324481424, 33098.07817588594, 33211.13634648641, 32959.23113596715, 32842.196193542644], [34195.564496956766, 35961.65327060083, 36571.05096827567, 36181.48457735793, 36207.37151529017, 35465.619122814154, 34358.86876918058, 34888.47990832369, 36474.84800265169, 35885.63643640377  …  33804.30554721801, 33431.84551122749, 33193.7650375228, 32340.5237141034, 31968.889230082914, 33737.69677616925, 32535.764062095408, 32614.01129177782, 32334.027448123903, 32186.753258772987], [33097.63671130043, 34722.380759398904, 35031.16540729444, 34434.64439095769, 34310.117579346304, 33634.5147200071, 32537.67426724118, 32894.096802704495, 34521.989329479606, 34076.19595434841  …  31899.12321624637, 31628.18575500912, 31425.99738733021, 31281.945495415224, 29975.678385781757, 31943.459440604867, 31321.062636891937, 31548.253056136884, 30850.961270664393, 30091.48849970398], [33097.63671130043, 34687.39965682428, 34960.61658640087, 34330.67553816879, 34172.06330875281, 33465.430099012716, 32341.48826285867, 32662.82236466574, 34244.73468539303, 33768.46719784789  …  31547.393646207594, 31247.93111338851, 31016.894067589943, 30843.6126720393, 29525.873530099267, 31432.428159514693, 30788.938823356646, 30981.026083365767, 30265.749355970165, 29490.942378561474], [29576.147776884874, 29605.97434991661, 29729.192014257525, 29893.755973157713, 30118.117804941332, 30381.24776001597, 30582.76286844457, 30773.3654173773, 31033.581982105443, 31282.954609247834  …  31631.98312959171, 31767.435180810877, 31831.31179085017, 31834.60002055474, 32020.774273031904, 32046.1701064416, 32083.565475433556, 32200.852644469738, 32313.67374776661, 32262.63094753929], [34346.71094688275, 34381.34847608993, 34515.04722097475, 34665.59403335142, 34994.291640733725, 35379.13618770702, 35648.542808632475, 35836.78761387134, 36254.03758869409, 36562.32307123978  …  36996.40332847039, 37168.768562403384, 37166.61195903388, 37076.744202757945, 37414.67708386695, 37376.484509184855, 37368.7104000701, 37514.04014923688, 37660.6047882823, 37586.02838634187], [28335.32931213966, 28363.90456052843, 28474.203272122384, 28598.40129248547, 28869.57005049824, 29187.058877574975, 29409.313792597237, 29564.611880847715, 29908.834518653384, 30163.163693973638  …  30521.270968220346, 30663.468737113224, 30661.689583739113, 30587.550535241586, 30866.33820391915, 30834.83011621407, 30828.41663626789, 30948.310686905214, 31069.223496265316, 31007.69950023657], [978.061771770434, 979.0481149238881, 989.4755660620518, 994.2832531323884, 998.994111903607, 1007.5744469372357, 1013.7013487453763, 1013.2992734010326, 1026.3619316111265, 1037.4198043066735  …  1044.4335428809654, 1042.5337885934443, 1040.5475650356284, 1037.266485018582, 1046.4399625412486, 1043.6465885523507, 1044.4079529971646, 1048.3788835129521, 1055.944027247683, 1051.2593649005075], [0.0019383188997990075, 0.0018426242133879889, 0.00029411039146154394, 0.00230828252602433, 0.005498448801291245, 0.0029881422044921724, 0.0027522702635949248, 0.001463113521419368, 0.005567029253997546, 0.0034940686412350264  …  0.0027377360148905794, -0.00010783313933204752, -1.9564434050822754e-5, -0.0006834338431976894, 0.0026248879462582586, 0.005102405901998619, 0.011252264215454444, 0.010001164127115825, 0.007839834065944462, 0.0049132187462639365], [2.3548476e6, 2.395581047626104e6, 2.411796841107225e6, 2.399114214254514e6, 2.408189016370932e6, 2.3965859345906777e6, 2.3952283607571884e6, 2.384481693613651e6, 2.409183128693509e6, 2.3989979856364084e6  …  2.3662206228758427e6, 2.3551952730180705e6, 2.3610909487695713e6, 2.36287872748613e6, 2.344651278779684e6, 2.3562359577349937e6, 2.350106636264971e6, 2.360029908299609e6, 2.3338894945266447e6, 2.3394887029871424e6], [0.0016459319014481277, 0.003267763490463495, 0.0036983926095869413, 0.002960325984666119, 0.003239395016106097, 0.002594228848788618, 0.002409612010157813, 0.0018234851253164297, 0.0028351739428836595, 0.0022896294081787665  …  0.0008457120076579038, 0.0003223209509482965, 0.000544230422341426, 0.000562732367430864, 0.0, 0.0006030763819872008, 0.0005607805381102384, 0.0011640938056949384, 0.0001683564160401531, 0.0005046153818126045], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 584.0523201857227 287.15961974330037 … 147.33793625935073 534.0448885316691; 585.9010471640476 288.9425640873933 … 148.08776729202447 537.6536083113194], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 572.973431149533 281.71248863388365 … 144.5430828014968 523.9145905157213; 574.2080197070914 283.17603857645474 … 145.13232910435366 526.9234714823348]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72494.82814074434, 72514.43062947546, 72866.73313580062, 73178.40145091212, 73344.37011362263, 73312.61693863122, 73279.42802887043, 73436.88342773783, 73468.29324725643  …  73666.50946852104, 73915.45963344151, 74301.80719967531, 74781.40601904968, 75156.90389464775, 75401.22496619751, 75666.7863264519, 76108.27566518498, 76630.97401893434, 77106.27657938022], [72422.0, 72421.79314245634, 72368.39473488841, 72646.72590806239, 72883.95212959626, 72975.65942681854, 72870.57829536856, 72764.20918462532, 72847.09363366597, 72804.82991486185  …  72854.23981690794, 73026.79985286316, 73334.5470165395, 73733.54456678944, 74029.12490413441, 74194.95660124802, 74381.25845772067, 74739.87448203268, 75177.36099737951, 75567.44026305902], [64900.92049553801, 64966.370940930254, 65003.57608323345, 65324.79388190135, 65614.84164803571, 65749.02158380166, 65705.68395284336, 65666.11735320208, 65807.27988162232, 65829.74096082881  …  65996.10944185175, 66229.07340367841, 66607.377444053, 67048.77723179937, 67384.08306556713, 67618.98423116616, 67862.3090813843, 68270.52924599411, 68755.09989840338, 69197.77923325532], [64900.92049553801, 64900.920495538, 64872.66620360993, 65127.55810384411, 65350.82596569709, 65418.49359825477, 65309.511334786745, 65204.42678057028, 65278.765322749416, 65235.258397288715  …  65268.41598642802, 65432.82436280534, 65740.28327053452, 66109.2678962235, 66372.94038620825, 66537.21610890237, 66709.37403820443, 67043.04810576132, 67450.8843407892, 67816.77550156445], [40512.94792630534, 40549.1178616967, 40423.88293314018, 40571.8424226656, 40641.72742989397, 40866.627201030016, 40950.55780731384, 41021.271633889715, 41101.29478188216, 41163.934360294705  …  41267.95767950847, 41326.30324374495, 41302.78118165597, 41469.33979327198, 41670.72686565606, 41706.97566744591, 41831.40887962545, 41986.03529966863, 42158.62135952569, 42265.330314627914], [40512.94792630534, 40508.266606102814, 40342.47378663548, 40449.34346886999, 40478.19654070304, 40661.18590868111, 40703.646296445986, 40732.85600716905, 40771.2001066452, 40792.199018992585  …  40812.924451397615, 40829.45151942602, 40765.10198924515, 40888.25787821704, 41045.43008195162, 41039.74770970501, 41120.72134399997, 41231.1405148664, 41358.914429481134, 41421.826671412775], [14866.888022051655, 14840.540003704746, 14902.501113492384, 15075.640918886062, 15122.885187522408, 15049.075147581101, 14932.741358142333, 15162.288479110894, 15126.97854477124, 15131.240162704093  …  15512.913799247073, 15614.830284144698, 15784.340844921586, 15996.566382513269, 16143.170837441101, 15974.863363030008, 16136.082673940024, 16196.223302640077, 16317.298420814714, 16434.10037057361], [14866.888022051655, 14825.588884548208, 14872.489155006328, 15030.122891355464, 15062.034947676833, 14973.421694905244, 14842.7043494284, 15055.684252570787, 15005.490034578279, 14994.59586925597  …  15341.86362762732, 15427.09862796762, 15578.86045363975, 15772.417276831999, 15900.93189507787, 15719.297590486483, 15861.941469105364, 15905.020658299143, 16007.775571017299, 16106.119412366246], [15944.236265986641, 16043.892890018908, 15887.058072847438, 15995.629460360855, 16176.855392860085, 16423.742795090337, 16509.0013244404, 15901.001121919957, 16245.686871331154, 16281.142295384754  …  15947.26084065535, 15795.12882289075, 15969.885541386862, 16443.821535047293, 16450.331926308285, 16609.883691160398, 16438.86626795465, 16620.634599924735, 16751.69746236764, 17011.551275325735], [15944.236265986641, 16027.72945160806, 15855.063327554903, 15947.333702584223, 16111.764273116936, 16341.178728121182, 16409.460251541783, 15789.203095642393, 16115.213737570968, 16134.113686919167  …  15771.421424607566, 15605.229500292111, 15761.989731101823, 16213.40534428948, 16203.48382890039, 16344.158867046202, 16159.580973259728, 16321.801183289037, 16433.93449672364, 16672.04593204176], [15944.236265986641, 15958.916659849569, 15959.795072733654, 16006.974254698385, 16061.212140356376, 16125.661053619699, 16131.422552083155, 16126.131250707176, 16161.125188476779, 16180.231182746702  …  16212.623750043944, 16242.837335238251, 16298.058896681445, 16377.588138365507, 16445.450277246695, 16508.25581502087, 16591.09923502998, 16657.730244445604, 16751.973204861253, 16831.056748242765], [15944.236265986641, 15942.83883083989, 15927.653843317123, 15958.644243475166, 15996.58633656082, 16044.595478265528, 16034.158091522595, 16012.750361573304, 16031.331190529403, 16034.113862948747  …  16033.85836072126, 16047.555369410187, 16085.890928938788, 16148.100031565049, 16198.675432207718, 16244.156833086812, 16309.227604490545, 16358.229860605506, 16434.20500865762, 16495.153595928117], [3173.2320350842083, 3175.03329089118, 3170.466032380765, 3155.409287680573, 3155.986160256113, 3190.5408478618174, 3203.099090471577, 3213.1820211242375, 3220.1335610152278, 3223.9068123989814  …  3232.492726022871, 3223.0807456248763, 3214.4643211456005, 3212.5811962072576, 3218.5011861637227, 3233.698394294797, 3260.1866882972895, 3247.300501000244, 3252.579300874648, 3255.237407766047], [3173.2320350842083, 3171.8345999374656, 3164.0810709423713, 3145.88213008908, 3143.287358908377, 3174.501627598975, 3183.7859949184185, 3190.590524822973, 3194.271871068868, 3194.792974816214  …  3196.8502643486054, 3184.330770418096, 3172.6184567563364, 3167.565460652562, 3170.2054497695535, 3181.9657059124183, 3204.7983065707162, 3188.91513083146, 3190.8811209164633, 3190.2715221917297], [34195.564496956766, 34536.765500715366, 34086.56710210201, 34205.942312055224, 34798.74139245234, 34778.98842954654, 35589.618477683, 34827.37415580526, 33889.59022586043, 33857.95308047997  …  34600.58102029409, 34975.20925066238, 35120.233777881745, 35424.57349313532, 35476.555438625095, 35542.70302326475, 35882.82672573954, 36570.06375939923, 36965.89681654932, 38233.50466015955], [34195.564496956766, 34501.97139644736, 34017.92059578676, 34102.66398165141, 34658.72103695813, 34604.15040598257, 35375.03076654893, 34582.5070772361, 33617.41453555957, 33552.19518974973  …  34219.06434339798, 34554.714513397514, 34663.03892575017, 34928.19281507263, 34944.20628896413, 34974.091063963315, 35273.201604807684, 35912.54632021217, 36264.69068346908, 37470.46553959303], [33097.63671130043, 33475.488115391076, 32785.578592106365, 32982.321978166976, 33561.807951816634, 33774.06345962531, 34669.30202894816, 33632.50736185511, 32926.66699610697, 32965.976651606965  …  33662.20387118372, 33796.01196800112, 33875.434146170795, 34552.89518491815, 34583.881173382666, 34433.20077870344, 34622.39822080757, 35264.681296447416, 35562.54004032287, 36838.21004130639], [33097.63671130043, 33441.76319624989, 32719.55213009477, 32882.73813639846, 33426.764668858676, 33604.277310871534, 34460.26336859633, 33396.041247992776, 32662.22478068786, 32668.27385005546  …  33291.03403012237, 33389.69430821998, 33434.44408319731, 34068.72874762167, 34064.92719075953, 33882.33862995288, 34034.186933451776, 34630.63419463378, 34887.95418331153, 36103.01729235463], [29576.147776884874, 29605.9743499166, 29627.00753034763, 29746.179543201713, 29853.77299094959, 29943.16891491739, 29937.858614223376, 29928.137327237775, 29963.273919416166, 29988.708960433043  …  30012.22998730862, 30101.270095257736, 30247.37976533303, 30427.54731266079, 30558.818896382414, 30679.671642771485, 30826.318887233872, 30999.681274385857, 31204.944563711742, 31373.961949881028], [34346.71094688275, 34381.34847608994, 34395.21937914167, 34594.82627901853, 34772.76121208655, 34814.518689442964, 34777.10704890096, 34740.80170117915, 34845.729061343874, 34844.74233037029  …  34988.34100811063, 35122.07362990801, 35347.47273299772, 35605.945664893596, 35800.95748050518, 35911.86290246185, 36006.308394067324, 36236.695273363905, 36506.48062458666, 36773.21332644199], [28335.32931213966, 28363.904560528437, 28375.34776993604, 28540.019352310643, 28686.812008306522, 28721.261067314474, 28690.39723419506, 28660.446069873098, 28747.008981492756, 28746.19494875692  …  28864.66090111122, 28974.987560460493, 29160.93717940901, 29374.172026112974, 29535.05275858422, 29626.547448090412, 29704.463033976554, 29894.527465594478, 30117.094825313732, 30337.14381216071], [978.061771770434, 979.0481149238881, 981.3491737441152, 983.7880596810736, 988.3074449996182, 991.3339794413154, 990.7182897190061, 997.1783247851959, 998.2769008623079, 996.2896700254654  …  995.5384464325591, 1005.7296785126966, 1012.5249457222441, 1015.2842542449984, 1024.30668867953, 1027.449685932874, 1029.681800083071, 1034.1526982442922, 1043.6747101049982, 1050.6039569322836], [0.0019383188997990075, 0.003670661446680601, 0.007442409099801317, 0.005617281920365258, 0.0022080733357068283, 0.010738087462731416, 0.00616617145847953, 0.005843191668416958, 0.008523959922530855, 0.005969424168530857  …  0.0025994113769105542, 0.0027650006064385835, 0.00432810300466735, 0.0022613964670905595, 0.005817582826310286, 0.003076073267472612, 0.002531126491160718, 0.0026145430113406753, 0.0025743505205411132, 0.007160124539155044], [2.3548476e6, 2.363259172254203e6, 2.36108172861078e6, 2.3677188062344543e6, 2.384703645257046e6, 2.3785596760298023e6, 2.3952840002629063e6, 2.380596737370255e6, 2.360885548091189e6, 2.3641086965332055e6  …  2.3649428789815065e6, 2.3702556404729825e6, 2.3686717727849702e6, 2.3811651239372953e6, 2.3981211637083017e6, 2.375626168324149e6, 2.3867049013123414e6, 2.4151166236604694e6, 2.4155459853162947e6, 2.4221244870225955e6], [0.0016459319014481277, 0.0019596568746032225, 0.0018947397785068982, 0.00215986477014813, 0.0027562194021338053, 0.002545170531541564, 0.003189841463406328, 0.002484659578115064, 0.0016819066307931442, 0.0018286601300288273  …  0.0017507709686563142, 0.0019055693549152877, 0.0017980888126053402, 0.002235656036692095, 0.0029040567216070752, 0.0018370086279795041, 0.002217795011713674, 0.0032844958115116896, 0.00311789706852109, 0.003319253709044883], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 539.3980884087496 268.85414494118663 … 143.3013467236465 528.9370499882882; 543.327630596746 270.9691817046565 … 144.0760155344181 531.6507664849597], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 529.166245539063 263.754250401298 … 140.5830633366656 518.9036425666917; 532.4842553656486 265.5613571291604 … 141.20064124777397 521.0404304220477]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72476.1260604672, 72589.39768508835, 72888.17663243026, 73226.31813864816, 73342.8862096448, 73791.70466782898, 74039.93500762562, 74195.35746112323, 74453.80262532343  …  75295.11024886799, 75756.68482768678, 76220.26329520467, 76822.10803189008, 77430.05870009365, 77815.32678437645, 78004.49000252684, 78341.54481754996, 78518.48868295098, 78450.00139220073], [72422.0, 72403.10990361156, 72443.21081529628, 72668.10466013658, 72931.67601404755, 72974.18298259884, 73346.77736366936, 73519.36913028854, 73599.47617428823, 73781.43954438201  …  74464.88314280231, 74845.88863903872, 75228.02866980124, 75745.65159741908, 76268.16952011106, 76570.43763237285, 76679.246118747, 76932.99020661761, 77029.07139387773, 76884.34790051047], [64900.92049553801, 64966.370940930254, 65085.103486976746, 65381.83452869844, 65669.57844166887, 65779.32105243731, 66191.7866200011, 66406.69233789192, 66538.82048015032, 66781.54038213399  …  67578.45025745402, 68013.4330661821, 68454.85113339443, 69017.85788752338, 69563.5109241009, 69916.45580721436, 70087.3874869465, 70396.31413046017, 70544.49403463582, 70456.29061441834], [64900.92049553801, 64900.920495538, 64954.029420346094, 65184.426527268115, 65405.34251385608, 65448.64074793442, 65792.68304445808, 65939.79487162094, 66004.43073759844, 66178.46249144108  …  66833.3094242152, 67195.73129168591, 67563.7065658623, 68050.7571515531, 68519.66449002585, 68797.93274784174, 68896.6498564053, 69130.61209341163, 69206.33545789127, 69050.17034093961], [40512.94792630534, 40429.63503431702, 40392.872137534876, 40367.3062814539, 40659.05472350517, 40697.80609235533, 40863.74257281692, 41073.23701271076, 41202.943357411576, 41246.86305040824  …  41398.50012092181, 41522.6039479131, 41567.26524055019, 41725.85221902775, 42079.77494336597, 42276.89139068349, 42391.11876905305, 42497.99653783263, 42726.62224401853, 42857.105468065034], [40512.94792630534, 40388.9041518355, 40311.5254432792, 40245.424885595436, 40495.45411415455, 40493.213483372805, 40617.35451466541, 40784.45602366216, 40872.032317296005, 40874.378812641335  …  40942.02749159368, 41023.39216872129, 41026.14299730551, 41141.17596819759, 41448.34012304419, 41600.545924467995, 41670.922138404625, 41733.89686226256, 41916.140904637374, 42001.79156584651], [14866.888022051655, 14798.596225020288, 14879.27730185299, 14962.58596803014, 14741.117929641, 14961.585870784216, 14881.200775059135, 14857.278246044047, 14997.74303529765, 15078.596912046745  …  15321.86439498877, 15414.049255577063, 15544.92327373223, 15691.316165386083, 15745.307752279996, 15803.355371914808, 15859.874217998704, 15934.875828749156, 15846.196782100336, 15654.226799416698], [14866.888022051655, 14783.687362171997, 14849.312113507418, 14917.40928839933, 14681.803813948958, 14886.372236887746, 14791.474530445183, 14752.818509765279, 14877.292447480515, 14942.428019141747  …  15152.920793018626, 15228.731519649924, 15342.559617998088, 15471.444325309316, 15509.039008332276, 15550.533383230399, 15590.425609280957, 15648.372124035513, 15545.610259751204, 15341.81004462676], [15944.236265986641, 16013.619467474839, 15917.18693374723, 16084.016627316723, 16314.247361272455, 15934.317769596706, 16352.917317097124, 16364.954558965008, 16237.788792667678, 16245.590906964273  …  16537.858958378223, 16520.344724825543, 16725.11820449388, 16791.906975721788, 16942.417703261577, 17170.958072552483, 17153.613383228687, 17211.989579845795, 17642.66047863138, 17200.620252674616], [15944.236265986641, 15997.486528058476, 15885.131512322838, 16035.454001317354, 16248.603414861214, 15854.214099206205, 16254.317353187971, 16249.894531877024, 16107.379090332848, 16098.883349139613  …  16355.507425348313, 16321.726384480433, 16507.39078295258, 16556.61329823575, 16688.185533705684, 16896.257183699836, 16862.185015193598, 16902.52379968442, 17307.996834655398, 16857.341595186736], [15944.236265986641, 15948.062109808605, 15970.750302735247, 16026.092428684495, 16110.37717860167, 16148.803859338926, 16210.941461516471, 16276.093832664797, 16319.389250018141, 16356.375697090065  …  16505.84090851778, 16575.07981227419, 16695.841852961184, 16790.07055062602, 16938.1927781247, 17024.231246945317, 17090.76135309793, 17168.151633509864, 17234.605586935384, 17256.110408716213], [15944.236265986641, 15931.995216227893, 15938.587010719588, 15977.704693774811, 16045.55354850964, 16067.62194240631, 16113.197541453485, 16161.658574655048, 16188.324194205734, 16208.667685290135  …  16323.842416379766, 16375.803411070861, 16478.495550671385, 16554.8026057274, 16684.02400636141, 16751.877693007966, 16800.40079883242, 16859.474044870487, 16907.68233660143, 16911.724315217885], [3173.2320350842083, 3164.1787408502164, 3157.6604946481057, 3148.158817059689, 3160.4378292603583, 3176.109988219768, 3167.545150614754, 3197.7541684890834, 3216.100715675691, 3215.780195103441  …  3208.654947332959, 3194.9482138237436, 3221.3372504856648, 3216.067030457233, 3254.894015053389, 3270.8475463602695, 3281.3747920637193, 3295.1137780613176, 3324.65725968339, 3352.4944859117645], [3173.2320350842083, 3160.9909853254694, 3151.301322120171, 3138.6535508838347, 3147.721115647661, 3160.1433135682933, 3148.4464276483836, 3175.271143564002, 3190.2714145088053, 3186.7397458131472  …  3173.27532835793, 3156.5364662308098, 3179.4019143709857, 3171.002450256069, 3206.0521802211483, 3218.52054605602, 3225.62643868777, 3235.8687412619524, 3261.591832853662, 3285.587607586815], [34195.564496956766, 33991.09579074224, 33403.794436562544, 32415.795796186343, 34270.00254187088, 35046.55583121106, 36033.22704340319, 36466.06200929085, 36856.63607251171, 37166.75135167607  …  37382.65494216756, 37120.21636388224, 38013.738573570845, 38558.85084856853, 38926.09898827595, 37415.83169000933, 36443.29108154754, 36676.21340219363, 35695.74633837887, 37427.59592717508], [34195.564496956766, 33956.851422053354, 33336.52295748181, 32317.922472364473, 34132.109682914284, 34870.37271517068, 35815.96459309442, 36209.67351352922, 36560.63130236412, 36831.11300190431  …  36970.46226023767, 36673.93295453143, 37518.876104942996, 38018.55165390809, 38341.987158933465, 36817.253429030636, 35824.14404771575, 36016.78742815255, 35018.63369096874, 36680.640602649386], [33097.63671130043, 32756.820457086655, 32003.73312460915, 30941.528040556816, 32758.10441764138, 33297.37935430227, 34339.383040547305, 34721.59681938496, 35099.753796765035, 35283.999595771544  …  35345.76816758822, 34820.529464511004, 35630.78199714224, 35945.818176813926, 36263.54068708946, 34851.70974078374, 33843.40744930097, 33979.530531071, 33392.737160178105, 34689.54705513047], [33097.63671130043, 32723.819560507338, 31939.28121129474, 30848.10598753987, 32626.29501183148, 33129.98955203829, 34132.33362772356, 34477.47344854509, 34817.858983185, 34965.36363844465  …  34956.03482739583, 34401.89438834419, 35166.94083339766, 35442.13364823145, 35719.38230390415, 34294.15228805598, 33268.430691847665, 33368.59000751712, 32759.31029613498, 33997.235907798655], [29576.147776884874, 29605.974349916603, 29674.340850666376, 29805.186611860743, 29942.324481981217, 30042.326913038563, 30198.252590694105, 30304.20302080266, 30371.077287190437, 30453.489754518196  …  30799.286848155167, 30989.056381781564, 31198.843381200473, 31422.872332965566, 31682.98624687396, 31842.194442907217, 31940.660628685997, 32057.90444675833, 32155.92534165831, 32140.44427752901], [34346.71094688275, 34381.34847608994, 34431.04887453899, 34597.638243978065, 34750.360025908354, 34755.99751173159, 35005.728018706104, 35103.981268211945, 35164.772930896586, 35318.24855457098  …  35758.71844728528, 35997.75860319754, 36226.23389584166, 36554.15395876562, 36830.74308302971, 37019.397732445956, 37094.72438787405, 37286.26983054184, 37334.380650496016, 37266.657605043336], [28335.32931213966, 28363.904560528437, 28404.906365888382, 28542.33916550224, 28668.331490963144, 28672.982300688163, 28879.004826843684, 28960.061734593637, 29010.213604572273, 29136.827833950025  …  29500.206425904413, 29697.409632554212, 29885.897044544567, 30156.424344389306, 30384.604676773957, 30540.240878031847, 30602.383817739752, 30760.404863907024, 30800.095299739063, 30744.225181698053], [978.061771770434, 979.0481149238881, 979.7137617713636, 979.0096728596087, 976.8939337793133, 980.9966276671263, 987.8060106009552, 998.5080488773187, 1002.9702620633504, 1009.8020730447989  …  1020.4449620135584, 1026.6180812029966, 1029.773856352313, 1040.831595792162, 1049.7815941972567, 1054.8636318610886, 1052.0024703863955, 1052.1398531599443, 1054.188042481539, 1049.1887318459649], [0.0019383188997990075, 0.003146871847675259, 0.004855707399814557, 0.003940501388393969, 0.0033487692071423325, 0.005122168091932888, 0.005465102566312163, 0.002805825646938098, 0.004276338822109427, 0.00434805592956744  …  0.00833365332257996, 0.0044936709048382095, 0.002627356220916255, -0.0016626932346437417, 0.0013747725151436185, 0.004946666803204991, 0.003114706624120167, -0.0007214140896543153, 0.005865983956972354, 0.0070432105720605875], [2.3548476e6, 2.356078752217971e6, 2.3387335719517814e6, 2.3292710224374225e6, 2.372725770535728e6, 2.392926936779265e6, 2.418210899817392e6, 2.4235526151811755e6, 2.4371377176267216e6, 2.4257180464204475e6  …  2.4317864327802067e6, 2.416163473972961e6, 2.4426753365957984e6, 2.4673517067273133e6, 2.4617025195226152e6, 2.446581784051871e6, 2.4306384589016247e6, 2.4282185269098324e6, 2.4171185257708062e6, 2.4499299689597287e6], [0.0016459319014481277, 0.0016477170656485143, 0.0009130458963810005, 0.0005379113334162321, 0.002409932929429501, 0.0031864889565893983, 0.004115279709382389, 0.004092273304168035, 0.00443879464458766, 0.0037490719723000418  …  0.0037065741555815036, 0.0029033745457590545, 0.0038279962657833985, 0.004500092780586129, 0.003973282656383644, 0.0031884793718491805, 0.0023829331315187554, 0.002092035399562113, 0.0016221401447371153, 0.002998873554371181], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 569.9813024279866 288.9836141723872 … 146.83093024070783 534.6023625932912; 574.8288938600006 290.2209537765221 … 147.2495610821323 535.7844457343166], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 559.1693265414835 283.5018837108498 … 144.0456941805198 524.4614898513181; 563.3568371509506 284.42891500560825 … 144.31085126228757 525.0916124217521]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72495.0934327661, 72501.28734126521, 72930.04564973302, 73024.68684449687, 73234.06783472263, 73561.2601054505, 73758.86193111318, 73921.76863744827, 74211.16312047704  …  74741.21839252875, 74763.83259330635, 74978.48661486505, 74977.82800404096, 74996.89441046638, 75243.81669977764, 75542.6953081421, 76243.34494213988, 76870.48908075182, 77515.30409160505], [72422.0, 72422.05816720934, 72355.2779157801, 72709.84726191299, 72730.85602755725, 72865.91165031529, 73117.72226746952, 73240.2722447689, 73328.08461019817, 73540.9912217092  …  73917.09866888776, 73864.97312064645, 74002.41742586927, 73927.21422286115, 73871.51646796321, 74040.06655137271, 74259.2756624515, 74872.51525884448, 75412.33269775454, 75968.30467341928], [64900.92049553801, 64966.37094093027, 64972.65224128761, 65372.45999352788, 65448.57073958361, 65637.43218142184, 65930.67799179054, 66104.97452789062, 66253.0912561128, 66528.61571610223  …  67002.25758672842, 67009.15221900793, 67204.75308470629, 67190.38705130873, 67196.49354972002, 67421.70112918437, 67719.55223007612, 68381.19497181136, 68956.54284645063, 69541.69440587754], [64900.92049553801, 64900.920495538, 64841.804638798254, 65175.08029672171, 65185.22408465179, 65307.46516879127, 65533.148771502856, 65640.1984032504, 65720.99627570712, 65927.82188883836  …  66263.47003157107, 66203.52456272379, 66329.88228107171, 66248.89343275386, 66188.16577496543, 66343.08914085593, 66569.0425299002, 67151.72409907213, 67648.50611735748, 68153.82704153859], [40512.94792630534, 40552.82130627473, 40546.08936577118, 40619.26499675511, 40741.53328626746, 40830.461110296965, 40938.140180163144, 41037.81694251574, 41108.01937475617, 41130.179893201755  …  41451.894684930325, 41561.80199389469, 41647.48470766324, 41748.985507668964, 41802.99456456919, 41850.28831911267, 41708.8827447346, 41868.400431422655, 42113.589247341624, 42400.26709396435], [40512.94792630534, 40511.96631964133, 40464.43410927763, 40496.622859525756, 40577.60080636011, 40625.20162909649, 40691.303541415466, 40749.28498772028, 40777.87069264903, 40758.74937524936  …  40994.83331067319, 41062.11895027325, 41105.318168198006, 41163.98510565323, 41175.71301666849, 41180.76764639179, 41000.27684583138, 41115.62068196326, 41314.736531477785, 41554.07047132366], [14866.888022051655, 14849.755383039457, 14949.811922323586, 15185.51847922421, 15316.774592437385, 15461.542194208605, 15839.319667264963, 15928.356707831028, 15981.793799172921, 16149.200580777288  …  16114.562728439556, 16306.297269511384, 16209.210153067961, 16371.468323493606, 16478.372464641525, 16766.534891294712, 17017.08315583806, 17252.137193467275, 17437.73054395183, 17676.443237158197], [14866.888022051655, 14834.794979838365, 14919.70468519805, 15139.668697319565, 15255.144196117306, 15383.815221672847, 15743.81644192274, 15816.366347719337, 15853.440056016292, 16003.363486171565  …  15936.878590182512, 16110.252347036127, 15998.198817381315, 16142.065969535266, 16231.103600432803, 16498.30396217849, 16727.974344649017, 16941.949572724297, 17106.95421610851, 17323.668417734658], [15944.236265986641, 16126.335182243773, 15814.87389714446, 16093.336609659344, 16084.667378462473, 16274.134076985323, 16274.044998698571, 15998.774896043482, 16107.165270503709, 16374.083510437893  …  16434.11379283076, 16324.76451516501, 16485.78171154031, 16802.00381314276, 16488.689627032032, 16433.988540856295, 16050.708436768286, 16428.735451341236, 16533.980932784507, 16947.045561118728], [15944.236265986641, 16110.088687250463, 15783.024522650296, 16044.745843747705, 16019.947197380696, 16192.322110458528, 16175.920595669288, 15886.289434120545, 15977.804638018351, 16226.215586323045  …  16252.90618599052, 16128.497567438848, 16271.169970071078, 16566.568655477597, 16241.265946986268, 16171.077686348834, 15778.01768287113, 16133.352316815906, 16220.347832204512, 16608.827580421203], [15944.236265986641, 15959.696300796157, 15956.777335927036, 16017.49315810779, 16051.231313404709, 16082.319478201138, 16129.59382235337, 16169.132272988056, 16209.731032907104, 16253.723903789329  …  16346.640445397004, 16388.683656034656, 16430.061635078964, 16446.225943276153, 16441.868354418017, 16471.07652952607, 16498.571399560464, 16575.304036732203, 16707.283855204172, 16829.589042756692], [15944.236265986641, 15943.617686336307, 15924.642183892489, 15969.131387058413, 15986.645669651825, 16001.471785992155, 16032.340388124216, 16055.449048838816, 16079.546669388197, 16106.942900061264  …  16166.39734666171, 16191.648230780498, 16216.175257007926, 16215.77606116606, 16195.14725849729, 16207.57234158839, 16218.27175478802, 16277.285648367404, 16390.363371318304, 16493.715181942298], [3173.2320350842083, 3175.8129318377687, 3175.8956706029235, 3170.268320302439, 3183.1048857408186, 3185.1450399928094, 3187.0734319147937, 3195.5361130227966, 3206.046323058668, 3209.022563426877  …  3222.8938104476288, 3246.5533440366075, 3254.4771612125633, 3269.9001983392563, 3275.0073571931116, 3276.244759331431, 3253.7010011407733, 3222.956799897567, 3239.9483728604982, 3252.45539509136], [3173.2320350842083, 3172.613455433882, 3169.499774484797, 3160.696298690931, 3170.296966263212, 3169.132945084277, 3167.856963117879, 3173.068682978908, 3180.297771208411, 3180.0431396570443  …  3187.357189376757, 3207.5211659692136, 3212.1104100714433, 3224.0812902312155, 3225.8637083754884, 3223.8314144450082, 3198.4228068821003, 3165.009121282062, 3178.4897889882695, 3187.545031094915], [34195.564496956766, 34410.19207394154, 34493.748387588246, 34498.631785254816, 34695.11998018258, 34233.67952726984, 34526.77073729259, 34981.35642398701, 35558.85608589159, 35802.73336225539  …  35639.447824938026, 35699.80056772709, 35732.90900426023, 35486.96941499432, 35241.31465385912, 35926.3225140366, 38297.6543095382, 38448.281089433636, 38554.98235639506, 38763.66888392279], [34195.564496956766, 34375.525486218416, 34424.281864032695, 34394.46973471131, 34555.516568129555, 34061.582835038775, 34318.59146979048, 34735.4067146117, 35273.27410815215, 35479.412923799144  …  35246.47628227526, 35270.594321881916, 35267.73835215839, 34989.71442492329, 34712.49544757036, 35351.57341232013, 37647.002890175485, 37756.993934743914, 37823.63285814651, 37990.04909473505], [33097.63671130043, 33444.010512733104, 33303.236231562005, 33466.70622116038, 33813.408392852805, 33565.74907403822, 34017.01547796861, 34187.44303926412, 34834.06589287613, 35245.03422619515  …  34898.800638609595, 35128.83175299165, 35096.89896166692, 35431.59905525873, 35014.47689963541, 35733.317565522535, 37531.63333873686, 37754.20922352501, 37769.79399972116, 38272.120684558875], [33097.63671130043, 33410.31730573904, 33236.16726537831, 33365.659873391174, 33677.352740430215, 33397.01014595138, 33811.90978132834, 33947.07523940298, 34554.30488463772, 34926.75014983376  …  34513.99570023347, 34706.490065983504, 34640.007881939695, 34935.119932728194, 34489.06154369458, 35161.65615586644, 36893.99610107531, 37075.40124740293, 37053.33874018284, 37508.3108907951], [29576.147776884874, 29605.974349916603, 29607.86313817308, 29722.694152632444, 29781.166013708746, 29834.94412292219, 29903.649529315633, 29973.334452628027, 30048.028568035345, 30141.2057743373  …  30326.10298437848, 30370.287746648384, 30439.40532795694, 30452.56825842779, 30404.55673743495, 30453.35880841309, 30558.425191179565, 30807.699181161366, 31066.618101656306, 31300.261703623524], [34346.71094688275, 34381.34847608994, 34383.86204990578, 34661.69210341722, 34677.996633482435, 34806.97198317002, 35024.517047816706, 35128.595977938676, 35198.90242965375, 35368.02051735572  …  35642.07334761772, 35609.86304868942, 35739.60399888866, 35711.23738558667, 35753.01470883248, 35921.592859507036, 36122.10197206359, 36506.57650277614, 36813.52601678004, 37155.63260952071], [28335.32931213966, 28363.904560528437, 28365.978207170534, 28595.182280632787, 28608.6331822167, 28715.035190030423, 28894.505388982736, 28980.368363286798, 29038.36973830042, 29177.888678413365  …  29403.976620470083, 29377.403787083287, 29484.437399554972, 29461.03552766612, 29495.500959124187, 29634.574462307137, 29799.99035156539, 30117.17392284586, 30370.40095162753, 30652.63184646204], [978.061771770434, 979.0481149238881, 980.9270532087615, 988.073737478224, 989.4080923924478, 995.5160753296116, 1002.5114146582785, 1003.0440973238897, 1006.1602584237569, 1019.3894244091874  …  1034.0812547322575, 1029.0014236701313, 1025.7437578606412, 1026.5814072942599, 1038.9221034525463, 1046.7494612642456, 1039.025066832978, 1066.919287873829, 1076.3987280143683, 1085.8000927332023], [0.0019383188997990075, 0.0034633506059016383, 0.005598352698906739, 0.0006225011946081604, 0.0034284733921525756, 0.00424058234700575, 0.0027769535504562626, 0.0032020041555353984, -0.0013409751770999678, 0.0014787088595500375  …  0.0022741289989296476, 0.001533678506970615, 0.003133307650571071, -0.0009252416555750598, 0.0012965765920940342, 0.00801882295841394, 0.007077127040001185, 0.0046616612765635335, 0.00409651886663176, 0.0009462583459727281], [2.3548476e6, 2.3609193800396114e6, 2.353109226720007e6, 2.352490302136347e6, 2.3751859924151297e6, 2.3622637297087535e6, 2.385664180269995e6, 2.383589335185976e6, 2.3892212825519084e6, 2.391833876988108e6  …  2.3655585857613166e6, 2.3600504300908116e6, 2.3797256358432565e6, 2.37201704188347e6, 2.3608906237083897e6, 2.365031884878254e6, 2.394154125448522e6, 2.4099986223750357e6, 2.4130602034928324e6, 2.4310417628926444e6], [0.0016459319014481277, 0.001857168423137669, 0.0015227632987900974, 0.0013984424889687869, 0.0023225171795107774, 0.0017127571671481483, 0.002624029842337874, 0.0024176993835533307, 0.0024403416923662142, 0.0024011647856761373  …  0.0011134146040339319, 0.0008371508176576803, 0.0016670815781136418, 0.0012038146273035649, 0.0006830695191131415, 0.0009890500596758643, 0.002289406158072885, 0.0028778355566230355, 0.00288374054114603, 0.003424918062152449], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 507.05342570173104 260.48981114786176 … 142.76946467137773 530.3127522483616; 511.65907027180504 263.50206719700714 … 143.81513378726856 533.4656436726193], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 497.4351287707607 255.54857966392984 … 140.06127055557087 520.253249129245; 501.4477153233109 258.24326637797446 … 140.9449660068225 522.8190874853619])])

Now, apply a shock to the model and simulate it again Here, we do this by overloading the centralbankrate function with the wanted behaviour

import BeforeIT: central_bank_rate
+data = Bit.init_data(model);

Simulate the model for T quarters

data_vec_baseline = Bit.ensemblerun(model, 4)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72470.3001250894, 72746.25123635326, 73080.77902122147, 73654.56674465675, 74367.44601843781, 74879.54128679796, 75284.71520524375, 76024.51469640991, 76664.89824035026  …  77507.6060886566, 77851.36003444636, 77935.26138823139, 77761.2601259757, 78369.37793930309, 78395.22737839939, 78405.11580975066, 78688.30914238012, 78993.96065975128, 78867.40548601138], [72422.0, 72397.28983757908, 72599.74848117842, 72860.12552268404, 73358.20146802087, 73993.59220996086, 74428.05486848806, 74755.3974280623, 75413.94299491169, 75972.56762239202  …  76652.9833211439, 76915.38029666171, 76920.70093480225, 76671.64398604339, 77193.39365363526, 77141.06098001561, 77073.0655626361, 77273.51982558685, 77495.52414228271, 77293.42171815403], [64900.92049553801, 64966.370940930254, 65233.714801294336, 65553.63325964153, 66111.40355757861, 66767.95839466019, 67245.00702582242, 67623.45230464965, 68313.98150241056, 68882.69748479423  …  69672.82000094304, 69978.73753180778, 70038.4713149197, 69948.61070833125, 70481.89131944004, 70466.30120417888, 70496.68382850083, 70763.27167721959, 71030.22256329648, 70899.91869878172], [64900.92049553801, 64900.920495538, 65102.34144821762, 65355.70654465153, 65845.3898496703, 66432.30809514761, 66839.55305468991, 67147.99994540714, 67765.33500215196, 68260.64486865734  …  68904.58600102422, 69137.40758745559, 69126.71119570006, 68968.46796025634, 69424.26398086394, 69338.98172129637, 69298.99252807126, 69490.97186697561, 69682.85020161426, 69484.94478799318], [40512.94792630534, 40343.176919281956, 40377.30796437989, 40455.43529887678, 40446.25673752128, 40711.28937380646, 40871.36313244492, 40977.14654824399, 41119.83356355162, 41537.67823229206  …  41779.39334713298, 41997.07746319392, 42186.55605267624, 41838.656856651985, 42108.17008716498, 42348.96711007872, 42294.22555277289, 42432.484143092806, 42596.97393730176, 42572.6927556393], [40512.94792630534, 40302.533139128216, 40295.992614615636, 40333.2878142289, 40283.512367461255, 40506.62898279837, 40624.92912610617, 40689.04115969298, 40789.58999876882, 41162.567756713535  …  41318.720871627964, 41492.161254481245, 41637.371887831956, 41252.39995044645, 41476.309178952986, 41671.468576917316, 41575.67507277879, 41669.56235833289, 41788.95189677843, 41723.05497513393], [14866.888022051655, 14809.90943593952, 14716.887958410754, 14892.97792589506, 15032.339247438205, 15351.004260312455, 15548.078351727612, 15659.548950889404, 16036.09526501224, 16206.788019505717  …  16422.392693967187, 16417.031988329192, 16184.221008851518, 16304.600533869683, 16323.422223482055, 16273.486835819805, 16108.720220833131, 16127.714868427374, 16347.936845102751, 16479.531698997584], [14866.888022051655, 14794.989175583829, 14687.249803909841, 14848.011414494917, 14971.853339008432, 15273.832974838411, 15454.331166769074, 15549.448545783898, 15907.305413338107, 16060.430875334107  …  16241.314327577626, 16219.65574096705, 15973.53498159432, 16076.135153189467, 16078.478489999765, 16013.143686669768, 15835.043885695422, 15837.74398267798, 16037.832815004984, 16150.644052240747], [15944.236265986641, 16041.675113200012, 16038.371153569975, 15875.95166824005, 16132.439959536114, 16294.85737347352, 16430.48170792678, 16406.6030314156, 16620.416949347466, 16783.969192689  …  17023.745286455192, 17226.760230866123, 17358.90109633304, 18099.81839929218, 17457.552390527853, 17430.025548624486, 18225.154497150594, 18465.226840510408, 17940.780012043982, 17064.473337535772], [15944.236265986641, 16025.513909090978, 16006.071680778181, 15828.01725477149, 16067.527555014132, 16212.941228522783, 16331.414069290928, 16291.250178927377, 16486.93426554608, 16632.399751788707  …  16836.036220928116, 17019.64890337448, 17132.923095443373, 17846.197840343375, 17195.590284698897, 17151.180099774127, 17915.5213654231, 18133.22827616398, 17600.46133834547, 16723.911810567846], [15944.236265986641, 15943.540393781193, 15977.314163300152, 16035.341806534283, 16132.707856253328, 16263.55715181466, 16378.109388254747, 16483.02550314188, 16613.289785358058, 16749.098935792706  …  16946.504436788004, 17024.243476919106, 17090.972642913668, 18143.950323548997, 17169.98200501877, 17222.719030758755, 18538.005876175615, 18588.490370516905, 17325.355534604758, 17339.769127663112], [15944.236265986641, 15927.478055608512, 15945.137652408734, 15986.926144889145, 16067.794373790242, 16181.798356721956, 16279.35752867711, 16367.135333447224, 16479.864341575383, 16597.844394501742  …  16759.64705268987, 16819.56693769799, 16868.482531951428, 17889.711373683193, 16912.335082789254, 16947.190070393317, 18223.05760968381, 18254.275569383793, 16996.710848424245, 16993.71342851658], [3173.2320350842083, 3159.6570248228027, 3154.5852216124954, 3149.72915927931, 3137.211589301899, 3143.136813129596, 3156.6321262971014, 3166.529603176966, 3170.682781993743, 3202.295898638117  …  3228.2191472136087, 3235.993797842712, 3278.866926982654, 2906.0042784607954, 3295.152587424633, 3317.3539647850253, 3212.9358574543808, 3205.2190702677776, 3340.1382403813036, 3349.0025169468727], [3173.2320350842083, 3156.473824706087, 3148.2322423380288, 3140.2191517540964, 3124.5883315512683, 3127.3358984678025, 3137.5992034435094, 3144.266114414822, 3145.218243497915, 3173.377220738892  …  3192.6238073372406, 3197.0885735147444, 3236.1826701146133, 2865.284398672405, 3245.706646119718, 3264.2829550653064, 3158.350235601972, 3147.5903100615865, 3276.7791548134983, 3282.165329040107], [34195.564496956766, 35997.919416067445, 36644.849567287056, 36291.05851916763, 36353.64837950781, 35644.809730852685, 34567.292361939915, 35135.51347739926, 36770.15824797828, 36212.65875021221  …  34181.197977347874, 33838.67610706623, 33631.580617701045, 32800.12983157711, 32455.911623910055, 34286.207324481424, 33098.07817588594, 33211.13634648641, 32959.23113596715, 32842.196193542644], [34195.564496956766, 35961.65327060083, 36571.05096827567, 36181.48457735793, 36207.37151529017, 35465.619122814154, 34358.86876918058, 34888.47990832369, 36474.84800265169, 35885.63643640377  …  33804.30554721801, 33431.84551122749, 33193.7650375228, 32340.5237141034, 31968.889230082914, 33737.69677616925, 32535.764062095408, 32614.01129177782, 32334.027448123903, 32186.753258772987], [33097.63671130043, 34722.380759398904, 35031.16540729444, 34434.64439095769, 34310.117579346304, 33634.5147200071, 32537.67426724118, 32894.096802704495, 34521.989329479606, 34076.19595434841  …  31899.12321624637, 31628.18575500912, 31425.99738733021, 31281.945495415224, 29975.678385781757, 31943.459440604867, 31321.062636891937, 31548.253056136884, 30850.961270664393, 30091.48849970398], [33097.63671130043, 34687.39965682428, 34960.61658640087, 34330.67553816879, 34172.06330875281, 33465.430099012716, 32341.48826285867, 32662.82236466574, 34244.73468539303, 33768.46719784789  …  31547.393646207594, 31247.93111338851, 31016.894067589943, 30843.6126720393, 29525.873530099267, 31432.428159514693, 30788.938823356646, 30981.026083365767, 30265.749355970165, 29490.942378561474], [29576.147776884874, 29605.97434991661, 29729.192014257525, 29893.755973157713, 30118.117804941332, 30381.24776001597, 30582.76286844457, 30773.3654173773, 31033.581982105443, 31282.954609247834  …  31631.98312959171, 31767.435180810877, 31831.31179085017, 31834.60002055474, 32020.774273031904, 32046.1701064416, 32083.565475433556, 32200.852644469738, 32313.67374776661, 32262.63094753929], [34346.71094688275, 34381.34847608993, 34515.04722097475, 34665.59403335142, 34994.291640733725, 35379.13618770702, 35648.542808632475, 35836.78761387134, 36254.03758869409, 36562.32307123978  …  36996.40332847039, 37168.768562403384, 37166.61195903388, 37076.744202757945, 37414.67708386695, 37376.484509184855, 37368.7104000701, 37514.04014923688, 37660.6047882823, 37586.02838634187], [28335.32931213966, 28363.90456052843, 28474.203272122384, 28598.40129248547, 28869.57005049824, 29187.058877574975, 29409.313792597237, 29564.611880847715, 29908.834518653384, 30163.163693973638  …  30521.270968220346, 30663.468737113224, 30661.689583739113, 30587.550535241586, 30866.33820391915, 30834.83011621407, 30828.41663626789, 30948.310686905214, 31069.223496265316, 31007.69950023657], [978.061771770434, 979.0481149238881, 989.4755660620518, 994.2832531323884, 998.994111903607, 1007.5744469372357, 1013.7013487453763, 1013.2992734010326, 1026.3619316111265, 1037.4198043066735  …  1044.4335428809654, 1042.5337885934443, 1040.5475650356284, 1037.266485018582, 1046.4399625412486, 1043.6465885523507, 1044.4079529971646, 1048.3788835129521, 1055.944027247683, 1051.2593649005075], [0.0019383188997990075, 0.0018426242133879889, 0.00029411039146154394, 0.00230828252602433, 0.005498448801291245, 0.0029881422044921724, 0.0027522702635949248, 0.001463113521419368, 0.005567029253997546, 0.0034940686412350264  …  0.0027377360148905794, -0.00010783313933204752, -1.9564434050822754e-5, -0.0006834338431976894, 0.0026248879462582586, 0.005102405901998619, 0.011252264215454444, 0.010001164127115825, 0.007839834065944462, 0.0049132187462639365], [2.3548476e6, 2.395581047626104e6, 2.411796841107225e6, 2.399114214254514e6, 2.408189016370932e6, 2.3965859345906777e6, 2.3952283607571884e6, 2.384481693613651e6, 2.409183128693509e6, 2.3989979856364084e6  …  2.3662206228758427e6, 2.3551952730180705e6, 2.3610909487695713e6, 2.36287872748613e6, 2.344651278779684e6, 2.3562359577349937e6, 2.350106636264971e6, 2.360029908299609e6, 2.3338894945266447e6, 2.3394887029871424e6], [0.0016459319014481277, 0.003267763490463495, 0.0036983926095869413, 0.002960325984666119, 0.003239395016106097, 0.002594228848788618, 0.002409612010157813, 0.0018234851253164297, 0.0028351739428836595, 0.0022896294081787665  …  0.0008457120076579038, 0.0003223209509482965, 0.000544230422341426, 0.000562732367430864, 0.0, 0.0006030763819872008, 0.0005607805381102384, 0.0011640938056949384, 0.0001683564160401531, 0.0005046153818126045], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 584.0523201857227 287.15961974330037 … 147.33793625935073 534.0448885316691; 585.9010471640476 288.9425640873933 … 148.08776729202447 537.6536083113194], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 572.973431149533 281.71248863388365 … 144.5430828014968 523.9145905157213; 574.2080197070914 283.17603857645474 … 145.13232910435366 526.9234714823348]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72494.82814074434, 72514.43062947546, 72866.73313580062, 73178.40145091212, 73344.37011362263, 73312.61693863122, 73279.42802887043, 73436.88342773783, 73468.29324725643  …  73666.50946852104, 73915.45963344151, 74301.80719967531, 74781.40601904968, 75156.90389464775, 75401.22496619751, 75666.7863264519, 76108.27566518498, 76630.97401893434, 77106.27657938022], [72422.0, 72421.79314245634, 72368.39473488841, 72646.72590806239, 72883.95212959626, 72975.65942681854, 72870.57829536856, 72764.20918462532, 72847.09363366597, 72804.82991486185  …  72854.23981690794, 73026.79985286316, 73334.5470165395, 73733.54456678944, 74029.12490413441, 74194.95660124802, 74381.25845772067, 74739.87448203268, 75177.36099737951, 75567.44026305902], [64900.92049553801, 64966.370940930254, 65003.57608323345, 65324.79388190135, 65614.84164803571, 65749.02158380166, 65705.68395284336, 65666.11735320208, 65807.27988162232, 65829.74096082881  …  65996.10944185175, 66229.07340367841, 66607.377444053, 67048.77723179937, 67384.08306556713, 67618.98423116616, 67862.3090813843, 68270.52924599411, 68755.09989840338, 69197.77923325532], [64900.92049553801, 64900.920495538, 64872.66620360993, 65127.55810384411, 65350.82596569709, 65418.49359825477, 65309.511334786745, 65204.42678057028, 65278.765322749416, 65235.258397288715  …  65268.41598642802, 65432.82436280534, 65740.28327053452, 66109.2678962235, 66372.94038620825, 66537.21610890237, 66709.37403820443, 67043.04810576132, 67450.8843407892, 67816.77550156445], [40512.94792630534, 40549.1178616967, 40423.88293314018, 40571.8424226656, 40641.72742989397, 40866.627201030016, 40950.55780731384, 41021.271633889715, 41101.29478188216, 41163.934360294705  …  41267.95767950847, 41326.30324374495, 41302.78118165597, 41469.33979327198, 41670.72686565606, 41706.97566744591, 41831.40887962545, 41986.03529966863, 42158.62135952569, 42265.330314627914], [40512.94792630534, 40508.266606102814, 40342.47378663548, 40449.34346886999, 40478.19654070304, 40661.18590868111, 40703.646296445986, 40732.85600716905, 40771.2001066452, 40792.199018992585  …  40812.924451397615, 40829.45151942602, 40765.10198924515, 40888.25787821704, 41045.43008195162, 41039.74770970501, 41120.72134399997, 41231.1405148664, 41358.914429481134, 41421.826671412775], [14866.888022051655, 14840.540003704746, 14902.501113492384, 15075.640918886062, 15122.885187522408, 15049.075147581101, 14932.741358142333, 15162.288479110894, 15126.97854477124, 15131.240162704093  …  15512.913799247073, 15614.830284144698, 15784.340844921586, 15996.566382513269, 16143.170837441101, 15974.863363030008, 16136.082673940024, 16196.223302640077, 16317.298420814714, 16434.10037057361], [14866.888022051655, 14825.588884548208, 14872.489155006328, 15030.122891355464, 15062.034947676833, 14973.421694905244, 14842.7043494284, 15055.684252570787, 15005.490034578279, 14994.59586925597  …  15341.86362762732, 15427.09862796762, 15578.86045363975, 15772.417276831999, 15900.93189507787, 15719.297590486483, 15861.941469105364, 15905.020658299143, 16007.775571017299, 16106.119412366246], [15944.236265986641, 16043.892890018908, 15887.058072847438, 15995.629460360855, 16176.855392860085, 16423.742795090337, 16509.0013244404, 15901.001121919957, 16245.686871331154, 16281.142295384754  …  15947.26084065535, 15795.12882289075, 15969.885541386862, 16443.821535047293, 16450.331926308285, 16609.883691160398, 16438.86626795465, 16620.634599924735, 16751.69746236764, 17011.551275325735], [15944.236265986641, 16027.72945160806, 15855.063327554903, 15947.333702584223, 16111.764273116936, 16341.178728121182, 16409.460251541783, 15789.203095642393, 16115.213737570968, 16134.113686919167  …  15771.421424607566, 15605.229500292111, 15761.989731101823, 16213.40534428948, 16203.48382890039, 16344.158867046202, 16159.580973259728, 16321.801183289037, 16433.93449672364, 16672.04593204176], [15944.236265986641, 15958.916659849569, 15959.795072733654, 16006.974254698385, 16061.212140356376, 16125.661053619699, 16131.422552083155, 16126.131250707176, 16161.125188476779, 16180.231182746702  …  16212.623750043944, 16242.837335238251, 16298.058896681445, 16377.588138365507, 16445.450277246695, 16508.25581502087, 16591.09923502998, 16657.730244445604, 16751.973204861253, 16831.056748242765], [15944.236265986641, 15942.83883083989, 15927.653843317123, 15958.644243475166, 15996.58633656082, 16044.595478265528, 16034.158091522595, 16012.750361573304, 16031.331190529403, 16034.113862948747  …  16033.85836072126, 16047.555369410187, 16085.890928938788, 16148.100031565049, 16198.675432207718, 16244.156833086812, 16309.227604490545, 16358.229860605506, 16434.20500865762, 16495.153595928117], [3173.2320350842083, 3175.03329089118, 3170.466032380765, 3155.409287680573, 3155.986160256113, 3190.5408478618174, 3203.099090471577, 3213.1820211242375, 3220.1335610152278, 3223.9068123989814  …  3232.492726022871, 3223.0807456248763, 3214.4643211456005, 3212.5811962072576, 3218.5011861637227, 3233.698394294797, 3260.1866882972895, 3247.300501000244, 3252.579300874648, 3255.237407766047], [3173.2320350842083, 3171.8345999374656, 3164.0810709423713, 3145.88213008908, 3143.287358908377, 3174.501627598975, 3183.7859949184185, 3190.590524822973, 3194.271871068868, 3194.792974816214  …  3196.8502643486054, 3184.330770418096, 3172.6184567563364, 3167.565460652562, 3170.2054497695535, 3181.9657059124183, 3204.7983065707162, 3188.91513083146, 3190.8811209164633, 3190.2715221917297], [34195.564496956766, 34536.765500715366, 34086.56710210201, 34205.942312055224, 34798.74139245234, 34778.98842954654, 35589.618477683, 34827.37415580526, 33889.59022586043, 33857.95308047997  …  34600.58102029409, 34975.20925066238, 35120.233777881745, 35424.57349313532, 35476.555438625095, 35542.70302326475, 35882.82672573954, 36570.06375939923, 36965.89681654932, 38233.50466015955], [34195.564496956766, 34501.97139644736, 34017.92059578676, 34102.66398165141, 34658.72103695813, 34604.15040598257, 35375.03076654893, 34582.5070772361, 33617.41453555957, 33552.19518974973  …  34219.06434339798, 34554.714513397514, 34663.03892575017, 34928.19281507263, 34944.20628896413, 34974.091063963315, 35273.201604807684, 35912.54632021217, 36264.69068346908, 37470.46553959303], [33097.63671130043, 33475.488115391076, 32785.578592106365, 32982.321978166976, 33561.807951816634, 33774.06345962531, 34669.30202894816, 33632.50736185511, 32926.66699610697, 32965.976651606965  …  33662.20387118372, 33796.01196800112, 33875.434146170795, 34552.89518491815, 34583.881173382666, 34433.20077870344, 34622.39822080757, 35264.681296447416, 35562.54004032287, 36838.21004130639], [33097.63671130043, 33441.76319624989, 32719.55213009477, 32882.73813639846, 33426.764668858676, 33604.277310871534, 34460.26336859633, 33396.041247992776, 32662.22478068786, 32668.27385005546  …  33291.03403012237, 33389.69430821998, 33434.44408319731, 34068.72874762167, 34064.92719075953, 33882.33862995288, 34034.186933451776, 34630.63419463378, 34887.95418331153, 36103.01729235463], [29576.147776884874, 29605.9743499166, 29627.00753034763, 29746.179543201713, 29853.77299094959, 29943.16891491739, 29937.858614223376, 29928.137327237775, 29963.273919416166, 29988.708960433043  …  30012.22998730862, 30101.270095257736, 30247.37976533303, 30427.54731266079, 30558.818896382414, 30679.671642771485, 30826.318887233872, 30999.681274385857, 31204.944563711742, 31373.961949881028], [34346.71094688275, 34381.34847608994, 34395.21937914167, 34594.82627901853, 34772.76121208655, 34814.518689442964, 34777.10704890096, 34740.80170117915, 34845.729061343874, 34844.74233037029  …  34988.34100811063, 35122.07362990801, 35347.47273299772, 35605.945664893596, 35800.95748050518, 35911.86290246185, 36006.308394067324, 36236.695273363905, 36506.48062458666, 36773.21332644199], [28335.32931213966, 28363.904560528437, 28375.34776993604, 28540.019352310643, 28686.812008306522, 28721.261067314474, 28690.39723419506, 28660.446069873098, 28747.008981492756, 28746.19494875692  …  28864.66090111122, 28974.987560460493, 29160.93717940901, 29374.172026112974, 29535.05275858422, 29626.547448090412, 29704.463033976554, 29894.527465594478, 30117.094825313732, 30337.14381216071], [978.061771770434, 979.0481149238881, 981.3491737441152, 983.7880596810736, 988.3074449996182, 991.3339794413154, 990.7182897190061, 997.1783247851959, 998.2769008623079, 996.2896700254654  …  995.5384464325591, 1005.7296785126966, 1012.5249457222441, 1015.2842542449984, 1024.30668867953, 1027.449685932874, 1029.681800083071, 1034.1526982442922, 1043.6747101049982, 1050.6039569322836], [0.0019383188997990075, 0.003670661446680601, 0.007442409099801317, 0.005617281920365258, 0.0022080733357068283, 0.010738087462731416, 0.00616617145847953, 0.005843191668416958, 0.008523959922530855, 0.005969424168530857  …  0.0025994113769105542, 0.0027650006064385835, 0.00432810300466735, 0.0022613964670905595, 0.005817582826310286, 0.003076073267472612, 0.002531126491160718, 0.0026145430113406753, 0.0025743505205411132, 0.007160124539155044], [2.3548476e6, 2.363259172254203e6, 2.36108172861078e6, 2.3677188062344543e6, 2.384703645257046e6, 2.3785596760298023e6, 2.3952840002629063e6, 2.380596737370255e6, 2.360885548091189e6, 2.3641086965332055e6  …  2.3649428789815065e6, 2.3702556404729825e6, 2.3686717727849702e6, 2.3811651239372953e6, 2.3981211637083017e6, 2.375626168324149e6, 2.3867049013123414e6, 2.4151166236604694e6, 2.4155459853162947e6, 2.4221244870225955e6], [0.0016459319014481277, 0.0019596568746032225, 0.0018947397785068982, 0.00215986477014813, 0.0027562194021338053, 0.002545170531541564, 0.003189841463406328, 0.002484659578115064, 0.0016819066307931442, 0.0018286601300288273  …  0.0017507709686563142, 0.0019055693549152877, 0.0017980888126053402, 0.002235656036692095, 0.0029040567216070752, 0.0018370086279795041, 0.002217795011713674, 0.0032844958115116896, 0.00311789706852109, 0.003319253709044883], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 539.3980884087496 268.85414494118663 … 143.3013467236465 528.9370499882882; 543.327630596746 270.9691817046565 … 144.0760155344181 531.6507664849597], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 529.166245539063 263.754250401298 … 140.5830633366656 518.9036425666917; 532.4842553656486 265.5613571291604 … 141.20064124777397 521.0404304220477]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72476.1260604672, 72589.39768508835, 72888.17663243026, 73226.31813864816, 73342.8862096448, 73791.70466782898, 74039.93500762562, 74195.35746112323, 74453.80262532343  …  75295.11024886799, 75756.68482768678, 76220.26329520467, 76822.10803189008, 77430.05870009365, 77815.32678437645, 78004.49000252684, 78341.54481754996, 78518.48868295098, 78450.00139220073], [72422.0, 72403.10990361156, 72443.21081529628, 72668.10466013658, 72931.67601404755, 72974.18298259884, 73346.77736366936, 73519.36913028854, 73599.47617428823, 73781.43954438201  …  74464.88314280231, 74845.88863903872, 75228.02866980124, 75745.65159741908, 76268.16952011106, 76570.43763237285, 76679.246118747, 76932.99020661761, 77029.07139387773, 76884.34790051047], [64900.92049553801, 64966.370940930254, 65085.103486976746, 65381.83452869844, 65669.57844166887, 65779.32105243731, 66191.7866200011, 66406.69233789192, 66538.82048015032, 66781.54038213399  …  67578.45025745402, 68013.4330661821, 68454.85113339443, 69017.85788752338, 69563.5109241009, 69916.45580721436, 70087.3874869465, 70396.31413046017, 70544.49403463582, 70456.29061441834], [64900.92049553801, 64900.920495538, 64954.029420346094, 65184.426527268115, 65405.34251385608, 65448.64074793442, 65792.68304445808, 65939.79487162094, 66004.43073759844, 66178.46249144108  …  66833.3094242152, 67195.73129168591, 67563.7065658623, 68050.7571515531, 68519.66449002585, 68797.93274784174, 68896.6498564053, 69130.61209341163, 69206.33545789127, 69050.17034093961], [40512.94792630534, 40429.63503431702, 40392.872137534876, 40367.3062814539, 40659.05472350517, 40697.80609235533, 40863.74257281692, 41073.23701271076, 41202.943357411576, 41246.86305040824  …  41398.50012092181, 41522.6039479131, 41567.26524055019, 41725.85221902775, 42079.77494336597, 42276.89139068349, 42391.11876905305, 42497.99653783263, 42726.62224401853, 42857.105468065034], [40512.94792630534, 40388.9041518355, 40311.5254432792, 40245.424885595436, 40495.45411415455, 40493.213483372805, 40617.35451466541, 40784.45602366216, 40872.032317296005, 40874.378812641335  …  40942.02749159368, 41023.39216872129, 41026.14299730551, 41141.17596819759, 41448.34012304419, 41600.545924467995, 41670.922138404625, 41733.89686226256, 41916.140904637374, 42001.79156584651], [14866.888022051655, 14798.596225020288, 14879.27730185299, 14962.58596803014, 14741.117929641, 14961.585870784216, 14881.200775059135, 14857.278246044047, 14997.74303529765, 15078.596912046745  …  15321.86439498877, 15414.049255577063, 15544.92327373223, 15691.316165386083, 15745.307752279996, 15803.355371914808, 15859.874217998704, 15934.875828749156, 15846.196782100336, 15654.226799416698], [14866.888022051655, 14783.687362171997, 14849.312113507418, 14917.40928839933, 14681.803813948958, 14886.372236887746, 14791.474530445183, 14752.818509765279, 14877.292447480515, 14942.428019141747  …  15152.920793018626, 15228.731519649924, 15342.559617998088, 15471.444325309316, 15509.039008332276, 15550.533383230399, 15590.425609280957, 15648.372124035513, 15545.610259751204, 15341.81004462676], [15944.236265986641, 16013.619467474839, 15917.18693374723, 16084.016627316723, 16314.247361272455, 15934.317769596706, 16352.917317097124, 16364.954558965008, 16237.788792667678, 16245.590906964273  …  16537.858958378223, 16520.344724825543, 16725.11820449388, 16791.906975721788, 16942.417703261577, 17170.958072552483, 17153.613383228687, 17211.989579845795, 17642.66047863138, 17200.620252674616], [15944.236265986641, 15997.486528058476, 15885.131512322838, 16035.454001317354, 16248.603414861214, 15854.214099206205, 16254.317353187971, 16249.894531877024, 16107.379090332848, 16098.883349139613  …  16355.507425348313, 16321.726384480433, 16507.39078295258, 16556.61329823575, 16688.185533705684, 16896.257183699836, 16862.185015193598, 16902.52379968442, 17307.996834655398, 16857.341595186736], [15944.236265986641, 15948.062109808605, 15970.750302735247, 16026.092428684495, 16110.37717860167, 16148.803859338926, 16210.941461516471, 16276.093832664797, 16319.389250018141, 16356.375697090065  …  16505.84090851778, 16575.07981227419, 16695.841852961184, 16790.07055062602, 16938.1927781247, 17024.231246945317, 17090.76135309793, 17168.151633509864, 17234.605586935384, 17256.110408716213], [15944.236265986641, 15931.995216227893, 15938.587010719588, 15977.704693774811, 16045.55354850964, 16067.62194240631, 16113.197541453485, 16161.658574655048, 16188.324194205734, 16208.667685290135  …  16323.842416379766, 16375.803411070861, 16478.495550671385, 16554.8026057274, 16684.02400636141, 16751.877693007966, 16800.40079883242, 16859.474044870487, 16907.68233660143, 16911.724315217885], [3173.2320350842083, 3164.1787408502164, 3157.6604946481057, 3148.158817059689, 3160.4378292603583, 3176.109988219768, 3167.545150614754, 3197.7541684890834, 3216.100715675691, 3215.780195103441  …  3208.654947332959, 3194.9482138237436, 3221.3372504856648, 3216.067030457233, 3254.894015053389, 3270.8475463602695, 3281.3747920637193, 3295.1137780613176, 3324.65725968339, 3352.4944859117645], [3173.2320350842083, 3160.9909853254694, 3151.301322120171, 3138.6535508838347, 3147.721115647661, 3160.1433135682933, 3148.4464276483836, 3175.271143564002, 3190.2714145088053, 3186.7397458131472  …  3173.27532835793, 3156.5364662308098, 3179.4019143709857, 3171.002450256069, 3206.0521802211483, 3218.52054605602, 3225.62643868777, 3235.8687412619524, 3261.591832853662, 3285.587607586815], [34195.564496956766, 33991.09579074224, 33403.794436562544, 32415.795796186343, 34270.00254187088, 35046.55583121106, 36033.22704340319, 36466.06200929085, 36856.63607251171, 37166.75135167607  …  37382.65494216756, 37120.21636388224, 38013.738573570845, 38558.85084856853, 38926.09898827595, 37415.83169000933, 36443.29108154754, 36676.21340219363, 35695.74633837887, 37427.59592717508], [34195.564496956766, 33956.851422053354, 33336.52295748181, 32317.922472364473, 34132.109682914284, 34870.37271517068, 35815.96459309442, 36209.67351352922, 36560.63130236412, 36831.11300190431  …  36970.46226023767, 36673.93295453143, 37518.876104942996, 38018.55165390809, 38341.987158933465, 36817.253429030636, 35824.14404771575, 36016.78742815255, 35018.63369096874, 36680.640602649386], [33097.63671130043, 32756.820457086655, 32003.73312460915, 30941.528040556816, 32758.10441764138, 33297.37935430227, 34339.383040547305, 34721.59681938496, 35099.753796765035, 35283.999595771544  …  35345.76816758822, 34820.529464511004, 35630.78199714224, 35945.818176813926, 36263.54068708946, 34851.70974078374, 33843.40744930097, 33979.530531071, 33392.737160178105, 34689.54705513047], [33097.63671130043, 32723.819560507338, 31939.28121129474, 30848.10598753987, 32626.29501183148, 33129.98955203829, 34132.33362772356, 34477.47344854509, 34817.858983185, 34965.36363844465  …  34956.03482739583, 34401.89438834419, 35166.94083339766, 35442.13364823145, 35719.38230390415, 34294.15228805598, 33268.430691847665, 33368.59000751712, 32759.31029613498, 33997.235907798655], [29576.147776884874, 29605.974349916603, 29674.340850666376, 29805.186611860743, 29942.324481981217, 30042.326913038563, 30198.252590694105, 30304.20302080266, 30371.077287190437, 30453.489754518196  …  30799.286848155167, 30989.056381781564, 31198.843381200473, 31422.872332965566, 31682.98624687396, 31842.194442907217, 31940.660628685997, 32057.90444675833, 32155.92534165831, 32140.44427752901], [34346.71094688275, 34381.34847608994, 34431.04887453899, 34597.638243978065, 34750.360025908354, 34755.99751173159, 35005.728018706104, 35103.981268211945, 35164.772930896586, 35318.24855457098  …  35758.71844728528, 35997.75860319754, 36226.23389584166, 36554.15395876562, 36830.74308302971, 37019.397732445956, 37094.72438787405, 37286.26983054184, 37334.380650496016, 37266.657605043336], [28335.32931213966, 28363.904560528437, 28404.906365888382, 28542.33916550224, 28668.331490963144, 28672.982300688163, 28879.004826843684, 28960.061734593637, 29010.213604572273, 29136.827833950025  …  29500.206425904413, 29697.409632554212, 29885.897044544567, 30156.424344389306, 30384.604676773957, 30540.240878031847, 30602.383817739752, 30760.404863907024, 30800.095299739063, 30744.225181698053], [978.061771770434, 979.0481149238881, 979.7137617713636, 979.0096728596087, 976.8939337793133, 980.9966276671263, 987.8060106009552, 998.5080488773187, 1002.9702620633504, 1009.8020730447989  …  1020.4449620135584, 1026.6180812029966, 1029.773856352313, 1040.831595792162, 1049.7815941972567, 1054.8636318610886, 1052.0024703863955, 1052.1398531599443, 1054.188042481539, 1049.1887318459649], [0.0019383188997990075, 0.003146871847675259, 0.004855707399814557, 0.003940501388393969, 0.0033487692071423325, 0.005122168091932888, 0.005465102566312163, 0.002805825646938098, 0.004276338822109427, 0.00434805592956744  …  0.00833365332257996, 0.0044936709048382095, 0.002627356220916255, -0.0016626932346437417, 0.0013747725151436185, 0.004946666803204991, 0.003114706624120167, -0.0007214140896543153, 0.005865983956972354, 0.0070432105720605875], [2.3548476e6, 2.356078752217971e6, 2.3387335719517814e6, 2.3292710224374225e6, 2.372725770535728e6, 2.392926936779265e6, 2.418210899817392e6, 2.4235526151811755e6, 2.4371377176267216e6, 2.4257180464204475e6  …  2.4317864327802067e6, 2.416163473972961e6, 2.4426753365957984e6, 2.4673517067273133e6, 2.4617025195226152e6, 2.446581784051871e6, 2.4306384589016247e6, 2.4282185269098324e6, 2.4171185257708062e6, 2.4499299689597287e6], [0.0016459319014481277, 0.0016477170656485143, 0.0009130458963810005, 0.0005379113334162321, 0.002409932929429501, 0.0031864889565893983, 0.004115279709382389, 0.004092273304168035, 0.00443879464458766, 0.0037490719723000418  …  0.0037065741555815036, 0.0029033745457590545, 0.0038279962657833985, 0.004500092780586129, 0.003973282656383644, 0.0031884793718491805, 0.0023829331315187554, 0.002092035399562113, 0.0016221401447371153, 0.002998873554371181], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 569.9813024279866 288.9836141723872 … 146.83093024070783 534.6023625932912; 574.8288938600006 290.2209537765221 … 147.2495610821323 535.7844457343166], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 559.1693265414835 283.5018837108498 … 144.0456941805198 524.4614898513181; 563.3568371509506 284.42891500560825 … 144.31085126228757 525.0916124217521]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72495.0934327661, 72501.28734126521, 72930.04564973302, 73024.68684449687, 73234.06783472263, 73561.2601054505, 73758.86193111318, 73921.76863744827, 74211.16312047704  …  74741.21839252875, 74763.83259330635, 74978.48661486505, 74977.82800404096, 74996.89441046638, 75243.81669977764, 75542.6953081421, 76243.34494213988, 76870.48908075182, 77515.30409160505], [72422.0, 72422.05816720934, 72355.2779157801, 72709.84726191299, 72730.85602755725, 72865.91165031529, 73117.72226746952, 73240.2722447689, 73328.08461019817, 73540.9912217092  …  73917.09866888776, 73864.97312064645, 74002.41742586927, 73927.21422286115, 73871.51646796321, 74040.06655137271, 74259.2756624515, 74872.51525884448, 75412.33269775454, 75968.30467341928], [64900.92049553801, 64966.37094093027, 64972.65224128761, 65372.45999352788, 65448.57073958361, 65637.43218142184, 65930.67799179054, 66104.97452789062, 66253.0912561128, 66528.61571610223  …  67002.25758672842, 67009.15221900793, 67204.75308470629, 67190.38705130873, 67196.49354972002, 67421.70112918437, 67719.55223007612, 68381.19497181136, 68956.54284645063, 69541.69440587754], [64900.92049553801, 64900.920495538, 64841.804638798254, 65175.08029672171, 65185.22408465179, 65307.46516879127, 65533.148771502856, 65640.1984032504, 65720.99627570712, 65927.82188883836  …  66263.47003157107, 66203.52456272379, 66329.88228107171, 66248.89343275386, 66188.16577496543, 66343.08914085593, 66569.0425299002, 67151.72409907213, 67648.50611735748, 68153.82704153859], [40512.94792630534, 40552.82130627473, 40546.08936577118, 40619.26499675511, 40741.53328626746, 40830.461110296965, 40938.140180163144, 41037.81694251574, 41108.01937475617, 41130.179893201755  …  41451.894684930325, 41561.80199389469, 41647.48470766324, 41748.985507668964, 41802.99456456919, 41850.28831911267, 41708.8827447346, 41868.400431422655, 42113.589247341624, 42400.26709396435], [40512.94792630534, 40511.96631964133, 40464.43410927763, 40496.622859525756, 40577.60080636011, 40625.20162909649, 40691.303541415466, 40749.28498772028, 40777.87069264903, 40758.74937524936  …  40994.83331067319, 41062.11895027325, 41105.318168198006, 41163.98510565323, 41175.71301666849, 41180.76764639179, 41000.27684583138, 41115.62068196326, 41314.736531477785, 41554.07047132366], [14866.888022051655, 14849.755383039457, 14949.811922323586, 15185.51847922421, 15316.774592437385, 15461.542194208605, 15839.319667264963, 15928.356707831028, 15981.793799172921, 16149.200580777288  …  16114.562728439556, 16306.297269511384, 16209.210153067961, 16371.468323493606, 16478.372464641525, 16766.534891294712, 17017.08315583806, 17252.137193467275, 17437.73054395183, 17676.443237158197], [14866.888022051655, 14834.794979838365, 14919.70468519805, 15139.668697319565, 15255.144196117306, 15383.815221672847, 15743.81644192274, 15816.366347719337, 15853.440056016292, 16003.363486171565  …  15936.878590182512, 16110.252347036127, 15998.198817381315, 16142.065969535266, 16231.103600432803, 16498.30396217849, 16727.974344649017, 16941.949572724297, 17106.95421610851, 17323.668417734658], [15944.236265986641, 16126.335182243773, 15814.87389714446, 16093.336609659344, 16084.667378462473, 16274.134076985323, 16274.044998698571, 15998.774896043482, 16107.165270503709, 16374.083510437893  …  16434.11379283076, 16324.76451516501, 16485.78171154031, 16802.00381314276, 16488.689627032032, 16433.988540856295, 16050.708436768286, 16428.735451341236, 16533.980932784507, 16947.045561118728], [15944.236265986641, 16110.088687250463, 15783.024522650296, 16044.745843747705, 16019.947197380696, 16192.322110458528, 16175.920595669288, 15886.289434120545, 15977.804638018351, 16226.215586323045  …  16252.90618599052, 16128.497567438848, 16271.169970071078, 16566.568655477597, 16241.265946986268, 16171.077686348834, 15778.01768287113, 16133.352316815906, 16220.347832204512, 16608.827580421203], [15944.236265986641, 15959.696300796157, 15956.777335927036, 16017.49315810779, 16051.231313404709, 16082.319478201138, 16129.59382235337, 16169.132272988056, 16209.731032907104, 16253.723903789329  …  16346.640445397004, 16388.683656034656, 16430.061635078964, 16446.225943276153, 16441.868354418017, 16471.07652952607, 16498.571399560464, 16575.304036732203, 16707.283855204172, 16829.589042756692], [15944.236265986641, 15943.617686336307, 15924.642183892489, 15969.131387058413, 15986.645669651825, 16001.471785992155, 16032.340388124216, 16055.449048838816, 16079.546669388197, 16106.942900061264  …  16166.39734666171, 16191.648230780498, 16216.175257007926, 16215.77606116606, 16195.14725849729, 16207.57234158839, 16218.27175478802, 16277.285648367404, 16390.363371318304, 16493.715181942298], [3173.2320350842083, 3175.8129318377687, 3175.8956706029235, 3170.268320302439, 3183.1048857408186, 3185.1450399928094, 3187.0734319147937, 3195.5361130227966, 3206.046323058668, 3209.022563426877  …  3222.8938104476288, 3246.5533440366075, 3254.4771612125633, 3269.9001983392563, 3275.0073571931116, 3276.244759331431, 3253.7010011407733, 3222.956799897567, 3239.9483728604982, 3252.45539509136], [3173.2320350842083, 3172.613455433882, 3169.499774484797, 3160.696298690931, 3170.296966263212, 3169.132945084277, 3167.856963117879, 3173.068682978908, 3180.297771208411, 3180.0431396570443  …  3187.357189376757, 3207.5211659692136, 3212.1104100714433, 3224.0812902312155, 3225.8637083754884, 3223.8314144450082, 3198.4228068821003, 3165.009121282062, 3178.4897889882695, 3187.545031094915], [34195.564496956766, 34410.19207394154, 34493.748387588246, 34498.631785254816, 34695.11998018258, 34233.67952726984, 34526.77073729259, 34981.35642398701, 35558.85608589159, 35802.73336225539  …  35639.447824938026, 35699.80056772709, 35732.90900426023, 35486.96941499432, 35241.31465385912, 35926.3225140366, 38297.6543095382, 38448.281089433636, 38554.98235639506, 38763.66888392279], [34195.564496956766, 34375.525486218416, 34424.281864032695, 34394.46973471131, 34555.516568129555, 34061.582835038775, 34318.59146979048, 34735.4067146117, 35273.27410815215, 35479.412923799144  …  35246.47628227526, 35270.594321881916, 35267.73835215839, 34989.71442492329, 34712.49544757036, 35351.57341232013, 37647.002890175485, 37756.993934743914, 37823.63285814651, 37990.04909473505], [33097.63671130043, 33444.010512733104, 33303.236231562005, 33466.70622116038, 33813.408392852805, 33565.74907403822, 34017.01547796861, 34187.44303926412, 34834.06589287613, 35245.03422619515  …  34898.800638609595, 35128.83175299165, 35096.89896166692, 35431.59905525873, 35014.47689963541, 35733.317565522535, 37531.63333873686, 37754.20922352501, 37769.79399972116, 38272.120684558875], [33097.63671130043, 33410.31730573904, 33236.16726537831, 33365.659873391174, 33677.352740430215, 33397.01014595138, 33811.90978132834, 33947.07523940298, 34554.30488463772, 34926.75014983376  …  34513.99570023347, 34706.490065983504, 34640.007881939695, 34935.119932728194, 34489.06154369458, 35161.65615586644, 36893.99610107531, 37075.40124740293, 37053.33874018284, 37508.3108907951], [29576.147776884874, 29605.974349916603, 29607.86313817308, 29722.694152632444, 29781.166013708746, 29834.94412292219, 29903.649529315633, 29973.334452628027, 30048.028568035345, 30141.2057743373  …  30326.10298437848, 30370.287746648384, 30439.40532795694, 30452.56825842779, 30404.55673743495, 30453.35880841309, 30558.425191179565, 30807.699181161366, 31066.618101656306, 31300.261703623524], [34346.71094688275, 34381.34847608994, 34383.86204990578, 34661.69210341722, 34677.996633482435, 34806.97198317002, 35024.517047816706, 35128.595977938676, 35198.90242965375, 35368.02051735572  …  35642.07334761772, 35609.86304868942, 35739.60399888866, 35711.23738558667, 35753.01470883248, 35921.592859507036, 36122.10197206359, 36506.57650277614, 36813.52601678004, 37155.63260952071], [28335.32931213966, 28363.904560528437, 28365.978207170534, 28595.182280632787, 28608.6331822167, 28715.035190030423, 28894.505388982736, 28980.368363286798, 29038.36973830042, 29177.888678413365  …  29403.976620470083, 29377.403787083287, 29484.437399554972, 29461.03552766612, 29495.500959124187, 29634.574462307137, 29799.99035156539, 30117.17392284586, 30370.40095162753, 30652.63184646204], [978.061771770434, 979.0481149238881, 980.9270532087615, 988.073737478224, 989.4080923924478, 995.5160753296116, 1002.5114146582785, 1003.0440973238897, 1006.1602584237569, 1019.3894244091874  …  1034.0812547322575, 1029.0014236701313, 1025.7437578606412, 1026.5814072942599, 1038.9221034525463, 1046.7494612642456, 1039.025066832978, 1066.919287873829, 1076.3987280143683, 1085.8000927332023], [0.0019383188997990075, 0.0034633506059016383, 0.005598352698906739, 0.0006225011946081604, 0.0034284733921525756, 0.00424058234700575, 0.0027769535504562626, 0.0032020041555353984, -0.0013409751770999678, 0.0014787088595500375  …  0.0022741289989296476, 0.001533678506970615, 0.003133307650571071, -0.0009252416555750598, 0.0012965765920940342, 0.00801882295841394, 0.007077127040001185, 0.0046616612765635335, 0.00409651886663176, 0.0009462583459727281], [2.3548476e6, 2.3609193800396114e6, 2.353109226720007e6, 2.352490302136347e6, 2.3751859924151297e6, 2.3622637297087535e6, 2.385664180269995e6, 2.383589335185976e6, 2.3892212825519084e6, 2.391833876988108e6  …  2.3655585857613166e6, 2.3600504300908116e6, 2.3797256358432565e6, 2.37201704188347e6, 2.3608906237083897e6, 2.365031884878254e6, 2.394154125448522e6, 2.4099986223750357e6, 2.4130602034928324e6, 2.4310417628926444e6], [0.0016459319014481277, 0.001857168423137669, 0.0015227632987900974, 0.0013984424889687869, 0.0023225171795107774, 0.0017127571671481483, 0.002624029842337874, 0.0024176993835533307, 0.0024403416923662142, 0.0024011647856761373  …  0.0011134146040339319, 0.0008371508176576803, 0.0016670815781136418, 0.0012038146273035649, 0.0006830695191131415, 0.0009890500596758643, 0.002289406158072885, 0.0028778355566230355, 0.00288374054114603, 0.003424918062152449], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 507.05342570173104 260.48981114786176 … 142.76946467137773 530.3127522483616; 511.65907027180504 263.50206719700714 … 143.81513378726856 533.4656436726193], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 497.4351287707607 255.54857966392984 … 140.06127055557087 520.253249129245; 501.4477153233109 258.24326637797446 … 140.9449660068225 522.8190874853619])])

Now, apply a shock to the model and simulate it again Here, we do this by overloading the centralbankrate function with the wanted behaviour

import BeforeIT: central_bank_rate
 
 function central_bank_rate(cb::Bit.CentralBank, model::Bit.Model)
     gamma_EA = model.rotw.gamma_EA
@@ -38,7 +38,7 @@
     end
 end
 
-data_vec_shocked = Bit.run_n_sims(model, 4)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72493.81045047568, 72397.55266705957, 72255.14452456943, 72304.66085813176, 72769.59410018873, 73023.04484044774, 73019.970285278, 73246.71140975447, 73399.97611494441  …  73408.638055954, 73648.26794179497, 73747.00359479764, 73766.45845371032, 73813.3097210167, 73800.2337940396, 73987.33013874403, 74111.58743029385, 74309.9271462071, 74552.23444004676], [72422.0, 72420.77647746094, 72251.75215152267, 72036.98387220353, 72013.7272234045, 72403.77287931554, 72582.75217301813, 72506.57565721986, 72658.44893424668, 72737.12972776915  …  72599.2117740616, 72762.82051369664, 72786.96583944224, 72732.81877777634, 72705.69224863734, 72619.57807668793, 72730.33510242737, 72779.08602964386, 72900.34206506445, 73064.37001566202], [64900.92049553801, 64966.370940930254, 64881.58687267774, 64743.57452641266, 64779.86219713873, 65215.734147943294, 65439.24417901262, 65418.76118849062, 65622.29579246181, 65754.92507382855  …  65747.83317232454, 65971.00860842856, 66047.47782182675, 66047.66235846643, 66077.37779988028, 66058.58490245535, 66236.20608061273, 66342.31088168922, 66532.07024666134, 66749.51968503602], [64900.92049553801, 64900.920495538, 64750.92266558232, 64548.09362954198, 64519.20623744724, 64887.88706041804, 65044.67806037008, 64958.80974730027, 65095.26688661206, 65161.11814321169  …  65022.87728761527, 65177.862190544714, 65187.67241599158, 65122.18097102472, 65085.84309622342, 65001.78003971054, 65110.89743504265, 65149.49845872832, 65270.02334069806, 65417.37670595469], [40512.94792630534, 40553.68090829163, 40507.678132976616, 40527.47068391062, 40572.66489930863, 40658.20092739979, 40836.838277447656, 40945.489368549606, 41043.800818144984, 41171.851073016034  …  41307.62723972607, 41407.23483967867, 41585.84300086424, 41691.29857993363, 41782.55641925789, 41831.82155497443, 41906.19149897945, 41997.550357150365, 41992.5786783421, 42115.94256002406], [40512.94792630534, 40512.8250556512, 40426.100232378914, 40405.105702132314, 40409.41189833141, 40453.807418192, 40590.61243882562, 40657.60655782131, 40714.16789116665, 40800.04423898748  …  40852.15660281047, 40909.41010302046, 41044.4789125214, 41107.10650596449, 41155.58155922841, 41162.59631344001, 41194.23345688806, 41242.448535489835, 41196.02141208021, 41275.42029928776], [14866.888022051655, 14726.500299880463, 14524.48307357013, 14597.130855734404, 14922.682776268342, 14993.69101850988, 15074.7903233592, 15122.091196599955, 15271.502698829681, 15317.751891525442  …  15091.387484548579, 14979.921157841993, 15033.818732682686, 15223.072077194047, 15147.668852201376, 15134.677321669833, 15209.911973696058, 15450.172600808035, 15483.820655443056, 15537.15347142481], [14866.888022051655, 14711.664070155164, 14495.232400832992, 14553.05759823682, 14862.638094660595, 14918.315988298322, 14983.896829984367, 15015.769592318184, 15148.853479370762, 15179.423283828817  …  14924.985192070335, 14799.822792557834, 14838.108630753011, 15009.761426006076, 14920.368074740938, 14892.552840601518, 14951.505786881415, 15172.383697011806, 15190.10804619693, 15227.073189056755], [15944.236265986641, 16250.426691270399, 16319.073224910366, 15933.781613951316, 15463.785649073427, 15940.557801678413, 16380.414363894019, 16039.631409088814, 16172.431606108974, 16590.46584724267  …  15920.715475160063, 16331.570686349378, 16500.676620097605, 16519.107702759666, 16440.884270193725, 15997.040072947688, 16266.540790364937, 16299.247857875233, 16249.943980508597, 16195.609570074492], [15944.236265986641, 16234.055180143085, 16286.208449767786, 15885.672593971816, 15401.56372157754, 15860.422761920197, 16281.648606458924, 15926.858689936966, 16042.546803522135, 16440.64385913768  …  15745.168756498646, 16135.221910401751, 16285.87097685758, 16287.636577664045, 16194.177941106724, 15741.119517525894, 15990.18318977052, 16006.192866702799, 15941.698777155587, 15872.38825428795], [15944.236265986641, 15960.315504263734, 15941.354194706473, 15918.839282739653, 15926.430385054458, 16010.319823551086, 16059.931556203679, 16068.899207956281, 16103.165485008456, 16135.411708749085  …  16162.786712946521, 16191.077048124425, 16232.265238903014, 16253.75579862401, 16251.644505145396, 16267.332564768984, 16302.057675594377, 16334.012860081522, 16357.091282484003, 16418.957680938347], [15944.236265986641, 15944.236265986634, 15909.250103140936, 15870.775378284401, 15862.346905163071, 15929.834081987707, 15963.098150816786, 15955.920710430997, 15973.836975790739, 15989.699136036777  …  15984.57084216427, 15996.417378168115, 16020.953772339366, 16026.002870957802, 16007.777843742024, 16007.087871611844, 16025.096666979216, 16040.332805869155, 16046.81360185441, 16091.278930563774], [3173.2320350842083, 3176.432135305343, 3172.8286808165776, 3174.3695499289597, 3176.5485621792245, 3189.1908478342243, 3199.612729849756, 3200.85346132101, 3207.060383353183, 3218.821022683228  …  3233.9128388315494, 3223.6728412490415, 3246.395233122777, 3265.1870512787864, 3272.6739995530816, 3277.448153188429, 3270.367785429163, 3278.779008212694, 3273.771736210481, 3283.676193961781], [3173.2320350842083, 3173.2320350842087, 3166.438961270386, 3164.785145435417, 3163.767023505031, 3173.158414178684, 3180.320655318411, 3178.348645640818, 3181.3036873336087, 3189.7531128720816  …  3198.2547185555077, 3184.915747483167, 3204.133692440683, 3219.4341853245987, 3223.5653643082014, 3225.0155564139463, 3214.8064337017054, 3219.827665077931, 3211.6715569255575, 3218.142745811091], [34195.564496956766, 34298.09748722128, 34760.98045461122, 34486.71048433125, 35296.40542629663, 35457.76108709337, 34440.187963202756, 34806.79507594433, 35025.914608054685, 34478.833173710635  …  35831.60110868974, 35866.40871640562, 34785.88900169334, 34923.364294858875, 34855.96928283357, 34678.68105192482, 33705.039900387164, 33528.75228749691, 33089.909688502856, 33430.66134291884], [34195.564496956766, 34263.54382931893, 34690.975755776206, 34382.584427886155, 35154.38261059421, 35279.510794361966, 34232.530746796205, 34562.07268641043, 34744.61281528208, 34167.468358449325  …  35436.51082466142, 35435.19939892157, 34333.04664651478, 34434.00672355951, 34332.93243839043, 34123.891711169694, 33132.41391463808, 32925.91660505852, 32462.22715906769, 32763.47420802776], [33097.63671130043, 33334.89493618774, 33714.66221900867, 33289.94911335821, 33950.877892815064, 34280.61673449268, 33709.186087455666, 33894.036764904464, 34266.93832138358, 34158.92587055009  …  34742.69325217021, 34936.86745848039, 34159.22376054003, 34590.38420103562, 34413.769103469574, 33841.98620747722, 33100.35402468352, 33164.13567303654, 32506.325856589352, 32727.13250439549], [33097.63671130043, 33301.3116578072, 33646.76468723314, 33189.436450023546, 33814.26910175912, 34108.28408345677, 33505.936449046865, 33655.731869266725, 33991.73205509478, 33850.45001263394  …  34359.6096019791, 34516.833691204694, 33714.53932720441, 34105.692455417564, 33897.36776482891, 33300.5823060492, 32538.00124575059, 32567.855674618884, 31889.713329435894, 32073.985934998254], [29576.147776884874, 29605.974349916603, 29586.470938972197, 29554.96646929005, 29558.77833104899, 29706.24572171676, 29790.17005292416, 29795.855923850395, 29857.372767856385, 29912.22074786236  …  29959.78073848306, 30055.020462994074, 30119.12641191989, 30115.446656686192, 30083.81386676657, 30105.645453656154, 30202.169210113658, 30243.622509021745, 30287.811619925567, 30390.934196224694], [34346.71094688275, 34381.34847608994, 34315.79343735193, 34210.37300012636, 34244.076349855095, 34522.7167082782, 34659.00142181686, 34635.490037036514, 34769.14619248028, 34842.43302892603  …  34787.80130687335, 34911.587420435906, 34924.14254523252, 34930.647141160494, 34987.81763146752, 34946.19853904916, 35031.98549335449, 35097.662144990245, 35237.5867539694, 35353.43699539344], [28335.32931213966, 28363.904560528437, 28309.823003386497, 28222.853313344385, 28250.657882898737, 28480.53044122846, 28592.962523715214, 28573.566115384707, 28683.829691566734, 28744.289822615283  …  28699.219776821206, 28801.340771681218, 28811.698491121, 28817.064648828113, 28864.22912615729, 28829.894231873805, 28900.666702771716, 28954.84858805021, 29070.28350932778, 29165.8575730778], [978.061771770434, 979.0481149238881, 979.3224963536278, 978.2350569962288, 977.0075162347331, 986.7717179482759, 990.0727042717328, 987.415227603674, 995.7768321252817, 1000.2712970402289  …  1000.2511269681883, 1004.4007249985964, 1004.2088646744128, 1001.5685606197848, 1005.746301646185, 1006.7409097499906, 1002.0513771445775, 1001.0262276772012, 1006.6718727664384, 1005.1484934178723], [0.0019383188997990075, 0.001579856938285662, 0.005076864754054666, 0.00296255944076651, 0.002985779766072616, 0.007929273767045109, 0.00867991106379229, 0.005780599287288801, 0.00658976140790779, 0.0020371271247836553  …  0.006679449448140362, 0.002907152642453781, 0.0018983935682945763, 0.0005240484340220952, 0.0019521268606155218, 0.002271602516311866, 0.0029023605140463538, 0.0007850484050690998, 0.004073336755821, 0.002271827518254943], [2.3548476e6, 2.3532415308908136e6, 2.3830524785926673e6, 2.3786836496352563e6, 2.3900160917833634e6, 2.3757895380630423e6, 2.3626114169942765e6, 2.367884806477441e6, 2.371889022849767e6, 2.3583359007620956e6  …  2.3687373886902304e6, 2.3807519871179787e6, 2.3671816156409443e6, 2.374770441009302e6, 2.373136997183881e6, 2.3745238409123393e6, 2.361531394877096e6, 2.338849509036181e6, 2.3172871521281595e6, 2.310060476584982e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.009307788809841821, 0.009184313987991069, 0.007987279673934262, 0.007723309154203669, 0.007128670650908567, 0.006710522390600634, 0.005742138576179118, 0.0043903242061607475, 0.0032519684630575485, 0.002756604418269876], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 528.4951445312406 260.9752904465731 … 140.85450738274915 524.0546653789679; 534.056142281617 263.57107083682286 … 141.163475902975 525.7364904646163], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 518.4701196146934 256.0248499053439 … 138.1826380936327 514.113871915828; 523.3978013117834 258.3108928885621 … 138.3462281652505 515.2441876297196]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72470.13677189087, 72717.16733853743, 72893.26681406151, 73182.22740420856, 73450.30818263539, 73809.7368803619, 74375.80809144671, 74930.31963964198, 75390.1087870171  …  76330.81838367895, 76776.26512968595, 77148.8583063337, 77684.20872303522, 78035.6970172679, 78628.40547420477, 79254.83160054749, 79742.20357904158, 80082.78069295351, 80307.07180041587], [72422.0, 72397.12664895094, 72570.7231550565, 72673.1794729335, 72887.76268833202, 73081.06493282568, 73364.7008509228, 73852.88073085675, 74328.53568957158, 74709.29029247168  …  75489.17124031394, 75853.21088281907, 76144.53524036097, 76595.6722524925, 76864.71983426013, 77370.50869398064, 77908.34525296412, 78308.46559495246, 78563.69034720381, 78704.35611984976], [64900.92049553801, 64966.370940930254, 65186.634115020745, 65362.81172438698, 65645.44717665092, 65881.7178910031, 66232.1921704804, 66759.05925608364, 67259.63268205507, 67691.69115812545  …  68561.37511208274, 68973.67496804259, 69326.00752131695, 69817.17621687769, 70159.93646944876, 70721.55276043978, 71297.36359498328, 71739.59985577659, 72032.40937672886, 72231.97791993766], [64900.92049553801, 64900.920495538, 65055.355577142596, 65165.46115869251, 65381.30834626667, 65550.52282567222, 65832.84496954978, 66289.68434039426, 66719.45391823357, 67080.39405285526  …  67805.39624626987, 68144.42854020809, 68423.52224863802, 68838.87517176651, 69107.14027607563, 69590.14976462304, 70086.06928319688, 70449.74599345349, 70666.02653239654, 70790.41964797999], [40512.94792630534, 40376.06547358849, 40535.380862983395, 40478.351555694964, 40504.60376304546, 40731.76075930522, 40718.85822382346, 40880.07994867458, 41158.64190316232, 41305.847924393966  …  41636.02753480314, 41784.587672049085, 41901.119964232596, 42135.379490212275, 42099.68347146979, 42196.571574546135, 42417.78550673165, 42654.720545654636, 42956.866647093484, 43080.25837268383], [40512.94792630534, 40335.38855982274, 40453.74717220815, 40356.134879772624, 40341.624620952665, 40526.99745625911, 40473.343746287785, 40592.657023709726, 40828.08665899498, 40932.83101737169  …  41176.935854957774, 41282.22615395338, 41355.65160353342, 41544.96480968462, 41467.94991053254, 41521.511064289036, 41697.135826124184, 41887.80302516761, 42142.017801404, 42220.490931675195], [14866.888022051655, 14871.169172173508, 14905.366220514417, 14971.161323605551, 14784.705797345681, 14930.63870978845, 15018.667046490282, 15072.303927011571, 15151.980713433933, 15256.889696210534  …  15585.782577684176, 15570.983232645278, 15678.817548823432, 15738.670683570776, 15985.312172955686, 16288.192092439802, 16495.101245843784, 16522.961827982374, 16533.063899714976, 16488.610772481898], [14866.888022051655, 14856.187195625835, 14875.34849202556, 14925.958752321229, 14725.216296323966, 14855.580650872931, 14928.11194858127, 14966.3323710337, 15030.2914046338, 15119.110711121622  …  15413.92893244118, 15383.778734269266, 15474.71085875505, 15518.135296539804, 15745.442004132245, 16027.613688678659, 16214.860556651769, 16225.884534915709, 16219.448194336128, 16159.541931552363], [15944.236265986641, 15947.053756326784, 15998.599964538422, 16028.519569717724, 16225.061691081302, 16019.753815812202, 16143.424558258446, 16309.501062518872, 16438.156869835977, 16569.1020537366  …  16681.25323074305, 16884.78534143969, 16822.86085717704, 17110.281696622213, 17021.08397978026, 17167.907622334853, 17269.450782031574, 17408.503433879552, 17486.21425663709, 17595.144883133264], [15944.236265986641, 15930.987878612954, 15966.380586441139, 15980.124506517788, 16159.776602742082, 15939.220648471475, 16046.087731565727, 16194.830922294286, 16306.137961861465, 16419.472993669027  …  16497.320588244274, 16681.785458721697, 16603.86102276051, 16870.52684870406, 16765.6713707794, 16893.255534567346, 16976.054414407387, 17095.50440075704, 17154.518241200083, 17243.992562748394], [15944.236265986641, 15944.752059928407, 15992.689871972034, 16021.438863734089, 16074.323195266581, 16135.715797010336, 16193.741420341543, 16309.640838819541, 16436.257832892203, 16516.418656388065  …  16713.41241817831, 16822.939949436983, 16907.957928002157, 17033.818475969183, 17107.47073295543, 17183.87865974174, 17292.085787609496, 17445.87028678633, 17547.57049466477, 17606.456889725454], [15944.236265986641, 15928.68850106127, 15960.48239613541, 15973.065179377787, 16009.644636270841, 16054.599675290636, 16096.10120797829, 16194.9697158446, 16304.254176553592, 16367.265359412597  …  16529.125178561215, 16620.683612287932, 16687.850300768565, 16795.13505563849, 16850.761833657325, 16908.97106740931, 16998.30486644614, 17132.199410223908, 17214.710612688254, 17255.078811758623], [3173.2320350842083, 3160.8686909700195, 3162.7637622194807, 3159.046980557394, 3156.8718700191857, 3159.7990164224125, 3145.654341876952, 3157.78744802872, 3190.4514935073616, 3191.298793921993  …  3200.509851050666, 3222.246375037232, 3232.3091198555385, 3258.70898574854, 3260.102862788379, 3229.7482397882404, 3229.937762737315, 3298.1148047844476, 3328.2873282661353, 3351.7166626623152], [3173.2320350842083, 3157.6842701588453, 3156.3943122855367, 3149.5088396448364, 3144.169504824292, 3143.9143389249703, 3126.6876096073843, 3135.585424307895, 3164.8281875945563, 3162.479426560945  …  3165.220042419131, 3183.506431176904, 3190.2309520551194, 3213.0468925615, 3211.1828657549886, 3178.078745955034, 3175.0632899355883, 3238.8158105345715, 3265.1530426618992, 3284.8253076218257], [34195.564496956766, 34236.92463592602, 34523.39497881619, 35024.0770730356, 34882.695965692175, 34629.60429255584, 34903.475108504914, 36230.12719606768, 37166.498106178864, 35867.98075869936  …  35405.149163050795, 35951.286469975115, 35510.012863622615, 34853.76368490666, 34702.658047700046, 34851.87001190126, 35145.95099591377, 34754.19243683067, 34422.22170980614, 35470.96960945224], [34195.564496956766, 34202.43260668334, 34453.86875036558, 34918.32854048421, 34742.33780058999, 34455.51724043881, 34693.024500869, 35975.397529598915, 36868.00475731574, 35544.07109660421  …  35014.761069689725, 35519.05669687552, 35047.74387125056, 34365.381380055456, 34181.9217396155, 34294.309995157135, 34548.844898618074, 34129.323752914315, 33769.26655232839, 34763.063345116774], [33097.63671130043, 32961.076266123666, 33245.574688314686, 33608.842707992, 33214.8398129557, 32861.44939482631, 32974.68805671487, 34116.204042826015, 34984.95795296908, 33609.71164602316  …  32977.394122602236, 33415.377586423274, 32763.95292752202, 32153.88683227649, 31773.04065463789, 31876.13582701727, 32073.456929973072, 31598.174665305618, 31315.585820298245, 32327.911837335483], [33097.63671130043, 32927.86959179376, 33178.62184598358, 33507.36720616194, 33081.19263227636, 32696.251063216492, 32775.86707638076, 33876.337115779934, 34703.98509323439, 33306.1955262946  …  32613.77520501906, 33013.63616100085, 32337.432115938595, 31703.336082491252, 31296.265190799524, 31366.18158871154, 31528.550442837066, 31030.05011880217, 30721.560442064896, 31682.7326512431], [29576.147776884874, 29605.974349916603, 29712.2515102354, 29777.941275291898, 29910.936539653536, 30063.339172066055, 30212.442267483675, 30449.778936600087, 30677.36475077234, 30863.576745177066  …  31246.07580991969, 31435.86589229789, 31625.503116635216, 31843.082051923437, 31985.382993912724, 32202.486879254895, 32433.132018190307, 32639.534713557594, 32776.89501363139, 32889.9551336319], [34346.71094688275, 34381.34847608994, 34493.356421843, 34600.8352572325, 34745.20210349573, 34830.06232802087, 35028.55519450602, 35311.55162173961, 35574.939678573566, 35810.87053318688  …  36290.13321142268, 36510.17017209185, 36668.681777385886, 36938.44283094748, 37138.81741899999, 37475.548692705794, 37811.88841527851, 38041.55389749731, 38193.79781696393, 38278.622291530424], [28335.32931213966, 28363.904560528437, 28456.308809465034, 28544.976635608753, 28664.076311177396, 28734.084249088555, 28897.836776853605, 29131.30300225794, 29348.592725830502, 29543.23082293102  …  29938.612664174307, 30120.138626035554, 30250.90743655568, 30473.45475120478, 30638.759660517135, 30916.556027828872, 31194.029373518075, 31383.498667400832, 31509.09676616869, 31579.075211100077], [978.061771770434, 979.0481149238881, 981.0261829423617, 984.0351918625513, 989.3085335016842, 988.3163909160709, 991.1947084907582, 997.728697743929, 1007.328252709181, 1017.2438797614593  …  1025.1660907404041, 1027.6389036528667, 1031.8226272957884, 1035.6513340068084, 1035.7360565360123, 1043.5171884791062, 1052.3431615144327, 1058.511244721654, 1061.71654613352, 1063.4004947753092], [0.0019383188997990075, 0.0067490144215809345, 0.008674756906715153, 0.004755603528465047, 0.005627246323003154, 0.006362779500699078, 0.006168244304813664, 0.007389566870056541, 0.0027637172684031874, 0.004192614413802476  …  0.007282256672928478, 0.007137761392910891, 0.0070401331345266716, 0.0030814087745709706, 0.007122189221949293, 0.0016213959382731513, 0.0037987793081093457, 0.00367824376839776, -0.00045104549555419204, -0.0013209107961180688], [2.3548476e6, 2.360229882489128e6, 2.363342429422308e6, 2.3870079350426807e6, 2.3878220413601156e6, 2.3791757986857207e6, 2.3718712108771754e6, 2.3846497604229823e6, 2.403353974431571e6, 2.373202451599758e6  …  2.3514622884185277e6, 2.355573357461796e6, 2.3455175480723865e6, 2.3356984623253336e6, 2.3355929499784284e6, 2.3501271830816413e6, 2.3511882419852596e6, 2.351752396943297e6, 2.3470351117775063e6, 2.362170412853083e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.008061693090787601, 0.007800621186326867, 0.006964780949128132, 0.006108102536325502, 0.005814897465036975, 0.00603369718640114, 0.0057185866653210555, 0.005403231124973752, 0.004795566138122576, 0.00504451563892787], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.50369622511613 … 137.13538556670355 505.4138092341077; … ; 603.635016093715 297.5801049016504 … 148.80664237670948 542.5979638838854; 604.3421501750374 300.0844504962883 … 149.57012762907505 544.7041901737014], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 592.1846628795823 291.9353075990131 … 145.98392903107043 532.3054225731669; 592.2810873221937 294.0955625500345 … 146.58510546949302 533.8333424726285]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72484.61474769242, 72405.16660078675, 72778.6559000988, 73318.90964451566, 74059.59307477892, 74492.77948539541, 74851.46106760185, 75577.70898999015, 75779.02558558673  …  76607.86431690287, 76871.92528769982, 76804.2061068435, 76870.67700998158, 76674.36583376287, 76789.62184961209, 76883.24496081614, 77214.34953212258, 77381.93907246772, 78003.64286959608], [72422.0, 72411.59003889903, 72259.3507516449, 72558.91460480494, 73023.89495771736, 73687.2868788879, 74043.62504852495, 74325.18944814919, 74970.7256957509, 75094.69493601781  …  75763.16237963931, 75947.72095213083, 75804.36971975726, 75793.5400111482, 75523.81632443951, 75561.14191927745, 75577.05027707199, 75826.0615130786, 75914.08099407404, 76446.89750750533], [64900.92049553801, 64966.37094093027, 64887.39980525333, 65258.244940128105, 65774.7333370203, 66466.78088388352, 66837.16845202167, 67172.17340657079, 67833.64023790517, 67997.02999206627  …  68774.9787862136, 69005.61925011038, 68928.81779108687, 68983.38498828474, 68791.56550638594, 68896.96606948214, 68983.28275944915, 69284.1496391327, 69449.48779202306, 70002.8301571697], [64900.92049553801, 64900.920495538, 64756.72389156644, 65061.21009393044, 65510.07429546139, 66132.64463877866, 66434.17354479084, 66699.89393497966, 67288.85147727608, 67382.97549158086  …  68016.64466041604, 68175.98876731849, 68031.50313034425, 68016.76729782263, 67759.30262323984, 67794.75280109196, 67811.30312651958, 68038.44394535302, 68132.10038977207, 68605.75974902757], [40512.94792630534, 40509.76384243997, 40452.91311312191, 40394.75588610706, 40459.22966830765, 40605.81253031096, 41015.96613489787, 41088.01234988836, 41393.45258991829, 41630.19327607283  …  41833.29106531124, 42093.06074150157, 42204.4806434095, 42349.24334522391, 42382.803161172254, 42446.96240336334, 42466.70244647514, 42653.13749436118, 42585.24822473642, 42946.9477209072], [40512.94792630534, 40468.952234098215, 40371.44550310496, 40272.791611393404, 40296.43309882005, 40401.68238367405, 40768.66024432314, 40799.12747722119, 41061.01152298557, 41254.24733343046  …  41372.02429694392, 41586.9905593243, 41655.06313642227, 41755.83193460477, 41746.821202266176, 41767.89614206148, 41745.221699922375, 41886.24843660356, 41777.448609266175, 42089.84080614108], [14866.888022051655, 14887.920084284322, 14956.59224520558, 15050.169743228496, 15307.600318941495, 15481.853767835051, 15608.442489332241, 15708.47232662503, 15900.197263981781, 15864.283212251361  …  16118.255055022148, 15874.0329077404, 15676.808820575367, 15372.93115446753, 15391.012632507936, 15328.029632306938, 15343.343551177632, 15373.997130434633, 15624.283998932395, 15836.08719279123], [14866.888022051655, 14872.921232010918, 14926.471353273582, 15004.728621063383, 15246.0068373196, 15404.024686654117, 15514.331338625389, 15598.027947149327, 15772.498842802821, 15721.01909461866  …  15940.530204033419, 15683.184948860857, 15472.728280111205, 15157.520629009985, 15160.060320874658, 15082.811902081077, 15082.670451497437, 15097.577835959843, 15327.906940385537, 15520.040987971588], [15944.236265986641, 16408.144073907904, 15561.668952906992, 15933.741047712303, 16040.424955018627, 16398.32148306045, 16246.228781087904, 16171.947149315261, 16734.31062217874, 16415.597278178397  …  16817.472611776695, 17215.854821122495, 16937.806403134146, 17350.496354476847, 16865.64151320635, 16961.18121276312, 16706.244421473002, 16951.488601400277, 16781.68593028427, 17186.510799010623], [15944.236265986641, 16391.613670221406, 15530.329504647156, 15885.632150214851, 15975.88279301483, 16315.88521198626, 16148.272096025948, 16058.244134109109, 16599.913230090315, 16267.35445951415  …  16632.037972373615, 17008.87460556709, 16717.310208749732, 17107.37554042307, 16612.56142109948, 16689.836332911324, 16422.41655156741, 16646.70654116296, 16463.354113362948, 16843.513728712118], [15944.236265986641, 15955.656318060144, 15945.8793703253, 15994.919861776541, 16047.73254100904, 16173.208678331124, 16276.636879334212, 16353.89716532252, 16486.542840707338, 16564.09376074804  …  16718.090076754004, 16799.67366450085, 16840.58953207973, 16876.16366918786, 16868.23093975152, 16900.498686450566, 16926.563462703045, 16973.36751655813, 16996.89835585625, 17097.931214107066], [15944.236265986641, 15939.581773685564, 15913.766165565823, 15946.626246497744, 15983.160975332949, 16091.904075532384, 16178.496848552866, 16238.914881439203, 16354.135333020195, 16414.50992860955  …  16533.75125983093, 16597.69704977751, 16621.358905950572, 16639.689359431348, 16615.1119915888, 16630.124605306995, 16638.992520291486, 16668.192080789355, 16674.484174222525, 16756.701956860637], [3173.2320350842083, 3171.772949101754, 3169.4090587401397, 3160.4561966521155, 3121.6078529064976, 3124.004696764934, 3158.6971255261424, 3180.1069292135026, 3186.8706435157246, 3241.9194815502583  …  3238.4678024887044, 3264.062018519571, 3301.816119739791, 3311.3097600451383, 3322.1007135334607, 3328.36084707148, 3328.0082792252233, 3322.2903756385795, 3314.5960582090324, 3329.4800518584343], [3173.2320350842083, 3168.577542783139, 3163.0262259275923, 3150.913800879856, 3109.047380205832, 3108.29996147934, 3139.651751753527, 3157.7479799051093, 3161.276096295833, 3212.6429786193294  …  3202.7594577786626, 3224.8193397679784, 3258.8331105099173, 3264.9106076520875, 3272.2503977947426, 3275.11374931201, 3271.467654229543, 3262.556712760732, 3251.7214823199783, 3263.0324804601432], [34195.564496956766, 32780.964227889126, 34903.51402392821, 35318.89105247084, 35779.0221083393, 37631.558836879536, 38139.06739833352, 38789.911017016355, 39115.66619659281, 39405.62600290026  …  38737.822697201365, 37709.47649534377, 37642.15605791951, 36880.912881863704, 36791.9130364248, 36553.098831926065, 37915.40606144101, 38089.11386943249, 40033.27019759513, 40407.643321087744], [34195.564496956766, 32747.939007640078, 34833.22227854092, 35212.252385237625, 35635.05737874334, 37442.38060980149, 37909.10777730173, 38517.18381839949, 38801.51859617383, 39049.769254534214  …  38310.68751768064, 37256.108617037135, 37152.130846764696, 36364.12550127839, 36239.8260771025, 35968.32256626737, 37271.24878302887, 37404.28442048483, 39273.87905583237, 39601.214172153224], [33097.63671130043, 32102.1774808286, 33469.52173437569, 33918.901829419825, 34267.36740609108, 36057.953543306925, 36516.92531825549, 36906.88177524317, 37565.91768268128, 37536.67418381638  …  36898.97711240827, 36020.4996780084, 35657.04581819472, 35082.90672605043, 34757.004509548045, 34499.65023074748, 35548.451519750655, 35853.38756350559, 37642.54927908034, 38373.54616420068], [33097.63671130043, 32069.83610507135, 33402.11788792128, 33816.4901631042, 34129.4851501802, 35876.686013227896, 36296.74640775073, 36647.39392872993, 37264.21649630142, 37197.69520607992  …  36492.11761139202, 35587.4377786585, 35192.86275229028, 34591.313594168096, 34235.45269690293, 33947.72502404389, 34944.50720894405, 35208.755721132206, 36928.50772477288, 37607.712187472665], [29576.147776884874, 29605.9743499166, 29567.847621926103, 29713.597936470018, 29918.15613262313, 30181.196058932856, 30384.655978767067, 30507.589515798732, 30786.45737991545, 30848.634454382165  …  31186.996905825494, 31330.203829778708, 31344.92602109241, 31417.715495851746, 31390.188703919455, 31441.022605822174, 31504.852297314388, 31644.08615158939, 31720.966909764953, 31930.378210491457], [34346.71094688275, 34381.34847608994, 34345.124008778694, 34561.07542689207, 34862.90197308654, 35279.245121264816, 35434.566018046615, 35636.22909700607, 36011.41519293413, 36100.68149732183  …  36532.609941003844, 36618.78965748596, 36533.38562686294, 36518.857786198176, 36362.762161064835, 36418.40769178749, 36444.46247512314, 36600.752411834656, 36685.79432920648, 37016.86162265951], [28335.32931213966, 28363.904560528437, 28334.02012087981, 28512.175594256267, 28761.17628008007, 29104.650804576137, 29232.787346272235, 29399.155234052036, 29708.676037889665, 29782.318900963644  …  30138.65097333987, 30209.747464946424, 30139.290898201798, 30127.30572879018, 29998.53005215617, 30044.43646922806, 30065.93112899661, 30194.86710868162, 30265.024939450137, 30538.148639678024], [978.061771770434, 979.0481149238881, 974.4281745484822, 983.5715767659829, 993.6752313107064, 1006.3397036858455, 1017.9464552080826, 1028.3547937659564, 1035.7676650555645, 1047.714040362267  …  1055.3719393842766, 1056.6257628456299, 1050.5061431314764, 1046.811706234893, 1038.6146414017057, 1037.535771872433, 1033.9679870116092, 1039.3110757086345, 1042.7265530516638, 1055.5903240187397], [0.0019383188997990075, 0.005560882675016199, 0.005172081834783571, 0.008718286997808633, 0.007495598785868918, 0.0035456930424608846, 0.0035415957749380667, 0.004455697290242089, 0.0016754976678625688, 0.0036994697231598206  …  0.0013444251180390054, 0.0038467256173031483, 0.006543387577851334, 0.002990608539327644, 0.006460972838390644, 0.004081519994164617, 0.007349700198502784, 0.006301956897533767, 0.002352568492775431, 0.00010539818657240296], [2.3548476e6, 2.3280978554516844e6, 2.379902921085988e6, 2.379874296885189e6, 2.3860557068650424e6, 2.4066959137589373e6, 2.415236266861313e6, 2.4471469479039703e6, 2.4371147781979125e6, 2.4403740946582067e6  …  2.437843145161245e6, 2.438542121141506e6, 2.4504715007703765e6, 2.4354081401622407e6, 2.424081346265774e6, 2.421738129430244e6, 2.432058614673286e6, 2.4438841326048234e6, 2.4735748089666488e6, 2.4815650998557163e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.00859718811958056, 0.00807718772268552, 0.008110544047926702, 0.006974092578726793, 0.006148584891121962, 0.005691969939444495, 0.005858407595306774, 0.006047569087931483, 0.006848807207869945, 0.0066619153507185315], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 556.5554935810196 282.334308467129 … 145.78968220093236 532.7174612570127; 557.1167615054541 280.02053929143585 … 146.3028241078202 534.7818327266984], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 545.9981918757444 276.97870869205656 … 143.02419757583547 522.612343210343; 545.9981918757442 274.43207367886384 … 143.38300864136326 524.109008904618]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72494.03220329057, 72530.66649724873, 72576.07900138543, 72280.57185884431, 72443.76582379678, 72353.38405133894, 72315.54915903423, 72661.5923282258, 73026.27853583042  …  74144.05308379757, 74826.13983258815, 75304.30421461636, 75618.4877122519, 75871.14896534545, 75971.72564410979, 76100.55670856358, 76239.04576836644, 76358.20939705313, 76553.60936220472], [72422.0, 72420.9980068707, 72384.59790545296, 72356.9493484689, 71989.7351514802, 72079.58257959974, 71917.12910564165, 71807.1072311853, 72078.02908893957, 72366.80686487886  …  73326.5178890113, 73926.5312617297, 74323.99353536451, 74558.89679827896, 74732.65225572593, 74756.33041258379, 74807.65937243566, 74868.29338276773, 74909.77044787885, 75025.80281443593], [64900.92049553801, 64966.370940930254, 65005.0222010805, 65034.52005059595, 64751.78181990344, 64897.95911964985, 64808.44857187822, 64752.088257696145, 65072.98575443089, 65432.97193837665  …  66502.87380467687, 67115.51068126503, 67531.82397083487, 67801.72376391682, 68023.05224076689, 68099.03155997988, 68207.41077115561, 68328.94786780716, 68426.87459052821, 68609.58488218686], [64900.92049553801, 64900.920495538, 64874.10940913854, 64838.160699107604, 64491.23884775822, 64571.70952418503, 64417.68583723697, 64296.82411369323, 64550.36849350787, 64842.07244021372  …  65769.59260910605, 66308.60431429898, 66652.69536167478, 66851.66389594741, 67002.32140684, 67009.58364330017, 67048.6126820966, 67100.41638041398, 67128.8851391018, 67240.3199462026], [40512.94792630534, 40550.40784506942, 40524.18134352901, 40597.69249959916, 40538.130229747265, 40683.253554780895, 40720.13441207307, 40814.35595895805, 40906.22630964621, 40842.727977238406  …  40990.75709141317, 41355.57505242573, 41676.65225351175, 41910.90250990098, 42081.70996951078, 42259.75802415393, 42319.54089072212, 42460.638724558914, 42558.40747399262, 42604.262151767834], [40512.94792630534, 40509.55528988029, 40442.57020732433, 40475.11549641777, 40375.016186574736, 40478.73410309883, 40474.61223975665, 40527.39513145957, 40577.698277609634, 40473.89332476249  …  40538.78036247319, 40858.371403364356, 41134.10601122592, 41323.633274037835, 41450.24611284328, 41583.68665743777, 41600.56032014221, 41697.21072989894, 41751.11700074928, 41753.99433003319], [14866.888022051655, 14856.984652513022, 14938.500995528, 14837.633708111887, 14838.692569749954, 14706.33299683391, 14843.0816818509, 15115.00714827141, 15162.697139590062, 15251.982516685954  …  15748.101765562658, 15962.338186660398, 16124.258273696823, 16277.606372211922, 16260.049260116775, 16361.84170624967, 16297.86554809506, 16405.107727359726, 16519.775380979387, 16594.71164117549], [14866.888022051655, 14842.016966176063, 14908.416537334875, 14792.834298040463, 14778.985841128551, 14632.402548849546, 14753.58527642357, 15008.735351081335, 15040.921764518085, 15114.247846410124  …  15574.458338896, 15770.428564223801, 15914.35284072617, 16049.519242529343, 16016.056479813014, 16100.085056388714, 16020.975760909938, 16110.14941135975, 16206.411745525354, 16263.525308944385], [15944.236265986641, 16011.776357094432, 16462.86933535054, 16744.981475565943, 15764.54014232091, 16268.460954540702, 16050.157551948922, 15463.113019100136, 15483.337686383833, 15526.032417141269  …  16188.83449058858, 16344.552912432477, 16681.92270758744, 16546.236815743086, 16797.95135707668, 16921.994563052285, 16600.418636006878, 16897.632613484675, 16588.09644524588, 16666.472824721262], [15944.236265986641, 15995.64527452175, 16429.714971040066, 16694.423192047176, 15701.10806326851, 16186.677507460836, 15953.383078949952, 15354.393731403281, 15358.987167688685, 15385.82290973282  …  16010.331408977036, 16148.04805571034, 16464.75760459282, 16314.385548667738, 16545.887000477614, 16651.276590997946, 16318.388675105323, 16593.818865785393, 16273.436827456546, 16333.854330022436], [15944.236265986641, 15960.057642470616, 15967.614775695063, 15965.53426906915, 15902.696099773864, 15933.014888376558, 15939.28557755153, 15927.63512132294, 15995.46206021096, 16076.27300623163  …  16210.518388588273, 16344.169770529636, 16498.080434782623, 16574.070571156255, 16639.935963361113, 16676.896820658916, 16706.9550190274, 16733.570968826927, 16762.108983939783, 16782.873135579306], [15944.236265986641, 15943.978663976679, 15935.45779827765, 15917.329377992857, 15838.708119976145, 15852.917767721603, 15843.17960745404, 15815.649834599193, 15866.998543865582, 15931.094491939793  …  16031.776213630226, 16147.66952018891, 16283.308588657026, 16341.829288421643, 16390.242732127455, 16410.09992088294, 16423.115076546663, 16432.706994285654, 16444.148522132775, 16447.93160009151], [3173.2320350842083, 3176.174273512229, 3174.570974458323, 3179.916771150309, 3171.1470311721137, 3186.571456274117, 3189.4601998445364, 3196.8495416050187, 3204.2859918680215, 3211.9016590472684  …  3139.6814655603, 3155.430073539902, 3221.295754628081, 3249.8950033885053, 3273.26184197333, 3298.9904621308647, 3312.8819835444115, 3316.63029797144, 3330.3345776083406, 3323.345299864237], [3173.2320350842083, 3172.974433074255, 3168.177746129005, 3170.3156178784166, 3158.3872267406423, 3170.552190604879, 3170.22934002325, 3174.372877002749, 3178.5515776734132, 3182.896235294437  …  3105.0623694661977, 3117.493438758902, 3179.3609587060414, 3204.356414597093, 3224.1443857646195, 3246.213231621367, 3256.59834415089, 3256.998401385193, 3267.1614577292876, 3257.020161808294], [34195.564496956766, 34125.88485439806, 34201.06274546947, 34772.0519958966, 36335.4580267718, 34899.47163430957, 33835.573270538705, 34273.854456696135, 34027.748522266455, 34804.00404419586  …  34188.33769991826, 34225.97538477249, 34736.78205579618, 34839.81011645505, 35117.5049646353, 34251.89166085008, 35862.971392193045, 35451.3075616684, 35796.13829469815, 35261.146474996516], [34195.564496956766, 34091.50469231145, 34132.185657826325, 34667.06440508302, 36189.25435542133, 34724.02792764948, 33631.56158023127, 34032.8791085528, 33754.46324847871, 34489.702738377986  …  33811.36654500533, 33814.48842485423, 34284.57897434819, 34351.623333555945, 34590.54360452004, 33703.930094327894, 35253.68360003972, 34813.90498241269, 35117.12131216959, 34557.427722671724], [33097.63671130043, 33051.02150578419, 33595.947922628126, 34376.28067778784, 35196.24910974555, 34113.75331666825, 33095.56286507225, 33350.78142399136, 32918.417329660624, 33398.468419430894  …  32971.97796368497, 33062.301703702695, 33915.311075975704, 33956.06810205889, 34386.066585993845, 33823.76031019617, 34980.23975845317, 34975.640858705265, 35104.20819786267, 34572.98373045632], [33097.63671130043, 33017.724216018774, 33528.28946807242, 34272.48804311909, 35054.629294912906, 33942.259507458846, 32896.013069719476, 33116.29609131152, 32654.041369355476, 33096.859954404434  …  32608.418766340204, 32664.80518642275, 33473.80189552864, 33480.26460051175, 33870.08094192783, 33282.64798656849, 34385.948983761205, 34346.79060668905, 34438.3164380217, 33882.99887723565], [29576.147776884874, 29605.97434991661, 29628.136344954106, 29603.38494477786, 29504.829108067326, 29559.566221637688, 29568.861106729655, 29501.351304792246, 29610.10742281523, 29766.863004584826  …  30215.470268283825, 30465.454598024106, 30660.027674370758, 30765.029667596486, 30860.83448443474, 30903.63777633213, 30918.2379418621, 31004.826390195634, 31031.37069266736, 31088.707048360342], [34346.71094688275, 34381.34847608993, 34397.668720625654, 34450.822572064484, 34269.23809559767, 34345.90656500344, 34264.51417149202, 34269.25312428563, 34473.228167390655, 34673.61982577545  …  35284.419868215475, 35635.499939814996, 35855.77252282812, 36014.35329883146, 36134.41674824347, 36161.11322469179, 36251.836500982245, 36279.35255958325, 36349.03439955674, 36472.955167079635], [28335.32931213966, 28363.90456052843, 28377.368426226938, 28421.219259194815, 28271.415805041186, 28334.665713651928, 28267.5186649224, 28271.428203399297, 28439.703413994488, 28605.02240597949  …  29108.91986425934, 29398.55369438318, 29580.27403982659, 29711.099914757626, 29810.149788345294, 29832.173831718952, 29907.01866661281, 29929.718848386758, 29987.204931574695, 30089.437013179384], [978.061771770434, 979.0481149238881, 979.2171355007189, 980.3125337535647, 977.7146162385184, 992.4863330086914, 975.0732936566778, 981.4838286182729, 989.6501642251371, 992.4891080164566  …  1002.9836681776601, 1014.5561434258365, 1016.0237736361152, 1022.3407974889541, 1027.8010080887684, 1034.2805589559384, 1037.3363283113133, 1044.7689180282944, 1046.4694983041738, 1047.9226667468242], [0.0019383188997990075, 0.001053864276997274, 0.0024872457965154915, 0.006000933876068704, 0.004348048319886999, 0.0024609924837037944, 0.0061894490535259195, 0.0015825978000947316, 0.004959464179307149, 0.0053399728592793405  …  0.011092217267981264, 0.008832088610450484, 0.007837880689684829, 0.008509999422367631, 0.00946619836788587, 0.010033460314942344, 0.005609328020555582, 0.00102661794210257, 0.002115019231276438, 0.003466445383311978], [2.3548476e6, 2.360071429297111e6, 2.3634008580174516e6, 2.3790198363296916e6, 2.4102767519837525e6, 2.386109596145417e6, 2.357275457083526e6, 2.3800481381815136e6, 2.378112464790038e6, 2.405275630155042e6  …  2.401550701378514e6, 2.40537232184705e6, 2.403696768595995e6, 2.3858921904887795e6, 2.3930173419781975e6, 2.3896125587076126e6, 2.4111266478512892e6, 2.3938552397984853e6, 2.394993430376067e6, 2.3822750715326327e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.008801374098496798, 0.008508981285645466, 0.007990382285943155, 0.006865548758523779, 0.006868240165082937, 0.0064500645276880635, 0.006986820209213844, 0.0057885499558142026, 0.0054553074944660995, 0.00460865208490598], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 528.8463506839289 263.4785811237555 … 143.53886281603712 531.9846653683139; 533.1179439230316 262.6298393736856 … 143.84795877984368 533.3762318333554], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 518.8146637375236 258.4806556592073 … 140.8160739860654 521.893447727573; 522.4783268985113 257.38844590344314 … 140.97713589979915 522.731460068727])])

Finally, we can plot baseline and shocked simulations

Te = T + 1
+data_vec_shocked = Bit.ensemblerun(model, 4)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72493.81045047568, 72397.55266705957, 72255.14452456943, 72304.66085813176, 72769.59410018873, 73023.04484044774, 73019.970285278, 73246.71140975447, 73399.97611494441  …  73408.638055954, 73648.26794179497, 73747.00359479764, 73766.45845371032, 73813.3097210167, 73800.2337940396, 73987.33013874403, 74111.58743029385, 74309.9271462071, 74552.23444004676], [72422.0, 72420.77647746094, 72251.75215152267, 72036.98387220353, 72013.7272234045, 72403.77287931554, 72582.75217301813, 72506.57565721986, 72658.44893424668, 72737.12972776915  …  72599.2117740616, 72762.82051369664, 72786.96583944224, 72732.81877777634, 72705.69224863734, 72619.57807668793, 72730.33510242737, 72779.08602964386, 72900.34206506445, 73064.37001566202], [64900.92049553801, 64966.370940930254, 64881.58687267774, 64743.57452641266, 64779.86219713873, 65215.734147943294, 65439.24417901262, 65418.76118849062, 65622.29579246181, 65754.92507382855  …  65747.83317232454, 65971.00860842856, 66047.47782182675, 66047.66235846643, 66077.37779988028, 66058.58490245535, 66236.20608061273, 66342.31088168922, 66532.07024666134, 66749.51968503602], [64900.92049553801, 64900.920495538, 64750.92266558232, 64548.09362954198, 64519.20623744724, 64887.88706041804, 65044.67806037008, 64958.80974730027, 65095.26688661206, 65161.11814321169  …  65022.87728761527, 65177.862190544714, 65187.67241599158, 65122.18097102472, 65085.84309622342, 65001.78003971054, 65110.89743504265, 65149.49845872832, 65270.02334069806, 65417.37670595469], [40512.94792630534, 40553.68090829163, 40507.678132976616, 40527.47068391062, 40572.66489930863, 40658.20092739979, 40836.838277447656, 40945.489368549606, 41043.800818144984, 41171.851073016034  …  41307.62723972607, 41407.23483967867, 41585.84300086424, 41691.29857993363, 41782.55641925789, 41831.82155497443, 41906.19149897945, 41997.550357150365, 41992.5786783421, 42115.94256002406], [40512.94792630534, 40512.8250556512, 40426.100232378914, 40405.105702132314, 40409.41189833141, 40453.807418192, 40590.61243882562, 40657.60655782131, 40714.16789116665, 40800.04423898748  …  40852.15660281047, 40909.41010302046, 41044.4789125214, 41107.10650596449, 41155.58155922841, 41162.59631344001, 41194.23345688806, 41242.448535489835, 41196.02141208021, 41275.42029928776], [14866.888022051655, 14726.500299880463, 14524.48307357013, 14597.130855734404, 14922.682776268342, 14993.69101850988, 15074.7903233592, 15122.091196599955, 15271.502698829681, 15317.751891525442  …  15091.387484548579, 14979.921157841993, 15033.818732682686, 15223.072077194047, 15147.668852201376, 15134.677321669833, 15209.911973696058, 15450.172600808035, 15483.820655443056, 15537.15347142481], [14866.888022051655, 14711.664070155164, 14495.232400832992, 14553.05759823682, 14862.638094660595, 14918.315988298322, 14983.896829984367, 15015.769592318184, 15148.853479370762, 15179.423283828817  …  14924.985192070335, 14799.822792557834, 14838.108630753011, 15009.761426006076, 14920.368074740938, 14892.552840601518, 14951.505786881415, 15172.383697011806, 15190.10804619693, 15227.073189056755], [15944.236265986641, 16250.426691270399, 16319.073224910366, 15933.781613951316, 15463.785649073427, 15940.557801678413, 16380.414363894019, 16039.631409088814, 16172.431606108974, 16590.46584724267  …  15920.715475160063, 16331.570686349378, 16500.676620097605, 16519.107702759666, 16440.884270193725, 15997.040072947688, 16266.540790364937, 16299.247857875233, 16249.943980508597, 16195.609570074492], [15944.236265986641, 16234.055180143085, 16286.208449767786, 15885.672593971816, 15401.56372157754, 15860.422761920197, 16281.648606458924, 15926.858689936966, 16042.546803522135, 16440.64385913768  …  15745.168756498646, 16135.221910401751, 16285.87097685758, 16287.636577664045, 16194.177941106724, 15741.119517525894, 15990.18318977052, 16006.192866702799, 15941.698777155587, 15872.38825428795], [15944.236265986641, 15960.315504263734, 15941.354194706473, 15918.839282739653, 15926.430385054458, 16010.319823551086, 16059.931556203679, 16068.899207956281, 16103.165485008456, 16135.411708749085  …  16162.786712946521, 16191.077048124425, 16232.265238903014, 16253.75579862401, 16251.644505145396, 16267.332564768984, 16302.057675594377, 16334.012860081522, 16357.091282484003, 16418.957680938347], [15944.236265986641, 15944.236265986634, 15909.250103140936, 15870.775378284401, 15862.346905163071, 15929.834081987707, 15963.098150816786, 15955.920710430997, 15973.836975790739, 15989.699136036777  …  15984.57084216427, 15996.417378168115, 16020.953772339366, 16026.002870957802, 16007.777843742024, 16007.087871611844, 16025.096666979216, 16040.332805869155, 16046.81360185441, 16091.278930563774], [3173.2320350842083, 3176.432135305343, 3172.8286808165776, 3174.3695499289597, 3176.5485621792245, 3189.1908478342243, 3199.612729849756, 3200.85346132101, 3207.060383353183, 3218.821022683228  …  3233.9128388315494, 3223.6728412490415, 3246.395233122777, 3265.1870512787864, 3272.6739995530816, 3277.448153188429, 3270.367785429163, 3278.779008212694, 3273.771736210481, 3283.676193961781], [3173.2320350842083, 3173.2320350842087, 3166.438961270386, 3164.785145435417, 3163.767023505031, 3173.158414178684, 3180.320655318411, 3178.348645640818, 3181.3036873336087, 3189.7531128720816  …  3198.2547185555077, 3184.915747483167, 3204.133692440683, 3219.4341853245987, 3223.5653643082014, 3225.0155564139463, 3214.8064337017054, 3219.827665077931, 3211.6715569255575, 3218.142745811091], [34195.564496956766, 34298.09748722128, 34760.98045461122, 34486.71048433125, 35296.40542629663, 35457.76108709337, 34440.187963202756, 34806.79507594433, 35025.914608054685, 34478.833173710635  …  35831.60110868974, 35866.40871640562, 34785.88900169334, 34923.364294858875, 34855.96928283357, 34678.68105192482, 33705.039900387164, 33528.75228749691, 33089.909688502856, 33430.66134291884], [34195.564496956766, 34263.54382931893, 34690.975755776206, 34382.584427886155, 35154.38261059421, 35279.510794361966, 34232.530746796205, 34562.07268641043, 34744.61281528208, 34167.468358449325  …  35436.51082466142, 35435.19939892157, 34333.04664651478, 34434.00672355951, 34332.93243839043, 34123.891711169694, 33132.41391463808, 32925.91660505852, 32462.22715906769, 32763.47420802776], [33097.63671130043, 33334.89493618774, 33714.66221900867, 33289.94911335821, 33950.877892815064, 34280.61673449268, 33709.186087455666, 33894.036764904464, 34266.93832138358, 34158.92587055009  …  34742.69325217021, 34936.86745848039, 34159.22376054003, 34590.38420103562, 34413.769103469574, 33841.98620747722, 33100.35402468352, 33164.13567303654, 32506.325856589352, 32727.13250439549], [33097.63671130043, 33301.3116578072, 33646.76468723314, 33189.436450023546, 33814.26910175912, 34108.28408345677, 33505.936449046865, 33655.731869266725, 33991.73205509478, 33850.45001263394  …  34359.6096019791, 34516.833691204694, 33714.53932720441, 34105.692455417564, 33897.36776482891, 33300.5823060492, 32538.00124575059, 32567.855674618884, 31889.713329435894, 32073.985934998254], [29576.147776884874, 29605.974349916603, 29586.470938972197, 29554.96646929005, 29558.77833104899, 29706.24572171676, 29790.17005292416, 29795.855923850395, 29857.372767856385, 29912.22074786236  …  29959.78073848306, 30055.020462994074, 30119.12641191989, 30115.446656686192, 30083.81386676657, 30105.645453656154, 30202.169210113658, 30243.622509021745, 30287.811619925567, 30390.934196224694], [34346.71094688275, 34381.34847608994, 34315.79343735193, 34210.37300012636, 34244.076349855095, 34522.7167082782, 34659.00142181686, 34635.490037036514, 34769.14619248028, 34842.43302892603  …  34787.80130687335, 34911.587420435906, 34924.14254523252, 34930.647141160494, 34987.81763146752, 34946.19853904916, 35031.98549335449, 35097.662144990245, 35237.5867539694, 35353.43699539344], [28335.32931213966, 28363.904560528437, 28309.823003386497, 28222.853313344385, 28250.657882898737, 28480.53044122846, 28592.962523715214, 28573.566115384707, 28683.829691566734, 28744.289822615283  …  28699.219776821206, 28801.340771681218, 28811.698491121, 28817.064648828113, 28864.22912615729, 28829.894231873805, 28900.666702771716, 28954.84858805021, 29070.28350932778, 29165.8575730778], [978.061771770434, 979.0481149238881, 979.3224963536278, 978.2350569962288, 977.0075162347331, 986.7717179482759, 990.0727042717328, 987.415227603674, 995.7768321252817, 1000.2712970402289  …  1000.2511269681883, 1004.4007249985964, 1004.2088646744128, 1001.5685606197848, 1005.746301646185, 1006.7409097499906, 1002.0513771445775, 1001.0262276772012, 1006.6718727664384, 1005.1484934178723], [0.0019383188997990075, 0.001579856938285662, 0.005076864754054666, 0.00296255944076651, 0.002985779766072616, 0.007929273767045109, 0.00867991106379229, 0.005780599287288801, 0.00658976140790779, 0.0020371271247836553  …  0.006679449448140362, 0.002907152642453781, 0.0018983935682945763, 0.0005240484340220952, 0.0019521268606155218, 0.002271602516311866, 0.0029023605140463538, 0.0007850484050690998, 0.004073336755821, 0.002271827518254943], [2.3548476e6, 2.3532415308908136e6, 2.3830524785926673e6, 2.3786836496352563e6, 2.3900160917833634e6, 2.3757895380630423e6, 2.3626114169942765e6, 2.367884806477441e6, 2.371889022849767e6, 2.3583359007620956e6  …  2.3687373886902304e6, 2.3807519871179787e6, 2.3671816156409443e6, 2.374770441009302e6, 2.373136997183881e6, 2.3745238409123393e6, 2.361531394877096e6, 2.338849509036181e6, 2.3172871521281595e6, 2.310060476584982e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.009307788809841821, 0.009184313987991069, 0.007987279673934262, 0.007723309154203669, 0.007128670650908567, 0.006710522390600634, 0.005742138576179118, 0.0043903242061607475, 0.0032519684630575485, 0.002756604418269876], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 528.4951445312406 260.9752904465731 … 140.85450738274915 524.0546653789679; 534.056142281617 263.57107083682286 … 141.163475902975 525.7364904646163], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 518.4701196146934 256.0248499053439 … 138.1826380936327 514.113871915828; 523.3978013117834 258.3108928885621 … 138.3462281652505 515.2441876297196]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72470.13677189087, 72717.16733853743, 72893.26681406151, 73182.22740420856, 73450.30818263539, 73809.7368803619, 74375.80809144671, 74930.31963964198, 75390.1087870171  …  76330.81838367895, 76776.26512968595, 77148.8583063337, 77684.20872303522, 78035.6970172679, 78628.40547420477, 79254.83160054749, 79742.20357904158, 80082.78069295351, 80307.07180041587], [72422.0, 72397.12664895094, 72570.7231550565, 72673.1794729335, 72887.76268833202, 73081.06493282568, 73364.7008509228, 73852.88073085675, 74328.53568957158, 74709.29029247168  …  75489.17124031394, 75853.21088281907, 76144.53524036097, 76595.6722524925, 76864.71983426013, 77370.50869398064, 77908.34525296412, 78308.46559495246, 78563.69034720381, 78704.35611984976], [64900.92049553801, 64966.370940930254, 65186.634115020745, 65362.81172438698, 65645.44717665092, 65881.7178910031, 66232.1921704804, 66759.05925608364, 67259.63268205507, 67691.69115812545  …  68561.37511208274, 68973.67496804259, 69326.00752131695, 69817.17621687769, 70159.93646944876, 70721.55276043978, 71297.36359498328, 71739.59985577659, 72032.40937672886, 72231.97791993766], [64900.92049553801, 64900.920495538, 65055.355577142596, 65165.46115869251, 65381.30834626667, 65550.52282567222, 65832.84496954978, 66289.68434039426, 66719.45391823357, 67080.39405285526  …  67805.39624626987, 68144.42854020809, 68423.52224863802, 68838.87517176651, 69107.14027607563, 69590.14976462304, 70086.06928319688, 70449.74599345349, 70666.02653239654, 70790.41964797999], [40512.94792630534, 40376.06547358849, 40535.380862983395, 40478.351555694964, 40504.60376304546, 40731.76075930522, 40718.85822382346, 40880.07994867458, 41158.64190316232, 41305.847924393966  …  41636.02753480314, 41784.587672049085, 41901.119964232596, 42135.379490212275, 42099.68347146979, 42196.571574546135, 42417.78550673165, 42654.720545654636, 42956.866647093484, 43080.25837268383], [40512.94792630534, 40335.38855982274, 40453.74717220815, 40356.134879772624, 40341.624620952665, 40526.99745625911, 40473.343746287785, 40592.657023709726, 40828.08665899498, 40932.83101737169  …  41176.935854957774, 41282.22615395338, 41355.65160353342, 41544.96480968462, 41467.94991053254, 41521.511064289036, 41697.135826124184, 41887.80302516761, 42142.017801404, 42220.490931675195], [14866.888022051655, 14871.169172173508, 14905.366220514417, 14971.161323605551, 14784.705797345681, 14930.63870978845, 15018.667046490282, 15072.303927011571, 15151.980713433933, 15256.889696210534  …  15585.782577684176, 15570.983232645278, 15678.817548823432, 15738.670683570776, 15985.312172955686, 16288.192092439802, 16495.101245843784, 16522.961827982374, 16533.063899714976, 16488.610772481898], [14866.888022051655, 14856.187195625835, 14875.34849202556, 14925.958752321229, 14725.216296323966, 14855.580650872931, 14928.11194858127, 14966.3323710337, 15030.2914046338, 15119.110711121622  …  15413.92893244118, 15383.778734269266, 15474.71085875505, 15518.135296539804, 15745.442004132245, 16027.613688678659, 16214.860556651769, 16225.884534915709, 16219.448194336128, 16159.541931552363], [15944.236265986641, 15947.053756326784, 15998.599964538422, 16028.519569717724, 16225.061691081302, 16019.753815812202, 16143.424558258446, 16309.501062518872, 16438.156869835977, 16569.1020537366  …  16681.25323074305, 16884.78534143969, 16822.86085717704, 17110.281696622213, 17021.08397978026, 17167.907622334853, 17269.450782031574, 17408.503433879552, 17486.21425663709, 17595.144883133264], [15944.236265986641, 15930.987878612954, 15966.380586441139, 15980.124506517788, 16159.776602742082, 15939.220648471475, 16046.087731565727, 16194.830922294286, 16306.137961861465, 16419.472993669027  …  16497.320588244274, 16681.785458721697, 16603.86102276051, 16870.52684870406, 16765.6713707794, 16893.255534567346, 16976.054414407387, 17095.50440075704, 17154.518241200083, 17243.992562748394], [15944.236265986641, 15944.752059928407, 15992.689871972034, 16021.438863734089, 16074.323195266581, 16135.715797010336, 16193.741420341543, 16309.640838819541, 16436.257832892203, 16516.418656388065  …  16713.41241817831, 16822.939949436983, 16907.957928002157, 17033.818475969183, 17107.47073295543, 17183.87865974174, 17292.085787609496, 17445.87028678633, 17547.57049466477, 17606.456889725454], [15944.236265986641, 15928.68850106127, 15960.48239613541, 15973.065179377787, 16009.644636270841, 16054.599675290636, 16096.10120797829, 16194.9697158446, 16304.254176553592, 16367.265359412597  …  16529.125178561215, 16620.683612287932, 16687.850300768565, 16795.13505563849, 16850.761833657325, 16908.97106740931, 16998.30486644614, 17132.199410223908, 17214.710612688254, 17255.078811758623], [3173.2320350842083, 3160.8686909700195, 3162.7637622194807, 3159.046980557394, 3156.8718700191857, 3159.7990164224125, 3145.654341876952, 3157.78744802872, 3190.4514935073616, 3191.298793921993  …  3200.509851050666, 3222.246375037232, 3232.3091198555385, 3258.70898574854, 3260.102862788379, 3229.7482397882404, 3229.937762737315, 3298.1148047844476, 3328.2873282661353, 3351.7166626623152], [3173.2320350842083, 3157.6842701588453, 3156.3943122855367, 3149.5088396448364, 3144.169504824292, 3143.9143389249703, 3126.6876096073843, 3135.585424307895, 3164.8281875945563, 3162.479426560945  …  3165.220042419131, 3183.506431176904, 3190.2309520551194, 3213.0468925615, 3211.1828657549886, 3178.078745955034, 3175.0632899355883, 3238.8158105345715, 3265.1530426618992, 3284.8253076218257], [34195.564496956766, 34236.92463592602, 34523.39497881619, 35024.0770730356, 34882.695965692175, 34629.60429255584, 34903.475108504914, 36230.12719606768, 37166.498106178864, 35867.98075869936  …  35405.149163050795, 35951.286469975115, 35510.012863622615, 34853.76368490666, 34702.658047700046, 34851.87001190126, 35145.95099591377, 34754.19243683067, 34422.22170980614, 35470.96960945224], [34195.564496956766, 34202.43260668334, 34453.86875036558, 34918.32854048421, 34742.33780058999, 34455.51724043881, 34693.024500869, 35975.397529598915, 36868.00475731574, 35544.07109660421  …  35014.761069689725, 35519.05669687552, 35047.74387125056, 34365.381380055456, 34181.9217396155, 34294.309995157135, 34548.844898618074, 34129.323752914315, 33769.26655232839, 34763.063345116774], [33097.63671130043, 32961.076266123666, 33245.574688314686, 33608.842707992, 33214.8398129557, 32861.44939482631, 32974.68805671487, 34116.204042826015, 34984.95795296908, 33609.71164602316  …  32977.394122602236, 33415.377586423274, 32763.95292752202, 32153.88683227649, 31773.04065463789, 31876.13582701727, 32073.456929973072, 31598.174665305618, 31315.585820298245, 32327.911837335483], [33097.63671130043, 32927.86959179376, 33178.62184598358, 33507.36720616194, 33081.19263227636, 32696.251063216492, 32775.86707638076, 33876.337115779934, 34703.98509323439, 33306.1955262946  …  32613.77520501906, 33013.63616100085, 32337.432115938595, 31703.336082491252, 31296.265190799524, 31366.18158871154, 31528.550442837066, 31030.05011880217, 30721.560442064896, 31682.7326512431], [29576.147776884874, 29605.974349916603, 29712.2515102354, 29777.941275291898, 29910.936539653536, 30063.339172066055, 30212.442267483675, 30449.778936600087, 30677.36475077234, 30863.576745177066  …  31246.07580991969, 31435.86589229789, 31625.503116635216, 31843.082051923437, 31985.382993912724, 32202.486879254895, 32433.132018190307, 32639.534713557594, 32776.89501363139, 32889.9551336319], [34346.71094688275, 34381.34847608994, 34493.356421843, 34600.8352572325, 34745.20210349573, 34830.06232802087, 35028.55519450602, 35311.55162173961, 35574.939678573566, 35810.87053318688  …  36290.13321142268, 36510.17017209185, 36668.681777385886, 36938.44283094748, 37138.81741899999, 37475.548692705794, 37811.88841527851, 38041.55389749731, 38193.79781696393, 38278.622291530424], [28335.32931213966, 28363.904560528437, 28456.308809465034, 28544.976635608753, 28664.076311177396, 28734.084249088555, 28897.836776853605, 29131.30300225794, 29348.592725830502, 29543.23082293102  …  29938.612664174307, 30120.138626035554, 30250.90743655568, 30473.45475120478, 30638.759660517135, 30916.556027828872, 31194.029373518075, 31383.498667400832, 31509.09676616869, 31579.075211100077], [978.061771770434, 979.0481149238881, 981.0261829423617, 984.0351918625513, 989.3085335016842, 988.3163909160709, 991.1947084907582, 997.728697743929, 1007.328252709181, 1017.2438797614593  …  1025.1660907404041, 1027.6389036528667, 1031.8226272957884, 1035.6513340068084, 1035.7360565360123, 1043.5171884791062, 1052.3431615144327, 1058.511244721654, 1061.71654613352, 1063.4004947753092], [0.0019383188997990075, 0.0067490144215809345, 0.008674756906715153, 0.004755603528465047, 0.005627246323003154, 0.006362779500699078, 0.006168244304813664, 0.007389566870056541, 0.0027637172684031874, 0.004192614413802476  …  0.007282256672928478, 0.007137761392910891, 0.0070401331345266716, 0.0030814087745709706, 0.007122189221949293, 0.0016213959382731513, 0.0037987793081093457, 0.00367824376839776, -0.00045104549555419204, -0.0013209107961180688], [2.3548476e6, 2.360229882489128e6, 2.363342429422308e6, 2.3870079350426807e6, 2.3878220413601156e6, 2.3791757986857207e6, 2.3718712108771754e6, 2.3846497604229823e6, 2.403353974431571e6, 2.373202451599758e6  …  2.3514622884185277e6, 2.355573357461796e6, 2.3455175480723865e6, 2.3356984623253336e6, 2.3355929499784284e6, 2.3501271830816413e6, 2.3511882419852596e6, 2.351752396943297e6, 2.3470351117775063e6, 2.362170412853083e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.008061693090787601, 0.007800621186326867, 0.006964780949128132, 0.006108102536325502, 0.005814897465036975, 0.00603369718640114, 0.0057185866653210555, 0.005403231124973752, 0.004795566138122576, 0.00504451563892787], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.50369622511613 … 137.13538556670355 505.4138092341077; … ; 603.635016093715 297.5801049016504 … 148.80664237670948 542.5979638838854; 604.3421501750374 300.0844504962883 … 149.57012762907505 544.7041901737014], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 592.1846628795823 291.9353075990131 … 145.98392903107043 532.3054225731669; 592.2810873221937 294.0955625500345 … 146.58510546949302 533.8333424726285]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72484.61474769242, 72405.16660078675, 72778.6559000988, 73318.90964451566, 74059.59307477892, 74492.77948539541, 74851.46106760185, 75577.70898999015, 75779.02558558673  …  76607.86431690287, 76871.92528769982, 76804.2061068435, 76870.67700998158, 76674.36583376287, 76789.62184961209, 76883.24496081614, 77214.34953212258, 77381.93907246772, 78003.64286959608], [72422.0, 72411.59003889903, 72259.3507516449, 72558.91460480494, 73023.89495771736, 73687.2868788879, 74043.62504852495, 74325.18944814919, 74970.7256957509, 75094.69493601781  …  75763.16237963931, 75947.72095213083, 75804.36971975726, 75793.5400111482, 75523.81632443951, 75561.14191927745, 75577.05027707199, 75826.0615130786, 75914.08099407404, 76446.89750750533], [64900.92049553801, 64966.37094093027, 64887.39980525333, 65258.244940128105, 65774.7333370203, 66466.78088388352, 66837.16845202167, 67172.17340657079, 67833.64023790517, 67997.02999206627  …  68774.9787862136, 69005.61925011038, 68928.81779108687, 68983.38498828474, 68791.56550638594, 68896.96606948214, 68983.28275944915, 69284.1496391327, 69449.48779202306, 70002.8301571697], [64900.92049553801, 64900.920495538, 64756.72389156644, 65061.21009393044, 65510.07429546139, 66132.64463877866, 66434.17354479084, 66699.89393497966, 67288.85147727608, 67382.97549158086  …  68016.64466041604, 68175.98876731849, 68031.50313034425, 68016.76729782263, 67759.30262323984, 67794.75280109196, 67811.30312651958, 68038.44394535302, 68132.10038977207, 68605.75974902757], [40512.94792630534, 40509.76384243997, 40452.91311312191, 40394.75588610706, 40459.22966830765, 40605.81253031096, 41015.96613489787, 41088.01234988836, 41393.45258991829, 41630.19327607283  …  41833.29106531124, 42093.06074150157, 42204.4806434095, 42349.24334522391, 42382.803161172254, 42446.96240336334, 42466.70244647514, 42653.13749436118, 42585.24822473642, 42946.9477209072], [40512.94792630534, 40468.952234098215, 40371.44550310496, 40272.791611393404, 40296.43309882005, 40401.68238367405, 40768.66024432314, 40799.12747722119, 41061.01152298557, 41254.24733343046  …  41372.02429694392, 41586.9905593243, 41655.06313642227, 41755.83193460477, 41746.821202266176, 41767.89614206148, 41745.221699922375, 41886.24843660356, 41777.448609266175, 42089.84080614108], [14866.888022051655, 14887.920084284322, 14956.59224520558, 15050.169743228496, 15307.600318941495, 15481.853767835051, 15608.442489332241, 15708.47232662503, 15900.197263981781, 15864.283212251361  …  16118.255055022148, 15874.0329077404, 15676.808820575367, 15372.93115446753, 15391.012632507936, 15328.029632306938, 15343.343551177632, 15373.997130434633, 15624.283998932395, 15836.08719279123], [14866.888022051655, 14872.921232010918, 14926.471353273582, 15004.728621063383, 15246.0068373196, 15404.024686654117, 15514.331338625389, 15598.027947149327, 15772.498842802821, 15721.01909461866  …  15940.530204033419, 15683.184948860857, 15472.728280111205, 15157.520629009985, 15160.060320874658, 15082.811902081077, 15082.670451497437, 15097.577835959843, 15327.906940385537, 15520.040987971588], [15944.236265986641, 16408.144073907904, 15561.668952906992, 15933.741047712303, 16040.424955018627, 16398.32148306045, 16246.228781087904, 16171.947149315261, 16734.31062217874, 16415.597278178397  …  16817.472611776695, 17215.854821122495, 16937.806403134146, 17350.496354476847, 16865.64151320635, 16961.18121276312, 16706.244421473002, 16951.488601400277, 16781.68593028427, 17186.510799010623], [15944.236265986641, 16391.613670221406, 15530.329504647156, 15885.632150214851, 15975.88279301483, 16315.88521198626, 16148.272096025948, 16058.244134109109, 16599.913230090315, 16267.35445951415  …  16632.037972373615, 17008.87460556709, 16717.310208749732, 17107.37554042307, 16612.56142109948, 16689.836332911324, 16422.41655156741, 16646.70654116296, 16463.354113362948, 16843.513728712118], [15944.236265986641, 15955.656318060144, 15945.8793703253, 15994.919861776541, 16047.73254100904, 16173.208678331124, 16276.636879334212, 16353.89716532252, 16486.542840707338, 16564.09376074804  …  16718.090076754004, 16799.67366450085, 16840.58953207973, 16876.16366918786, 16868.23093975152, 16900.498686450566, 16926.563462703045, 16973.36751655813, 16996.89835585625, 17097.931214107066], [15944.236265986641, 15939.581773685564, 15913.766165565823, 15946.626246497744, 15983.160975332949, 16091.904075532384, 16178.496848552866, 16238.914881439203, 16354.135333020195, 16414.50992860955  …  16533.75125983093, 16597.69704977751, 16621.358905950572, 16639.689359431348, 16615.1119915888, 16630.124605306995, 16638.992520291486, 16668.192080789355, 16674.484174222525, 16756.701956860637], [3173.2320350842083, 3171.772949101754, 3169.4090587401397, 3160.4561966521155, 3121.6078529064976, 3124.004696764934, 3158.6971255261424, 3180.1069292135026, 3186.8706435157246, 3241.9194815502583  …  3238.4678024887044, 3264.062018519571, 3301.816119739791, 3311.3097600451383, 3322.1007135334607, 3328.36084707148, 3328.0082792252233, 3322.2903756385795, 3314.5960582090324, 3329.4800518584343], [3173.2320350842083, 3168.577542783139, 3163.0262259275923, 3150.913800879856, 3109.047380205832, 3108.29996147934, 3139.651751753527, 3157.7479799051093, 3161.276096295833, 3212.6429786193294  …  3202.7594577786626, 3224.8193397679784, 3258.8331105099173, 3264.9106076520875, 3272.2503977947426, 3275.11374931201, 3271.467654229543, 3262.556712760732, 3251.7214823199783, 3263.0324804601432], [34195.564496956766, 32780.964227889126, 34903.51402392821, 35318.89105247084, 35779.0221083393, 37631.558836879536, 38139.06739833352, 38789.911017016355, 39115.66619659281, 39405.62600290026  …  38737.822697201365, 37709.47649534377, 37642.15605791951, 36880.912881863704, 36791.9130364248, 36553.098831926065, 37915.40606144101, 38089.11386943249, 40033.27019759513, 40407.643321087744], [34195.564496956766, 32747.939007640078, 34833.22227854092, 35212.252385237625, 35635.05737874334, 37442.38060980149, 37909.10777730173, 38517.18381839949, 38801.51859617383, 39049.769254534214  …  38310.68751768064, 37256.108617037135, 37152.130846764696, 36364.12550127839, 36239.8260771025, 35968.32256626737, 37271.24878302887, 37404.28442048483, 39273.87905583237, 39601.214172153224], [33097.63671130043, 32102.1774808286, 33469.52173437569, 33918.901829419825, 34267.36740609108, 36057.953543306925, 36516.92531825549, 36906.88177524317, 37565.91768268128, 37536.67418381638  …  36898.97711240827, 36020.4996780084, 35657.04581819472, 35082.90672605043, 34757.004509548045, 34499.65023074748, 35548.451519750655, 35853.38756350559, 37642.54927908034, 38373.54616420068], [33097.63671130043, 32069.83610507135, 33402.11788792128, 33816.4901631042, 34129.4851501802, 35876.686013227896, 36296.74640775073, 36647.39392872993, 37264.21649630142, 37197.69520607992  …  36492.11761139202, 35587.4377786585, 35192.86275229028, 34591.313594168096, 34235.45269690293, 33947.72502404389, 34944.50720894405, 35208.755721132206, 36928.50772477288, 37607.712187472665], [29576.147776884874, 29605.9743499166, 29567.847621926103, 29713.597936470018, 29918.15613262313, 30181.196058932856, 30384.655978767067, 30507.589515798732, 30786.45737991545, 30848.634454382165  …  31186.996905825494, 31330.203829778708, 31344.92602109241, 31417.715495851746, 31390.188703919455, 31441.022605822174, 31504.852297314388, 31644.08615158939, 31720.966909764953, 31930.378210491457], [34346.71094688275, 34381.34847608994, 34345.124008778694, 34561.07542689207, 34862.90197308654, 35279.245121264816, 35434.566018046615, 35636.22909700607, 36011.41519293413, 36100.68149732183  …  36532.609941003844, 36618.78965748596, 36533.38562686294, 36518.857786198176, 36362.762161064835, 36418.40769178749, 36444.46247512314, 36600.752411834656, 36685.79432920648, 37016.86162265951], [28335.32931213966, 28363.904560528437, 28334.02012087981, 28512.175594256267, 28761.17628008007, 29104.650804576137, 29232.787346272235, 29399.155234052036, 29708.676037889665, 29782.318900963644  …  30138.65097333987, 30209.747464946424, 30139.290898201798, 30127.30572879018, 29998.53005215617, 30044.43646922806, 30065.93112899661, 30194.86710868162, 30265.024939450137, 30538.148639678024], [978.061771770434, 979.0481149238881, 974.4281745484822, 983.5715767659829, 993.6752313107064, 1006.3397036858455, 1017.9464552080826, 1028.3547937659564, 1035.7676650555645, 1047.714040362267  …  1055.3719393842766, 1056.6257628456299, 1050.5061431314764, 1046.811706234893, 1038.6146414017057, 1037.535771872433, 1033.9679870116092, 1039.3110757086345, 1042.7265530516638, 1055.5903240187397], [0.0019383188997990075, 0.005560882675016199, 0.005172081834783571, 0.008718286997808633, 0.007495598785868918, 0.0035456930424608846, 0.0035415957749380667, 0.004455697290242089, 0.0016754976678625688, 0.0036994697231598206  …  0.0013444251180390054, 0.0038467256173031483, 0.006543387577851334, 0.002990608539327644, 0.006460972838390644, 0.004081519994164617, 0.007349700198502784, 0.006301956897533767, 0.002352568492775431, 0.00010539818657240296], [2.3548476e6, 2.3280978554516844e6, 2.379902921085988e6, 2.379874296885189e6, 2.3860557068650424e6, 2.4066959137589373e6, 2.415236266861313e6, 2.4471469479039703e6, 2.4371147781979125e6, 2.4403740946582067e6  …  2.437843145161245e6, 2.438542121141506e6, 2.4504715007703765e6, 2.4354081401622407e6, 2.424081346265774e6, 2.421738129430244e6, 2.432058614673286e6, 2.4438841326048234e6, 2.4735748089666488e6, 2.4815650998557163e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.00859718811958056, 0.00807718772268552, 0.008110544047926702, 0.006974092578726793, 0.006148584891121962, 0.005691969939444495, 0.005858407595306774, 0.006047569087931483, 0.006848807207869945, 0.0066619153507185315], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 556.5554935810196 282.334308467129 … 145.78968220093236 532.7174612570127; 557.1167615054541 280.02053929143585 … 146.3028241078202 534.7818327266984], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 545.9981918757444 276.97870869205656 … 143.02419757583547 522.612343210343; 545.9981918757442 274.43207367886384 … 143.38300864136326 524.109008904618]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72494.03220329057, 72530.66649724873, 72576.07900138543, 72280.57185884431, 72443.76582379678, 72353.38405133894, 72315.54915903423, 72661.5923282258, 73026.27853583042  …  74144.05308379757, 74826.13983258815, 75304.30421461636, 75618.4877122519, 75871.14896534545, 75971.72564410979, 76100.55670856358, 76239.04576836644, 76358.20939705313, 76553.60936220472], [72422.0, 72420.9980068707, 72384.59790545296, 72356.9493484689, 71989.7351514802, 72079.58257959974, 71917.12910564165, 71807.1072311853, 72078.02908893957, 72366.80686487886  …  73326.5178890113, 73926.5312617297, 74323.99353536451, 74558.89679827896, 74732.65225572593, 74756.33041258379, 74807.65937243566, 74868.29338276773, 74909.77044787885, 75025.80281443593], [64900.92049553801, 64966.370940930254, 65005.0222010805, 65034.52005059595, 64751.78181990344, 64897.95911964985, 64808.44857187822, 64752.088257696145, 65072.98575443089, 65432.97193837665  …  66502.87380467687, 67115.51068126503, 67531.82397083487, 67801.72376391682, 68023.05224076689, 68099.03155997988, 68207.41077115561, 68328.94786780716, 68426.87459052821, 68609.58488218686], [64900.92049553801, 64900.920495538, 64874.10940913854, 64838.160699107604, 64491.23884775822, 64571.70952418503, 64417.68583723697, 64296.82411369323, 64550.36849350787, 64842.07244021372  …  65769.59260910605, 66308.60431429898, 66652.69536167478, 66851.66389594741, 67002.32140684, 67009.58364330017, 67048.6126820966, 67100.41638041398, 67128.8851391018, 67240.3199462026], [40512.94792630534, 40550.40784506942, 40524.18134352901, 40597.69249959916, 40538.130229747265, 40683.253554780895, 40720.13441207307, 40814.35595895805, 40906.22630964621, 40842.727977238406  …  40990.75709141317, 41355.57505242573, 41676.65225351175, 41910.90250990098, 42081.70996951078, 42259.75802415393, 42319.54089072212, 42460.638724558914, 42558.40747399262, 42604.262151767834], [40512.94792630534, 40509.55528988029, 40442.57020732433, 40475.11549641777, 40375.016186574736, 40478.73410309883, 40474.61223975665, 40527.39513145957, 40577.698277609634, 40473.89332476249  …  40538.78036247319, 40858.371403364356, 41134.10601122592, 41323.633274037835, 41450.24611284328, 41583.68665743777, 41600.56032014221, 41697.21072989894, 41751.11700074928, 41753.99433003319], [14866.888022051655, 14856.984652513022, 14938.500995528, 14837.633708111887, 14838.692569749954, 14706.33299683391, 14843.0816818509, 15115.00714827141, 15162.697139590062, 15251.982516685954  …  15748.101765562658, 15962.338186660398, 16124.258273696823, 16277.606372211922, 16260.049260116775, 16361.84170624967, 16297.86554809506, 16405.107727359726, 16519.775380979387, 16594.71164117549], [14866.888022051655, 14842.016966176063, 14908.416537334875, 14792.834298040463, 14778.985841128551, 14632.402548849546, 14753.58527642357, 15008.735351081335, 15040.921764518085, 15114.247846410124  …  15574.458338896, 15770.428564223801, 15914.35284072617, 16049.519242529343, 16016.056479813014, 16100.085056388714, 16020.975760909938, 16110.14941135975, 16206.411745525354, 16263.525308944385], [15944.236265986641, 16011.776357094432, 16462.86933535054, 16744.981475565943, 15764.54014232091, 16268.460954540702, 16050.157551948922, 15463.113019100136, 15483.337686383833, 15526.032417141269  …  16188.83449058858, 16344.552912432477, 16681.92270758744, 16546.236815743086, 16797.95135707668, 16921.994563052285, 16600.418636006878, 16897.632613484675, 16588.09644524588, 16666.472824721262], [15944.236265986641, 15995.64527452175, 16429.714971040066, 16694.423192047176, 15701.10806326851, 16186.677507460836, 15953.383078949952, 15354.393731403281, 15358.987167688685, 15385.82290973282  …  16010.331408977036, 16148.04805571034, 16464.75760459282, 16314.385548667738, 16545.887000477614, 16651.276590997946, 16318.388675105323, 16593.818865785393, 16273.436827456546, 16333.854330022436], [15944.236265986641, 15960.057642470616, 15967.614775695063, 15965.53426906915, 15902.696099773864, 15933.014888376558, 15939.28557755153, 15927.63512132294, 15995.46206021096, 16076.27300623163  …  16210.518388588273, 16344.169770529636, 16498.080434782623, 16574.070571156255, 16639.935963361113, 16676.896820658916, 16706.9550190274, 16733.570968826927, 16762.108983939783, 16782.873135579306], [15944.236265986641, 15943.978663976679, 15935.45779827765, 15917.329377992857, 15838.708119976145, 15852.917767721603, 15843.17960745404, 15815.649834599193, 15866.998543865582, 15931.094491939793  …  16031.776213630226, 16147.66952018891, 16283.308588657026, 16341.829288421643, 16390.242732127455, 16410.09992088294, 16423.115076546663, 16432.706994285654, 16444.148522132775, 16447.93160009151], [3173.2320350842083, 3176.174273512229, 3174.570974458323, 3179.916771150309, 3171.1470311721137, 3186.571456274117, 3189.4601998445364, 3196.8495416050187, 3204.2859918680215, 3211.9016590472684  …  3139.6814655603, 3155.430073539902, 3221.295754628081, 3249.8950033885053, 3273.26184197333, 3298.9904621308647, 3312.8819835444115, 3316.63029797144, 3330.3345776083406, 3323.345299864237], [3173.2320350842083, 3172.974433074255, 3168.177746129005, 3170.3156178784166, 3158.3872267406423, 3170.552190604879, 3170.22934002325, 3174.372877002749, 3178.5515776734132, 3182.896235294437  …  3105.0623694661977, 3117.493438758902, 3179.3609587060414, 3204.356414597093, 3224.1443857646195, 3246.213231621367, 3256.59834415089, 3256.998401385193, 3267.1614577292876, 3257.020161808294], [34195.564496956766, 34125.88485439806, 34201.06274546947, 34772.0519958966, 36335.4580267718, 34899.47163430957, 33835.573270538705, 34273.854456696135, 34027.748522266455, 34804.00404419586  …  34188.33769991826, 34225.97538477249, 34736.78205579618, 34839.81011645505, 35117.5049646353, 34251.89166085008, 35862.971392193045, 35451.3075616684, 35796.13829469815, 35261.146474996516], [34195.564496956766, 34091.50469231145, 34132.185657826325, 34667.06440508302, 36189.25435542133, 34724.02792764948, 33631.56158023127, 34032.8791085528, 33754.46324847871, 34489.702738377986  …  33811.36654500533, 33814.48842485423, 34284.57897434819, 34351.623333555945, 34590.54360452004, 33703.930094327894, 35253.68360003972, 34813.90498241269, 35117.12131216959, 34557.427722671724], [33097.63671130043, 33051.02150578419, 33595.947922628126, 34376.28067778784, 35196.24910974555, 34113.75331666825, 33095.56286507225, 33350.78142399136, 32918.417329660624, 33398.468419430894  …  32971.97796368497, 33062.301703702695, 33915.311075975704, 33956.06810205889, 34386.066585993845, 33823.76031019617, 34980.23975845317, 34975.640858705265, 35104.20819786267, 34572.98373045632], [33097.63671130043, 33017.724216018774, 33528.28946807242, 34272.48804311909, 35054.629294912906, 33942.259507458846, 32896.013069719476, 33116.29609131152, 32654.041369355476, 33096.859954404434  …  32608.418766340204, 32664.80518642275, 33473.80189552864, 33480.26460051175, 33870.08094192783, 33282.64798656849, 34385.948983761205, 34346.79060668905, 34438.3164380217, 33882.99887723565], [29576.147776884874, 29605.97434991661, 29628.136344954106, 29603.38494477786, 29504.829108067326, 29559.566221637688, 29568.861106729655, 29501.351304792246, 29610.10742281523, 29766.863004584826  …  30215.470268283825, 30465.454598024106, 30660.027674370758, 30765.029667596486, 30860.83448443474, 30903.63777633213, 30918.2379418621, 31004.826390195634, 31031.37069266736, 31088.707048360342], [34346.71094688275, 34381.34847608993, 34397.668720625654, 34450.822572064484, 34269.23809559767, 34345.90656500344, 34264.51417149202, 34269.25312428563, 34473.228167390655, 34673.61982577545  …  35284.419868215475, 35635.499939814996, 35855.77252282812, 36014.35329883146, 36134.41674824347, 36161.11322469179, 36251.836500982245, 36279.35255958325, 36349.03439955674, 36472.955167079635], [28335.32931213966, 28363.90456052843, 28377.368426226938, 28421.219259194815, 28271.415805041186, 28334.665713651928, 28267.5186649224, 28271.428203399297, 28439.703413994488, 28605.02240597949  …  29108.91986425934, 29398.55369438318, 29580.27403982659, 29711.099914757626, 29810.149788345294, 29832.173831718952, 29907.01866661281, 29929.718848386758, 29987.204931574695, 30089.437013179384], [978.061771770434, 979.0481149238881, 979.2171355007189, 980.3125337535647, 977.7146162385184, 992.4863330086914, 975.0732936566778, 981.4838286182729, 989.6501642251371, 992.4891080164566  …  1002.9836681776601, 1014.5561434258365, 1016.0237736361152, 1022.3407974889541, 1027.8010080887684, 1034.2805589559384, 1037.3363283113133, 1044.7689180282944, 1046.4694983041738, 1047.9226667468242], [0.0019383188997990075, 0.001053864276997274, 0.0024872457965154915, 0.006000933876068704, 0.004348048319886999, 0.0024609924837037944, 0.0061894490535259195, 0.0015825978000947316, 0.004959464179307149, 0.0053399728592793405  …  0.011092217267981264, 0.008832088610450484, 0.007837880689684829, 0.008509999422367631, 0.00946619836788587, 0.010033460314942344, 0.005609328020555582, 0.00102661794210257, 0.002115019231276438, 0.003466445383311978], [2.3548476e6, 2.360071429297111e6, 2.3634008580174516e6, 2.3790198363296916e6, 2.4102767519837525e6, 2.386109596145417e6, 2.357275457083526e6, 2.3800481381815136e6, 2.378112464790038e6, 2.405275630155042e6  …  2.401550701378514e6, 2.40537232184705e6, 2.403696768595995e6, 2.3858921904887795e6, 2.3930173419781975e6, 2.3896125587076126e6, 2.4111266478512892e6, 2.3938552397984853e6, 2.394993430376067e6, 2.3822750715326327e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.008801374098496798, 0.008508981285645466, 0.007990382285943155, 0.006865548758523779, 0.006868240165082937, 0.0064500645276880635, 0.006986820209213844, 0.0057885499558142026, 0.0054553074944660995, 0.00460865208490598], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.6059091613051 258.5036962251161 … 137.13538556670355 505.4138092341077; … ; 528.8463506839289 263.4785811237555 … 143.53886281603712 531.9846653683139; 533.1179439230316 262.6298393736856 … 143.84795877984368 533.3762318333554], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.0834390395163 258.24326637797435 … 136.9972283642248 504.90462950861695; … ; 518.8146637375236 258.4806556592073 … 140.8160739860654 521.893447727573; 522.4783268985113 257.38844590344314 … 140.97713589979915 522.731460068727])])

Finally, we can plot baseline and shocked simulations

Te = T + 1
 StatsPlots.errorline(
     1:Te,
     data_vec_baseline.real_gdp,
@@ -56,4 +56,4 @@
     titlefont = 10,
     xlabel = "quarters",
     ylabel = "GDP",
-)
Example block output

Note that, importantly, once the function central_bank_rate has been changed, the model will use the new interest rate in all the simulations, unless the function is changed again. To restore the original interest rate, you could close and restart the Julia session.

+)Example block output

Note that, importantly, once the function central_bank_rate has been changed, the model will use the new interest rate in all the simulations, unless the function is changed again. To restore the original interest rate, you could close and restart the Julia session.

diff --git a/dev/examples/scenario_analysis_via_shock-2497e820.svg b/dev/examples/scenario_analysis_via_shock-582e876d.svg similarity index 86% rename from dev/examples/scenario_analysis_via_shock-2497e820.svg rename to dev/examples/scenario_analysis_via_shock-582e876d.svg index 70dfb23..7ebb761 100644 --- a/dev/examples/scenario_analysis_via_shock-2497e820.svg +++ b/dev/examples/scenario_analysis_via_shock-582e876d.svg @@ -1,46 +1,46 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/scenario_analysis_via_shock.html b/dev/examples/scenario_analysis_via_shock.html index c9a9792..19d0873 100644 --- a/dev/examples/scenario_analysis_via_shock.html +++ b/dev/examples/scenario_analysis_via_shock.html @@ -24,7 +24,7 @@ "Y_EA" => 2.35485e6 "D_I" => 54049.0 ⋮ => ⋮

Initialise the model and the data collector

T = 20
-model = Bit.init_model(parameters, initial_conditions, T);

Simulate the model for T quarters

data_vec_baseline = Bit.run_n_sims(model, 4)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72492.93135048292, 72377.18138216024, 72243.86559257144, 72399.38575975278, 72504.51345883342, 72433.88245859685, 72516.92100518077, 72642.71649862379, 72860.48808620566  …  73251.84255939518, 73754.10329695114, 74024.77367107378, 74205.13373522303, 74535.18362316652, 74400.349368608, 74655.37525956356, 75119.37535672552, 75488.38846972233, 75452.80699452064], [72422.0, 72419.89826311855, 72231.42189209613, 72025.73899479314, 72108.07097864267, 72140.02482920302, 71997.14214751197, 72007.06325610275, 72059.30485579857, 72202.51360375955  …  72444.14515300175, 72867.38344730502, 73061.1199076424, 73165.34719816314, 73416.73395602529, 73210.09300573253, 73387.0305854187, 73768.75426831644, 74056.44915457393, 73946.9695358535], [64900.92049553801, 64966.37094093018, 64863.289070504645, 64726.57687319233, 64872.34466962954, 64963.43312081654, 64881.33966549816, 64950.397402548784, 65069.1288028081, 65273.50840764331  …  65627.22005417707, 66082.49289699715, 66315.4298344632, 66474.03525373677, 66767.0533704717, 66623.39533162912, 66874.99431539775, 67296.57307967161, 67623.98436811977, 67563.81270279772], [64900.92049553801, 64900.920495538, 64732.66171312139, 64531.14729749922, 64611.31658645984, 64636.85437992563, 64490.13743378969, 64493.738970801234, 64546.54251801836, 64684.04896206362  …  64903.59408690411, 65288.00614241018, 65452.136232006385, 65542.57939021786, 65765.16962928782, 65557.55463487431, 65738.83308683924, 66086.60334353574, 66341.22494211173, 66215.4185996382], [40512.94792630534, 40553.80390285682, 40507.5370693752, 40518.13122577223, 40552.71229656634, 40689.19159169157, 40757.31522274505, 40836.45083190877, 40880.97874355322, 40944.67766249526  …  41097.20913747834, 41345.96553788217, 41557.291200266736, 41651.99274513564, 41861.06231492286, 41941.24149920985, 41934.00759969118, 42097.32588280016, 42371.18541532199, 42542.22462364698], [40512.94792630534, 40512.94792630536, 40425.9594528636, 40395.794442709535, 40389.53957925485, 40484.64228880655, 40511.56886861932, 40549.33465801607, 40552.65348097121, 40574.9223424097  …  40644.05863544914, 40848.87742066094, 41016.29879897822, 41068.35143734362, 41232.909422068806, 41270.26575803418, 41221.57698073446, 41340.43013076631, 41567.44635749355, 41693.19490606507], [14866.888022051655, 14752.822206043698, 14703.34830045546, 14746.731886312013, 14599.761477560025, 14637.321598955905, 14858.025986794715, 14718.34288695124, 14804.253261275155, 14860.159940043566  …  15020.190782877045, 15137.686848894355, 15235.638535890685, 15445.604428046556, 15386.762414034447, 15510.494984724985, 15630.262772418082, 15833.7422753915, 15623.828462020005, 15840.488166653306], [14866.888022051655, 14737.95945828366, 14673.737413300389, 14702.206936984836, 14541.016140504116, 14563.738079302439, 14768.439474635965, 14614.859988470731, 14685.356637742008, 14725.963665733014  …  14854.573527187826, 14955.69172175414, 15037.301145780839, 15229.175580975938, 15155.873879736817, 15262.35817483648, 15364.715107913631, 15549.056917931795, 15327.460044553067, 15524.354130093841], [15944.236265986641, 16282.940690026704, 16369.712844518244, 15742.754808337604, 16051.858713014031, 16226.36642770854, 16246.506550581105, 15570.999857382674, 15745.484314338277, 15935.634527672231  …  15836.447515785989, 16245.307163801335, 16481.507208074214, 16192.602857703658, 16971.060770294753, 15925.10959719259, 16225.171258296768, 16357.706950480439, 17016.611539530804, 16634.104020402334], [15944.236265986641, 16266.536422633813, 16336.746086886256, 15695.222557428377, 15987.270544781337, 16144.794594715368, 16148.54819070715, 15461.522030302694, 15619.02843116544, 15791.726064303304  …  15661.829961632087, 16049.995504086042, 16266.95111204808, 15965.70682499149, 16716.398792596614, 15670.339785109623, 15949.516498261086, 16063.600884496524, 16693.823418496326, 16302.131520994772], [15944.236265986641, 15960.315504263737, 15941.431488320075, 15918.557680541218, 15927.815662917066, 15959.274939706664, 15961.158293733059, 15969.330375028641, 16013.64273110624, 16061.538750205636  …  16119.149511947555, 16191.060420515194, 16255.819353182058, 16298.657041067734, 16360.9702045516, 16377.864498195504, 16415.349063072492, 16487.447166691625, 16566.524147147906, 16619.736618613548], [15944.236265986641, 15944.236265986636, 15909.32724109387, 15870.49462633016, 15863.726609056795, 15879.045806716615, 15864.920442027842, 15857.051933991244, 15885.033201291251, 15916.493295199194  …  15941.414798400743, 15996.400950466648, 16044.201259394118, 16070.274942547043, 16115.463038809537, 16115.851515800636, 16136.46330989011, 16191.008415282713, 16252.27373430234, 16288.050854354206], [3173.2320350842083, 3176.432135305343, 3172.2911789213044, 3173.546712299511, 3164.4309052738245, 3187.0365611335487, 3192.3724376735213, 3198.3715628684254, 3203.104701262025, 3210.1261488962173  …  3204.3496751681096, 3197.474035038226, 3220.7662120429104, 3242.2777107464512, 3246.4421286888596, 3288.1574541218815, 3263.4673415357242, 3256.9877420913663, 3277.4689182398433, 3332.6132742917353], [3173.2320350842083, 3173.2320350842087, 3165.9025418433707, 3163.9647922075255, 3151.698124645445, 3171.014957328029, 3173.124018505518, 3175.884197117715, 3177.379774304759, 3181.1367590789564  …  3169.017527451649, 3159.031920378096, 3178.838309700929, 3196.845857944018, 3197.7271199946754, 3235.5535300124043, 3208.023223714452, 3198.428198587857, 3215.2986071053447, 3266.1031721023714], [34195.564496956766, 33912.37216082153, 33397.48311741665, 35055.37225788631, 36470.332739163554, 34762.29527403573, 34891.522103646654, 34250.6712552488, 34247.35332335725, 33714.52553298951  …  35959.49265272116, 36029.50206545117, 35952.297871987685, 35901.041861959675, 35159.46207351269, 34864.88843279052, 34259.54218023966, 35591.73839607774, 35066.27501276677, 35506.8548079019], [34195.564496956766, 33878.207102344495, 33330.22434862162, 34949.52923548238, 36323.58636987555, 34587.541168907745, 34681.14356668933, 34009.8589054062, 33972.30434903683, 33410.062880169506  …  35562.99219708715, 35596.331933537695, 35484.27121779897, 35397.98475370507, 34631.87111926218, 34307.120147423026, 33677.49557325566, 34951.81091767946, 34401.10280755105, 34798.23237039503], [33097.63671130043, 33009.00760926575, 32600.899949605388, 33819.12458573693, 35275.2794665513, 33810.66143355864, 34319.48740517056, 32859.54382631097, 33035.353143900255, 32594.5095769949  …  34661.49752946744, 35004.35831907806, 35201.96114514554, 34986.108157622846, 34843.16394959862, 33841.38514530989, 33393.60855108217, 34761.13814802461, 34589.51195991751, 35070.86462408407], [33097.63671130043, 32975.7526464489, 32535.24540957579, 33717.01417781212, 35133.34165577343, 33640.69130252935, 34112.55795313986, 32628.51232609309, 32770.03804311709, 32300.161348856014  …  34279.30916835466, 34583.51313273393, 34743.70236696378, 34495.87139885332, 34320.319257639465, 33299.99085967072, 32826.273574746134, 34136.144582558016, 33933.383473520335, 34370.94339169539], [29576.147776884885, 29605.974349916614, 29580.77755042676, 29528.695646912885, 29581.574185726313, 29636.676408999738, 29604.99110859244, 29602.565831103544, 29687.16946301061, 29776.731203069543  …  29931.08327767076, 30115.546075194987, 30208.562090422805, 30255.48451118029, 30366.229366465468, 30336.566911276877, 30447.422526746777, 30597.484343219236, 30750.796828846927, 30768.17929023037], [34346.71094688275, 34381.34847608993, 34305.599198354124, 34225.368730327784, 34312.35505847416, 34339.55055711717, 34291.89272690426, 34365.92099890435, 34398.905402157405, 34514.179308044855  …  34709.55086644195, 34970.91005983751, 35100.84004096278, 35206.81792395849, 35382.9112739439, 35277.25730650376, 35415.9177546681, 35683.60389060256, 35849.63708238158, 35773.7832881125], [28335.32931213966, 28363.90456052843, 28301.4129661187, 28235.224481989633, 28306.986411610585, 28329.42213801971, 28290.105409396892, 28351.177209511185, 28378.388663026635, 28473.48726182606  …  28634.66477468803, 28850.280727699403, 28957.4702867928, 29044.899858117144, 29190.17324598915, 29103.010898328546, 29217.40291296371, 29438.238463294198, 29575.212427790535, 29512.63460939291], [978.0617717704337, 979.0481149238881, 976.9123217237544, 972.51249595159, 978.4154254292064, 987.2061546996265, 984.4558300016741, 981.9105725408025, 983.0539376401874, 982.5978965289877  …  986.5859100645192, 996.0367619646092, 1006.0277030776684, 1011.7328185980006, 1017.9127300622852, 1009.5711138484586, 1011.6540339828678, 1015.4848458498449, 1023.5504568912, 1021.850124454832], [0.0019383188997990075, 0.007063917044749957, 0.008084524121414915, 0.005219467666053967, 0.004078519510980039, 0.003326719149846946, 0.00568857512650256, 0.006432696199255794, 0.008760511982215391, 0.004838694420208345  …  -2.6262283579825407e-5, -0.0010420602438332427, -0.00036619682694882805, 0.0023433803056323033, 0.0037224239340132304, 0.006366041366890007, 0.011686754634621321, 0.00878459499948181, 0.007835041798679443, -0.0003869244751503187], [2.3548476e6, 2.3537439047205495e6, 2.352433531948859e6, 2.38744544802626e6, 2.418818902844311e6, 2.396352254299497e6, 2.3995408320706873e6, 2.369260454895987e6, 2.383490672979656e6, 2.3690858685814887e6  …  2.399594853064887e6, 2.400004228680611e6, 2.4069434673503605e6, 2.4265388537716423e6, 2.4182876831552763e6, 2.425144397627348e6, 2.425132945040029e6, 2.460377385418357e6, 2.449884738113035e6, 2.461611510832523e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.009834491341312803, 0.009099280211305903, 0.008701620825660696, 0.008911955404518895, 0.008003135867080825, 0.00783561243741146, 0.0075232409752079045, 0.00859732511349584, 0.007721166317610781, 0.007611480779364439], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613048 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 533.7433449131245 265.12071739703646 … 142.02393469004681 528.0367861369577; 535.964694353745 265.75305655795927 … 142.7605922792299 530.1232856441484], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 523.6187668783657 260.09164224790345 … 139.3298825331868 518.0204558212379; 525.2682637578696 260.44933197486563 … 139.91147034409528 519.5434340384601]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72491.94402459665, 72674.02354095617, 72685.17483374318, 72912.63696154296, 73279.71462543099, 73540.34687697407, 73874.83573054842, 74167.92088396972, 74512.50102030656  …  74858.4520141716, 74803.51072101231, 75077.0982519853, 75567.45093277235, 76034.8908101484, 76279.54487848017, 76449.60276266094, 76469.57564038155, 76809.90099193827, 76740.84066987822], [72422.0, 72418.91193191489, 72527.66624422326, 72465.71578673123, 72619.2570018414, 72911.32896929259, 73096.93513536634, 73355.4306463696, 73572.25994707919, 73839.60785718923  …  74033.03963646365, 73904.17421206684, 74099.74533768298, 74508.57516279993, 74893.93704598189, 75059.22515660638, 75150.77536855366, 75094.67840526605, 75352.89390445623, 75209.29748290745], [64900.92049553801, 64966.37094093018, 65135.7974704185, 65133.943422978526, 65347.73708619097, 65687.67437974425, 65915.53968586455, 66215.12856544083, 66481.49360010898, 66789.41474489153  …  67087.44391965267, 67021.79269457536, 67296.54422233958, 67744.91624630945, 68166.04636109927, 68375.25851276919, 68518.47526806055, 68521.72856467261, 68829.99925610902, 68751.41335041267], [64900.92049553801, 64900.920495538, 65004.621311815674, 64937.28388154613, 65084.79615754172, 65357.454793733596, 65518.10174203736, 65749.57796101189, 65947.564263925, 66186.26574391789  …  66347.717073717, 66216.0130662634, 66420.47848259263, 66795.6523838054, 67143.16980593675, 67281.39151888141, 67354.3924021639, 67289.73094522783, 67524.36293250459, 67379.31789521176], [40512.94792630534, 40526.740842948086, 40558.50920345412, 40610.74503407432, 40636.3996394041, 40727.94500364068, 40897.64714351904, 41034.020607368344, 41154.69281312914, 41365.2789386498  …  41629.73989970956, 41711.91139585187, 41634.737815844295, 41837.74440733504, 42085.565542285476, 42304.095649224466, 42463.85587945679, 42554.04224400388, 42719.45371297869, 42834.91315630657], [40512.94792630534, 40485.91213110755, 40476.82893480647, 40488.128621250034, 40472.89018774464, 40523.20088284234, 40651.0546576568, 40745.5153441485, 40824.16928508172, 40991.72533345445  …  41170.71754926769, 41210.4236392665, 41092.73721528894, 41251.50028666672, 41454.043830201445, 41627.3149694364, 41742.423494165196, 41788.93488549811, 41909.10835346959, 41980.04215363883], [14866.888022051655, 14934.490559835427, 15148.379402869603, 15211.888286722817, 15373.662227604964, 15611.9603242804, 15725.959369111832, 15902.951759142672, 16148.407186164402, 16031.02252458344  …  16025.054543814142, 16250.75065210672, 16277.058422810956, 16401.10671660095, 16449.026288084235, 16430.819199340396, 16377.587529263878, 16601.874878768587, 16352.256466778954, 16535.998638821493], [14866.888022051655, 14919.444790082669, 15117.872273206716, 15165.95888620489, 15311.80293142863, 15533.477182294053, 15631.139650026535, 15791.140018169379, 16018.715329642646, 15886.252649638136  …  15848.3573504043, 16055.373547231022, 16065.163839027102, 16171.289059811239, 16202.197782640267, 16167.95904794017, 16099.343319173793, 16303.378755605852, 16042.07049777319, 16205.984062046273], [15944.236265986641, 16134.991798396371, 16169.752721426326, 15857.297607614722, 15940.093201217305, 16063.07046801206, 16177.558328037756, 16309.3411971421, 16205.131970494085, 16652.930429851822  …  16475.143365119537, 16307.191535530474, 16068.715452084985, 16599.028977317703, 16566.766323961772, 16818.138369126333, 17125.075305665185, 16587.12904151179, 17197.219243772714, 15994.128847008815], [15944.236265986641, 16118.736582285128, 16137.188660956874, 15809.419516530666, 15875.954745993415, 15982.319542818053, 16080.01569167793, 16194.672180911724, 16074.984543184086, 16502.544348608062  …  16293.483353561875, 16111.13586160674, 15859.533075010697, 16366.437969255394, 16318.171051502091, 16549.08188786726, 16834.13178039664, 16288.898043540406, 16871.005175018872, 15674.928550877798], [15944.236265986641, 15960.167239680653, 15981.328580430576, 15988.771464116871, 16010.408469194314, 16062.431720672721, 16094.964424131094, 16176.958169558202, 16204.035561484385, 16280.718071848212  …  16364.551598752305, 16393.97587345279, 16394.05896091593, 16492.276130787915, 16562.31125529955, 16666.978050575595, 16705.569611904342, 16704.689761761867, 16759.19874808568, 16774.197805944234], [15944.236265986641, 15944.088150772879, 15949.14398495524, 15940.496412754175, 15945.98708509355, 15981.684006535947, 15997.919787962088, 16063.21992247142, 16073.896939706618, 16133.693294378969  …  16184.1110061163, 16196.876821715021, 16180.641265296988, 16261.18097843029, 16313.782834088102, 16400.339831226534, 16421.753206559915, 16404.345061604006, 16441.293490545453, 16439.429406975192], [3173.2320350842083, 3176.283870722261, 3177.1272006701142, 3180.6155278796077, 3172.68290644273, 3168.2462795874676, 3162.6647787183997, 3195.8807777632273, 3193.757731530177, 3198.328381281614  …  3235.1186657643284, 3256.0650335510454, 3229.5334542724618, 3240.135303872194, 3232.141762955324, 3293.3732709884325, 3298.3833218984023, 3309.2726913371043, 3325.4875702038994, 3351.66209659959], [3173.2320350842083, 3173.083919870452, 3170.7288243891544, 3171.0122648447964, 3159.9169220807994, 3152.319136714711, 3143.5954819689696, 3173.410924422989, 3168.1078724011727, 3169.4455324750506  …  3199.447249668648, 3216.918499759408, 3187.4914200588296, 3194.733471173683, 3183.6413406956062, 3240.6859042706355, 3242.346005026421, 3249.7730820420315, 3262.4063932130684, 3284.7718305526364], [34195.564496956766, 34241.062058104435, 33434.33659723449, 34702.511418264476, 35395.01758038395, 35627.45576955498, 36588.90911036773, 37303.48471545914, 37098.7214207117, 36753.38172648514  …  37838.65662254146, 38614.04108679218, 38861.11946653187, 39113.93260351251, 39419.00102008048, 39588.22894996668, 40532.24034049364, 41879.18032238392, 41866.02949895125, 41004.81719399926], [34195.564496956766, 34206.56586061098, 33367.00360968265, 34597.73379198526, 35252.597977087345, 35448.35240190001, 36368.296173372815, 37041.20840137748, 36800.772403191404, 36421.47635562056  …  37421.43592545606, 38149.79794402325, 38355.225801912755, 38565.85542225308, 38827.492870146474, 38954.89669007106, 39843.624805600564, 41126.20675411236, 41071.87274419764, 40186.47004197101], [33097.63671130043, 33345.34123468756, 32636.954384028584, 33697.26751293342, 34432.53568706742, 34750.71694005739, 35849.727074062415, 36674.962548563744, 36439.03250652977, 36290.112599263564  …  37110.14241701329, 38080.38394926902, 37764.532905286964, 38384.361771994176, 38485.46836426359, 38861.73728917801, 40049.15629221863, 41152.65084628669, 41325.05793054348, 39629.01716625829], [33097.63671130043, 33311.747432171556, 32571.22723442956, 33595.52502923979, 34293.988840412785, 34576.02104056218, 35633.57103736784, 36417.105298237395, 36146.38161402085, 35962.39083013191  …  36700.9545422265, 37622.55678006076, 37272.91459355671, 37846.507575186864, 37907.96848850843, 38240.02743870876, 39368.7480307826, 40412.740033490765, 40541.1628660032, 38838.127325626774], [29576.147776884885, 29605.974349916618, 29636.47649266097, 29630.755579163193, 29699.374747896643, 29816.663455298312, 29908.41825688841, 30027.951240257553, 30084.233856892868, 30247.13492442582  …  30363.278885505795, 30409.593465289116, 30467.476770949408, 30657.947741592205, 30829.096466996747, 30948.13735749179, 31032.962525680097, 31033.714560139953, 31127.026402383104, 31128.513090788878], [34346.71094688275, 34381.34847608993, 34513.88283006987, 34518.674072151225, 34655.66899370039, 34868.8882362691, 34997.996688279774, 35176.55073306802, 35364.176150810184, 35523.1330807061  …  35681.15344633695, 35587.66736534689, 35779.10211533237, 36030.67921822835, 36273.745382863424, 36360.57402471751, 36417.55421363708, 36411.89183230975, 36614.15722960335, 36532.73963043512], [28335.32931213966, 28363.90456052843, 28473.24267360136, 28477.195349663965, 28590.21333913579, 28766.11482394499, 28872.626638434616, 29019.930048851817, 29174.717155171074, 29305.853349318248  …  29436.216897231163, 29359.09280534791, 29517.02253233151, 29724.56846209975, 29925.09304304797, 29996.72488472464, 30043.732367327586, 30039.061019324312, 30205.92580732769, 30138.757964450295], [978.0617717704337, 979.0481149238881, 985.4381476876124, 984.5137716640518, 992.6933445940371, 1002.1226881768663, 1009.1247406963304, 1010.6265921152348, 1033.0835924059324, 1019.1467397596216  …  1043.0115878099446, 1024.5318639393693, 1049.9653360578207, 1056.289286488938, 1063.2045112391331, 1066.5471305598676, 1067.9585287433804, 1076.1221722229286, 1088.8156241225636, 1090.1606291886253], [0.0019383188997990075, 0.0014256121185349802, 0.004404021313802575, 0.004262813466585191, 0.005361253634574181, 0.0018004837605036794, 0.0038467147280996095, 0.006055223870257587, 0.009913012904663843, 0.005705269353149189  …  0.0035653498986865095, 0.005203056994837585, 0.00554657900539679, 0.0019384005279783345, 0.0031447441274350396, 0.004270406586395437, 0.008090093383290364, 0.004042238018548749, 0.004465091553881084, 0.008164765303281918], [2.3548476e6, 2.3640005632575634e6, 2.3579513039222136e6, 2.3854370320597966e6, 2.400915637772524e6, 2.384717135372132e6, 2.418431561628707e6, 2.4433974896477726e6, 2.44454879584344e6, 2.4453289237780594e6  …  2.4599631022616266e6, 2.4653689688040763e6, 2.4805465913054864e6, 2.4925382194341538e6, 2.48725494024176e6, 2.486585100011262e6, 2.519078118299905e6, 2.553048413439673e6, 2.559130590157581e6, 2.5417890750643043e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.009214389111247652, 0.008867768703466939, 0.008944079071327132, 0.008801901562153089, 0.008013947375812177, 0.007492157891526428, 0.008408442860072711, 0.009205104993830104, 0.008860411979471686, 0.007725293775005409], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 488.7122307897969 263.23660173526355 … 144.6589262557388 532.7524195565719; 486.6985835290666 260.7123765149412 … 145.19753996483797 534.5157011600043], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 479.4418480031469 258.2432663779739 … 141.9148909412775 522.6466383858789; 476.98537354588746 255.50925050635237 … 142.2997830318033 523.8481886165588]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72482.05367377034, 72125.1382589688, 71880.22052428365, 71880.08771960522, 71800.41328156514, 71991.1301114235, 72420.0636834274, 72643.74738190327, 73044.73815290826  …  73097.20485682666, 73364.59358565573, 73549.41148101863, 73729.44740501884, 73476.07306509417, 73555.50522730309, 73953.3768092984, 74596.48740973305, 74987.80842406317, 75073.98589645445], [72422.0, 72409.03154513393, 71979.8863553623, 71663.19188355531, 71590.86244786467, 71439.46424549235, 71557.05937694092, 71910.88692652818, 72060.32745979897, 72385.09978039667  …  72291.21253343097, 72482.55667536084, 72591.94597782397, 72696.32633997033, 72373.51605151, 72378.76467615934, 72696.95861723964, 73255.26767063943, 73565.36461229349, 73575.70869992093], [64900.92049553801, 64966.37094093018, 64630.10532288966, 64392.96974893991, 64392.01668097684, 64300.086366028074, 64479.94405105422, 64877.095676508354, 65071.697093033625, 65434.05909425217  …  65464.60908766574, 65698.9148344803, 65860.3877805845, 66022.49338855827, 65769.25853291164, 65832.16540509714, 66203.50056391304, 66833.47113985995, 67168.64017747395, 67241.80031225391], [64900.92049553801, 64900.920495538, 64499.94757130612, 64198.54743644362, 64132.92130264165, 63976.842346495745, 64091.162035404304, 64420.95262037948, 64549.09018166892, 64843.14977841063  …  64742.77611905762, 64909.039705100964, 65003.0179110349, 65097.36467693169, 64782.347362394285, 64778.982800173275, 65078.74756310059, 65631.82782075068, 65894.51817586638, 65899.83272043502], [40512.94792630534, 40514.85384054421, 40466.113357193295, 40467.6459723154, 40492.90629280583, 40556.23603390674, 40586.008326231735, 40738.265491222184, 40887.44428956203, 41029.32653057658  …  41174.505594439266, 41331.92582836072, 41451.0221844432, 41564.820250075376, 41630.78990117587, 41712.94034043095, 41741.573504666114, 41733.14227195277, 42117.849401105435, 42176.99177911358], [40512.94792630534, 40474.03710427797, 40384.61916337168, 40345.46161986373, 40329.97421804554, 40352.35511408846, 40341.29486755115, 40451.83964664974, 40559.06710057901, 40658.806779773666  …  40720.50279783803, 40835.00650566837, 40911.413192140055, 40982.40043171679, 41006.0923980047, 41045.61695988533, 41032.412211711766, 40982.794418680496, 41318.91587437993, 41335.2511382452], [14866.888022051655, 14514.478929361854, 14318.419319827262, 14412.290041740256, 14359.974342465946, 14443.934955778386, 14597.80181558065, 14646.282540529903, 15022.21707366304, 14972.460275421507  …  15183.584838500137, 15321.990255258273, 15451.067776430526, 15031.905636654265, 15142.728170548642, 15593.958421677451, 15744.470190282158, 15849.967200415203, 15738.475861715691, 15883.066633330503], [14866.888022051655, 14499.856300811029, 14289.583636277206, 14368.77487588899, 14302.193841451675, 14371.323613292918, 14509.784325841072, 14543.306289677457, 14901.569928783865, 14837.249860841073  …  15016.165949564122, 15137.779312570545, 15249.925930621574, 14821.273671982946, 14915.50153128003, 15344.48636420288, 15476.98221846973, 15564.99012426389, 15439.932697611152, 15566.0828437584], [15944.236265986641, 16734.27962708086, 16449.158001415242, 16001.07854413044, 16167.866627734711, 15679.013780642455, 15217.214100232222, 15772.545406116194, 15811.466525411022, 16579.452974157095  …  16234.822801928236, 16341.655321692051, 16056.622901939687, 16824.44753544014, 16310.633831717085, 15720.478520117811, 15310.778024921348, 16278.636155611928, 16617.64681870477, 16132.700546652763], [15944.236265986641, 16717.420657754872, 16416.031250186705, 15952.766333882775, 16102.811676256144, 15600.193553125087, 15125.461862268377, 15661.65053652541, 15684.480722763556, 16429.73043898814  …  16055.812639013342, 16145.185301692278, 15847.597945562165, 16588.69788901753, 16065.88199650088, 15468.982394833363, 15050.658191655433, 15985.951755909466, 16302.426659852157, 15810.734727748579], [15944.236265986641, 15955.297251577253, 15905.721068136943, 15860.05500414511, 15854.621141118376, 15854.105918235564, 15875.482691140242, 15973.879620191681, 16024.497759097445, 16084.318488474093  …  16090.524519289953, 16136.876468563452, 16162.712291012842, 16214.635916824434, 16206.149234581648, 16210.506087896858, 16250.970918338917, 16344.679854641316, 16426.109906097296, 16490.416856545897], [15944.236265986641, 15939.223068944613, 15873.688737674234, 15812.168587627213, 15790.826601443163, 15774.405482159502, 15779.76142073726, 15861.569193958694, 15895.801049864862, 15939.067318588512  …  15913.105433739966, 15942.868433263375, 15952.30626402922, 15987.431149701439, 15962.96525976649, 15951.170504391002, 15974.877839410665, 16050.808011456502, 16114.52301112837, 16161.311970979124], [3173.2320350842083, 3171.41388261886, 3169.1133566333588, 3169.683697601724, 3169.423520994406, 3176.622635295004, 3179.587488410606, 3192.9162013655196, 3197.402755769875, 3204.218027417896  …  3220.0630529019527, 3225.948243643928, 3223.6749158285265, 3237.297785756135, 3260.2950266013113, 3267.7843682214298, 3263.2768107129273, 3215.440507927036, 3238.3188921557253, 3278.085273407354], [3173.2320350842083, 3168.218838042187, 3162.7311193315336, 3160.1134411471453, 3156.6706514834955, 3160.653383506992, 3160.416156132443, 3170.467191605341, 3171.7236225486695, 3175.281991527754  …  3184.557644636719, 3187.163793508961, 3181.7091480097542, 3191.935713286945, 3211.372146022921, 3215.5063726234544, 3207.8359298823434, 3157.6279697115933, 3176.891217904532, 3212.6634051691], [34195.564496956766, 32841.551681065524, 33290.918573238305, 33468.70598337116, 32301.96465041895, 33922.87960574429, 33975.17687055363, 33561.327186202914, 33645.01641020714, 34410.60123406267  …  34742.03435565942, 34338.30935436204, 34146.52858528917, 34194.80101276626, 35126.18926572714, 34720.577930897285, 35559.61276810929, 35631.792423715415, 35003.24570866564, 35234.84196127581], [34195.564496956766, 32808.46542191681, 33223.87441343082, 33367.65359770063, 32171.9906228382, 33752.34534089977, 33770.323439921885, 33325.36153159371, 33374.80495277716, 34099.852594678574  …  34358.957970664174, 33925.47184232283, 33702.00941761776, 33715.65230780763, 34599.097591936974, 34165.11832411223, 34955.47883519062, 34991.144787379955, 34339.26910638145, 34531.64817712198], [33097.63671130043, 32123.110404281888, 32399.470992705585, 32469.500017273775, 31442.624193820346, 32801.65109450695, 32385.071001174394, 32298.35694064382, 32722.396916939906, 33947.10286130965  …  34237.74273370041, 33969.287174017336, 33555.829967083926, 33886.52702991728, 34734.26810407474, 34192.44998582054, 34403.05767868061, 34897.05064196217, 34489.409366128464, 34353.61502391859], [33097.63671130043, 32090.74793962675, 32334.22210790436, 32371.46454378086, 31316.107910727143, 32636.75337591406, 32189.80511864139, 32071.27107791806, 32459.59524510457, 33640.539893884896  …  33860.226823648736, 33560.886286893125, 33119.00050811758, 33411.69796055467, 34213.05746621265, 33645.4393668746, 33818.57283978806, 34269.6134155943, 33835.179725931346, 33668.00818695354], [29576.147776884885, 29605.974349916614, 29516.573226529064, 29434.330474993574, 29411.26864403082, 29384.871674907885, 29445.99663700538, 29620.20221212301, 29718.166081983403, 29807.97503325934  …  29835.242108825307, 29895.060248033486, 29956.4942268513, 30019.32582282486, 29989.87073193908, 29993.31586046776, 30044.145311352633, 30364.75308531831, 30510.662718518262, 30578.013965087823], [34346.71094688275, 34381.34847608993, 34143.33754889993, 33992.40865210506, 34012.89404057228, 33953.00123554849, 34062.831692251944, 34284.1562831054, 34381.651417798515, 34643.74056391345  …  34636.28516902294, 34805.82745271102, 34901.06515668439, 34996.81250679032, 34781.07538955748, 34834.001774860655, 35143.9051373435, 35458.149384463686, 35635.46476322258, 35642.44831091645], [28335.32931213966, 28363.90456052843, 28167.55044638206, 28043.037214241318, 28059.937237920538, 28010.526907004092, 28101.13477231055, 28283.723002560775, 28364.15448120026, 28580.372630174967  …  28574.22208290128, 28714.090975968313, 28792.660120745833, 28871.64971308881, 28693.671033526225, 28737.33421161585, 28992.998104571154, 29252.2431379709, 29398.524674418746, 29404.285957470824], [978.0617717704337, 979.0481149238881, 970.1945474606739, 966.2306218411896, 967.8539963738816, 962.2134555717142, 971.1157217970919, 972.7371812798369, 971.8795932517706, 982.3434970794464  …  993.0818098175123, 998.0271337357818, 1002.828397048862, 1006.3550589431517, 998.3124114150281, 1004.8477697687141, 1015.4501152169669, 1010.5686700779538, 1022.512695733166, 1021.3380362495734], [0.0019383188997990075, 0.00330686626635468, 0.0014311582516777221, 0.004959578111744634, 0.006142365199992339, 0.003228160254349577, 0.007329096993371698, 0.004161233577395063, 0.003841981394522076, 0.00337937523293963  …  0.006049653427405044, 0.005553670560054291, 0.006330684169110423, 0.006530185314009174, 0.0046522081416324745, 0.004152088938145226, 0.006228784290256861, 0.004715800100241863, 0.0032149575782751683, 0.004076877046134797], [2.3548476e6, 2.330786554476125e6, 2.3441985274836672e6, 2.331815751987135e6, 2.3075949994178754e6, 2.3281907380350064e6, 2.3344445487965904e6, 2.336211608466692e6, 2.3433140258987164e6, 2.3525910618123156e6  …  2.373661875877674e6, 2.3788693995926804e6, 2.3778817283837963e6, 2.379219542365517e6, 2.3918053080637534e6, 2.3743393776235254e6, 2.384037745558196e6, 2.402061181910792e6, 2.3943115856429627e6, 2.41108831639186e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.009711394380893155, 0.009335664804981351, 0.008748955384833813, 0.008306435671451938, 0.008318554540205447, 0.007079724102649028, 0.0071002950433934125, 0.007426461850473761, 0.006633102988350252, 0.006924789196081317], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 524.5719246961827 257.3912335496917 … 141.08262150086608 525.0650269849438; 527.6970391709951 261.06226822193895 … 141.82852250337334 527.6788323502865], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 514.6213193405425 252.50877898726367 … 138.40642511481778 515.1050679715023; 517.165608995453 255.8521593049605 … 138.99800220333324 517.1477655344885]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72472.30661237487, 72816.53814394175, 73230.00725096029, 73455.43114249692, 73673.13489813433, 73854.99974341854, 73792.8961335445, 73798.35542679482, 73788.88355975214  …  74155.90131564895, 74307.07577452125, 74398.30471465227, 74490.51840068193, 74509.00946806232, 74951.4017678693, 75453.61635324519, 76205.052181447, 76825.58716509609, 77200.84242294404], [72422.0, 72399.29430342671, 72669.89383885264, 73008.9031861942, 73159.86713155871, 73302.7714724857, 73409.69080141098, 73274.06715681637, 73205.6625615966, 73122.5251020231  …  73338.23547860415, 73413.707729721, 73429.78832783105, 73446.73296060745, 73390.95256140924, 73752.32967186875, 74171.71009915654, 74834.91098910094, 75368.28252657969, 75660.11882376035], [64900.92049553801, 64966.37094093018, 65304.78035142846, 65688.81727256991, 65873.6311489797, 66067.89244811118, 66227.62331768012, 66152.2739941105, 66147.50704414138, 66128.23190410383  …  66463.96624000533, 66600.1032834615, 66675.98711267108, 66762.57450591456, 66809.95246963628, 67226.48751312404, 67691.53890793133, 68400.6238743511, 68976.02069371725, 69327.8753570117], [64900.92049553801, 64900.920495538, 65173.26388033911, 65490.48239519009, 65608.57417041964, 65735.76146160845, 65828.30366466098, 65687.16531261233, 65616.26003668467, 65531.05378596246  …  65731.1140512412, 65799.3934798032, 65807.99977917229, 65827.07553628297, 65807.42499913138, 66150.99855110608, 66541.5051352793, 67170.80367648193, 67667.61448931889, 67944.2752525125], [40512.94792630534, 40376.02575395493, 40296.947758385715, 40478.24672194327, 40750.78833269375, 40899.95551530817, 41028.86700289264, 41195.59282073477, 41279.10786893351, 41344.680588901014  …  41505.25364269687, 41601.91334322777, 41713.83597527859, 41772.118054961174, 41574.23810954276, 41683.65578612595, 41869.3137328737, 42057.075396404, 42287.69069434981, 42409.37983085956], [40512.94792630534, 40335.348880204765, 40215.794245023724, 40356.03036254638, 40586.81861308045, 40694.34667764342, 40781.48332649559, 40905.951562717055, 40947.585132767206, 40971.312999320784  …  41047.60391611537, 41101.748054848445, 41170.805675674565, 41186.79351214736, 40950.389203362676, 41016.80089971255, 41157.9822192548, 41300.903334569906, 41485.535447965696, 41563.00134221327], [14866.888022051655, 14952.94275836035, 15063.029109016088, 14819.413880733475, 14818.992965655454, 14818.891747014335, 14516.177479501857, 14517.268141080534, 14515.744459795425, 14506.504014856135  …  14720.876743752324, 14640.588618745931, 14567.771878341217, 14506.37650554556, 14591.12297701824, 14541.659821089052, 14812.119733288442, 14838.155845618347, 14658.57889431162, 15000.230197601371], [14866.888022051655, 14937.878398918889, 15032.693865230365, 14774.669481961935, 14759.365502704495, 14744.395453089435, 14428.65214394096, 14415.198974952491, 14399.164921882882, 14375.501468455604  …  14558.559816964827, 14464.569930179281, 14378.128769701036, 14303.108426468943, 14372.173538061168, 14309.022430596966, 14560.471769411934, 14571.370797113621, 14380.52029684419, 14700.865476527239], [15944.236265986641, 15954.564558985687, 16114.671142234536, 16204.066635718696, 16179.987507503456, 16154.205859200614, 16627.977156180157, 16370.133178225346, 16406.300504839237, 16399.747299572307  …  16112.083995486824, 16397.49439610136, 16437.34578376824, 16547.857554285296, 16273.41905531442, 16402.90390590617, 16235.61740993621, 16677.30188170823, 17025.40347498658, 16700.83850638163], [15944.236265986641, 15938.491114505045, 16082.218009860677, 16155.141541575014, 16114.883785011201, 16072.996785785748, 16527.718718147917, 16255.036740888192, 16274.537443219768, 16251.647615846365  …  15934.427188503538, 16200.353042393413, 16223.364580722218, 16315.983576892859, 16029.22565240181, 16140.490343210346, 15959.785176801712, 16377.449606416649, 16702.44857971982, 16367.534164027835], [15944.236265986641, 15949.13449988941, 15988.864413347115, 16034.970613848356, 16119.770898564035, 16155.915917149003, 16210.92050742846, 16221.996486542052, 16240.097028082932, 16246.916683945145  …  16281.412791350987, 16332.25681366513, 16373.487506692594, 16407.53250734765, 16418.524830099934, 16511.264745656452, 16602.452539737544, 16699.134017921646, 16865.843963010575, 16975.984079110356], [15944.236265986641, 15933.066525928072, 15956.664641553194, 15986.556072948826, 16054.909470782824, 16074.698247073755, 16113.176713708155, 16107.941580465884, 16109.668787737932, 16100.197153548674  …  16101.888912844737, 16135.899788648107, 16160.337610058985, 16177.624810282103, 16172.15401918187, 16247.117626867226, 16320.3880241779, 16398.889208168286, 16545.915752283465, 16637.188562517924], [3173.2320350842083, 3165.251130931016, 3149.612258178015, 3133.8708410040826, 3170.030025330989, 3177.8459325515287, 3198.7544167440337, 3224.7454912592716, 3231.5054299434933, 3238.592589130542  …  3225.4801268484825, 3229.9140902318927, 3246.278138074726, 3257.627011911636, 3245.863809786125, 3243.9599039170776, 3233.330391000848, 3200.430738135424, 3246.70731044374, 3273.8538807520813], [3173.2320350842083, 3162.0622950256447, 3143.269293891695, 3124.408714651657, 3157.274715417088, 3161.8705311057965, 3179.4675174141116, 3202.0726935903645, 3205.5524097020498, 3209.346130059802  …  3189.914988255331, 3191.0819601071785, 3204.01812173479, 3211.9800796948803, 3197.1574791491257, 3192.0630519625433, 3178.3982797239714, 3142.888070529484, 3185.1205162777933, 3208.5164598633323], [34195.564496956766, 34604.551999252886, 36104.58640547656, 37155.5136205665, 38369.41245585373, 38155.71625786387, 39045.26940063621, 38223.75845115989, 37499.98505076584, 37627.720655139696  …  37182.413546459014, 36694.28266589186, 36711.96441906802, 35906.26694848956, 35038.01377919364, 35648.989959527484, 36828.98438226219, 37013.92935619555, 37242.79060151737, 37286.23271569311], [34195.564496956766, 34569.689603398656, 36031.8758356127, 37043.32962116009, 38215.02472350486, 37963.903030411595, 38809.845831919054, 37955.01180313528, 37198.81338567804, 37287.91947244103  …  36772.42878791094, 36253.120108774834, 36234.04843336596, 35403.13662461844, 34512.24523682664, 35078.677622428535, 36203.28467834962, 36348.43136295541, 36536.33206995741, 36542.098625096056], [33097.63671130043, 33415.77845817887, 34762.69627117115, 35427.2336080019, 36663.75011920944, 36355.63448125285, 37363.291295792296, 36513.85645765617, 35902.78245753939, 36089.76899871704  …  35364.726612746264, 35027.203249445825, 35032.61334180396, 34242.1006625999, 32967.78445300702, 33325.80770477954, 34292.41890511518, 34381.41029847891, 34388.876500069484, 34195.83882759174], [33097.63671130043, 33382.11369360077, 34692.688116874786, 35320.267821049325, 36516.22549274239, 36172.87047444466, 37138.00921909259, 36257.13192487675, 35614.43832195149, 35763.85645404071  …  34974.784230890684, 34606.08340647513, 34576.55913163287, 33762.289179520456, 32473.081069243286, 32792.661624079905, 33709.813744661435, 33763.24411195451, 33736.5538679076, 33513.38078410419], [29576.147776884885, 29605.974349916614, 29717.74666148727, 29889.589905033838, 30035.22943306068, 30119.788040946394, 30201.03251585151, 30210.975651959292, 30230.388632896796, 30220.812892765745  …  30334.699829900605, 30421.409252737314, 30485.307203162272, 30545.858899654784, 30590.766736630172, 30786.17078649818, 31026.275141297043, 31315.179536518386, 31595.310055634443, 31804.804260347417], [34346.71094688275, 34381.34847608993, 34600.06406797899, 34801.80156734583, 34838.56285359043, 34939.08132052139, 35015.10179793555, 34927.59062475897, 34911.8031523138, 34899.939618086115  …  35111.804373871215, 35166.938027335185, 35183.47251103276, 35211.10067923888, 35218.41027411739, 35441.606383900194, 35663.43374277002, 36070.49078356699, 36359.19233558656, 36498.27686972089], [28335.32931213966, 28363.90456052843, 28544.34042035385, 28710.769703437378, 28741.097007652614, 28824.02267313613, 28886.738001696336, 28814.543085732334, 28801.518746038433, 28791.731574577763  …  28966.515635680174, 29011.999764553504, 29025.640373149236, 29048.433043038996, 29054.463308304898, 29238.595503136152, 29421.5985066476, 29757.41218376051, 29995.5850196414, 30110.326896469625], [978.0617717704337, 979.0481149238881, 986.9696219621968, 997.4258001901549, 999.8388623286677, 1009.0230866434, 1011.4890038931796, 1013.7077173922204, 1005.3152589307986, 1007.4793932520372  …  1017.4620362335224, 1011.7560033889974, 1007.2073984760242, 1005.6149270209626, 1000.7754588886943, 998.7103427256874, 1001.8300238642836, 1014.9535542657736, 1021.5183024962149, 1024.7942269434093], [0.0019383188997990075, 0.00039725170673277077, 0.005124530627969692, 0.002117616675936018, 0.002532673015233078, 0.001972682041384566, -0.00030171628706754383, 0.005595937853577038, 0.008953731881043092, 0.008303235104847095  …  0.00612052427573162, 0.0057370633362450185, 0.006966326299099768, 0.008232565903585787, 0.0027448518890365037, 0.005119922421603196, 0.006133522715006778, 0.005835107495867575, 0.0019852307938228453, 0.00522133945225689], [2.3548476e6, 2.3678438856573068e6, 2.4084961362245004e6, 2.4139033825643454e6, 2.418001533769445e6, 2.421567299578725e6, 2.444495376407044e6, 2.436417494736023e6, 2.421613983653881e6, 2.412157213270898e6  …  2.4037981214998374e6, 2.393741492501893e6, 2.389152949308393e6, 2.3783131319054537e6, 2.388342741345974e6, 2.387133771003565e6, 2.4132274969720067e6, 2.4224594797325805e6, 2.4294992802709225e6, 2.419148553246351e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.008538833976217661, 0.007626828951058726, 0.007033509009695271, 0.006255448971570561, 0.006270122065990249, 0.005873627949658191, 0.006654708080771468, 0.00667222664986069, 0.006509657246782362, 0.0057284901425430305], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 566.2369443585719 281.6245212818761 … 144.12802345165872 529.0815000086731; 570.2278497798379 284.7362431587296 … 145.39417163773962 531.194252363404], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 555.4959952039659 276.2823854606154 … 141.3940588330098 519.0453525144939; 558.8476176801114 279.0536646322653 … 142.49249045920038 520.593027108849])])

Now, apply a shock to the model and simulate it again. A shock is simply a function that takes the model and changes some of its parameters for a specific time period.

In this case, let's define an interest rate shock that sets the interest rate for a number of epochs.

We do this by first defining a "struct" with some useful attributes

struct CustomShock
+model = Bit.init_model(parameters, initial_conditions, T);

Simulate the model for T quarters

data_vec_baseline = Bit.ensemblerun(model, 4)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72492.93135048292, 72377.18138216024, 72243.86559257144, 72399.38575975278, 72504.51345883342, 72433.88245859685, 72516.92100518077, 72642.71649862379, 72860.48808620566  …  73251.84255939518, 73754.10329695114, 74024.77367107378, 74205.13373522303, 74535.18362316652, 74400.349368608, 74655.37525956356, 75119.37535672552, 75488.38846972233, 75452.80699452064], [72422.0, 72419.89826311855, 72231.42189209613, 72025.73899479314, 72108.07097864267, 72140.02482920302, 71997.14214751197, 72007.06325610275, 72059.30485579857, 72202.51360375955  …  72444.14515300175, 72867.38344730502, 73061.1199076424, 73165.34719816314, 73416.73395602529, 73210.09300573253, 73387.0305854187, 73768.75426831644, 74056.44915457393, 73946.9695358535], [64900.92049553801, 64966.37094093018, 64863.289070504645, 64726.57687319233, 64872.34466962954, 64963.43312081654, 64881.33966549816, 64950.397402548784, 65069.1288028081, 65273.50840764331  …  65627.22005417707, 66082.49289699715, 66315.4298344632, 66474.03525373677, 66767.0533704717, 66623.39533162912, 66874.99431539775, 67296.57307967161, 67623.98436811977, 67563.81270279772], [64900.92049553801, 64900.920495538, 64732.66171312139, 64531.14729749922, 64611.31658645984, 64636.85437992563, 64490.13743378969, 64493.738970801234, 64546.54251801836, 64684.04896206362  …  64903.59408690411, 65288.00614241018, 65452.136232006385, 65542.57939021786, 65765.16962928782, 65557.55463487431, 65738.83308683924, 66086.60334353574, 66341.22494211173, 66215.4185996382], [40512.94792630534, 40553.80390285682, 40507.5370693752, 40518.13122577223, 40552.71229656634, 40689.19159169157, 40757.31522274505, 40836.45083190877, 40880.97874355322, 40944.67766249526  …  41097.20913747834, 41345.96553788217, 41557.291200266736, 41651.99274513564, 41861.06231492286, 41941.24149920985, 41934.00759969118, 42097.32588280016, 42371.18541532199, 42542.22462364698], [40512.94792630534, 40512.94792630536, 40425.9594528636, 40395.794442709535, 40389.53957925485, 40484.64228880655, 40511.56886861932, 40549.33465801607, 40552.65348097121, 40574.9223424097  …  40644.05863544914, 40848.87742066094, 41016.29879897822, 41068.35143734362, 41232.909422068806, 41270.26575803418, 41221.57698073446, 41340.43013076631, 41567.44635749355, 41693.19490606507], [14866.888022051655, 14752.822206043698, 14703.34830045546, 14746.731886312013, 14599.761477560025, 14637.321598955905, 14858.025986794715, 14718.34288695124, 14804.253261275155, 14860.159940043566  …  15020.190782877045, 15137.686848894355, 15235.638535890685, 15445.604428046556, 15386.762414034447, 15510.494984724985, 15630.262772418082, 15833.7422753915, 15623.828462020005, 15840.488166653306], [14866.888022051655, 14737.95945828366, 14673.737413300389, 14702.206936984836, 14541.016140504116, 14563.738079302439, 14768.439474635965, 14614.859988470731, 14685.356637742008, 14725.963665733014  …  14854.573527187826, 14955.69172175414, 15037.301145780839, 15229.175580975938, 15155.873879736817, 15262.35817483648, 15364.715107913631, 15549.056917931795, 15327.460044553067, 15524.354130093841], [15944.236265986641, 16282.940690026704, 16369.712844518244, 15742.754808337604, 16051.858713014031, 16226.36642770854, 16246.506550581105, 15570.999857382674, 15745.484314338277, 15935.634527672231  …  15836.447515785989, 16245.307163801335, 16481.507208074214, 16192.602857703658, 16971.060770294753, 15925.10959719259, 16225.171258296768, 16357.706950480439, 17016.611539530804, 16634.104020402334], [15944.236265986641, 16266.536422633813, 16336.746086886256, 15695.222557428377, 15987.270544781337, 16144.794594715368, 16148.54819070715, 15461.522030302694, 15619.02843116544, 15791.726064303304  …  15661.829961632087, 16049.995504086042, 16266.95111204808, 15965.70682499149, 16716.398792596614, 15670.339785109623, 15949.516498261086, 16063.600884496524, 16693.823418496326, 16302.131520994772], [15944.236265986641, 15960.315504263737, 15941.431488320075, 15918.557680541218, 15927.815662917066, 15959.274939706664, 15961.158293733059, 15969.330375028641, 16013.64273110624, 16061.538750205636  …  16119.149511947555, 16191.060420515194, 16255.819353182058, 16298.657041067734, 16360.9702045516, 16377.864498195504, 16415.349063072492, 16487.447166691625, 16566.524147147906, 16619.736618613548], [15944.236265986641, 15944.236265986636, 15909.32724109387, 15870.49462633016, 15863.726609056795, 15879.045806716615, 15864.920442027842, 15857.051933991244, 15885.033201291251, 15916.493295199194  …  15941.414798400743, 15996.400950466648, 16044.201259394118, 16070.274942547043, 16115.463038809537, 16115.851515800636, 16136.46330989011, 16191.008415282713, 16252.27373430234, 16288.050854354206], [3173.2320350842083, 3176.432135305343, 3172.2911789213044, 3173.546712299511, 3164.4309052738245, 3187.0365611335487, 3192.3724376735213, 3198.3715628684254, 3203.104701262025, 3210.1261488962173  …  3204.3496751681096, 3197.474035038226, 3220.7662120429104, 3242.2777107464512, 3246.4421286888596, 3288.1574541218815, 3263.4673415357242, 3256.9877420913663, 3277.4689182398433, 3332.6132742917353], [3173.2320350842083, 3173.2320350842087, 3165.9025418433707, 3163.9647922075255, 3151.698124645445, 3171.014957328029, 3173.124018505518, 3175.884197117715, 3177.379774304759, 3181.1367590789564  …  3169.017527451649, 3159.031920378096, 3178.838309700929, 3196.845857944018, 3197.7271199946754, 3235.5535300124043, 3208.023223714452, 3198.428198587857, 3215.2986071053447, 3266.1031721023714], [34195.564496956766, 33912.37216082153, 33397.48311741665, 35055.37225788631, 36470.332739163554, 34762.29527403573, 34891.522103646654, 34250.6712552488, 34247.35332335725, 33714.52553298951  …  35959.49265272116, 36029.50206545117, 35952.297871987685, 35901.041861959675, 35159.46207351269, 34864.88843279052, 34259.54218023966, 35591.73839607774, 35066.27501276677, 35506.8548079019], [34195.564496956766, 33878.207102344495, 33330.22434862162, 34949.52923548238, 36323.58636987555, 34587.541168907745, 34681.14356668933, 34009.8589054062, 33972.30434903683, 33410.062880169506  …  35562.99219708715, 35596.331933537695, 35484.27121779897, 35397.98475370507, 34631.87111926218, 34307.120147423026, 33677.49557325566, 34951.81091767946, 34401.10280755105, 34798.23237039503], [33097.63671130043, 33009.00760926575, 32600.899949605388, 33819.12458573693, 35275.2794665513, 33810.66143355864, 34319.48740517056, 32859.54382631097, 33035.353143900255, 32594.5095769949  …  34661.49752946744, 35004.35831907806, 35201.96114514554, 34986.108157622846, 34843.16394959862, 33841.38514530989, 33393.60855108217, 34761.13814802461, 34589.51195991751, 35070.86462408407], [33097.63671130043, 32975.7526464489, 32535.24540957579, 33717.01417781212, 35133.34165577343, 33640.69130252935, 34112.55795313986, 32628.51232609309, 32770.03804311709, 32300.161348856014  …  34279.30916835466, 34583.51313273393, 34743.70236696378, 34495.87139885332, 34320.319257639465, 33299.99085967072, 32826.273574746134, 34136.144582558016, 33933.383473520335, 34370.94339169539], [29576.147776884885, 29605.974349916614, 29580.77755042676, 29528.695646912885, 29581.574185726313, 29636.676408999738, 29604.99110859244, 29602.565831103544, 29687.16946301061, 29776.731203069543  …  29931.08327767076, 30115.546075194987, 30208.562090422805, 30255.48451118029, 30366.229366465468, 30336.566911276877, 30447.422526746777, 30597.484343219236, 30750.796828846927, 30768.17929023037], [34346.71094688275, 34381.34847608993, 34305.599198354124, 34225.368730327784, 34312.35505847416, 34339.55055711717, 34291.89272690426, 34365.92099890435, 34398.905402157405, 34514.179308044855  …  34709.55086644195, 34970.91005983751, 35100.84004096278, 35206.81792395849, 35382.9112739439, 35277.25730650376, 35415.9177546681, 35683.60389060256, 35849.63708238158, 35773.7832881125], [28335.32931213966, 28363.90456052843, 28301.4129661187, 28235.224481989633, 28306.986411610585, 28329.42213801971, 28290.105409396892, 28351.177209511185, 28378.388663026635, 28473.48726182606  …  28634.66477468803, 28850.280727699403, 28957.4702867928, 29044.899858117144, 29190.17324598915, 29103.010898328546, 29217.40291296371, 29438.238463294198, 29575.212427790535, 29512.63460939291], [978.0617717704337, 979.0481149238881, 976.9123217237544, 972.51249595159, 978.4154254292064, 987.2061546996265, 984.4558300016741, 981.9105725408025, 983.0539376401874, 982.5978965289877  …  986.5859100645192, 996.0367619646092, 1006.0277030776684, 1011.7328185980006, 1017.9127300622852, 1009.5711138484586, 1011.6540339828678, 1015.4848458498449, 1023.5504568912, 1021.850124454832], [0.0019383188997990075, 0.007063917044749957, 0.008084524121414915, 0.005219467666053967, 0.004078519510980039, 0.003326719149846946, 0.00568857512650256, 0.006432696199255794, 0.008760511982215391, 0.004838694420208345  …  -2.6262283579825407e-5, -0.0010420602438332427, -0.00036619682694882805, 0.0023433803056323033, 0.0037224239340132304, 0.006366041366890007, 0.011686754634621321, 0.00878459499948181, 0.007835041798679443, -0.0003869244751503187], [2.3548476e6, 2.3537439047205495e6, 2.352433531948859e6, 2.38744544802626e6, 2.418818902844311e6, 2.396352254299497e6, 2.3995408320706873e6, 2.369260454895987e6, 2.383490672979656e6, 2.3690858685814887e6  …  2.399594853064887e6, 2.400004228680611e6, 2.4069434673503605e6, 2.4265388537716423e6, 2.4182876831552763e6, 2.425144397627348e6, 2.425132945040029e6, 2.460377385418357e6, 2.449884738113035e6, 2.461611510832523e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.009834491341312803, 0.009099280211305903, 0.008701620825660696, 0.008911955404518895, 0.008003135867080825, 0.00783561243741146, 0.0075232409752079045, 0.00859732511349584, 0.007721166317610781, 0.007611480779364439], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613048 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 533.7433449131245 265.12071739703646 … 142.02393469004681 528.0367861369577; 535.964694353745 265.75305655795927 … 142.7605922792299 530.1232856441484], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 523.6187668783657 260.09164224790345 … 139.3298825331868 518.0204558212379; 525.2682637578696 260.44933197486563 … 139.91147034409528 519.5434340384601]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72491.94402459665, 72674.02354095617, 72685.17483374318, 72912.63696154296, 73279.71462543099, 73540.34687697407, 73874.83573054842, 74167.92088396972, 74512.50102030656  …  74858.4520141716, 74803.51072101231, 75077.0982519853, 75567.45093277235, 76034.8908101484, 76279.54487848017, 76449.60276266094, 76469.57564038155, 76809.90099193827, 76740.84066987822], [72422.0, 72418.91193191489, 72527.66624422326, 72465.71578673123, 72619.2570018414, 72911.32896929259, 73096.93513536634, 73355.4306463696, 73572.25994707919, 73839.60785718923  …  74033.03963646365, 73904.17421206684, 74099.74533768298, 74508.57516279993, 74893.93704598189, 75059.22515660638, 75150.77536855366, 75094.67840526605, 75352.89390445623, 75209.29748290745], [64900.92049553801, 64966.37094093018, 65135.7974704185, 65133.943422978526, 65347.73708619097, 65687.67437974425, 65915.53968586455, 66215.12856544083, 66481.49360010898, 66789.41474489153  …  67087.44391965267, 67021.79269457536, 67296.54422233958, 67744.91624630945, 68166.04636109927, 68375.25851276919, 68518.47526806055, 68521.72856467261, 68829.99925610902, 68751.41335041267], [64900.92049553801, 64900.920495538, 65004.621311815674, 64937.28388154613, 65084.79615754172, 65357.454793733596, 65518.10174203736, 65749.57796101189, 65947.564263925, 66186.26574391789  …  66347.717073717, 66216.0130662634, 66420.47848259263, 66795.6523838054, 67143.16980593675, 67281.39151888141, 67354.3924021639, 67289.73094522783, 67524.36293250459, 67379.31789521176], [40512.94792630534, 40526.740842948086, 40558.50920345412, 40610.74503407432, 40636.3996394041, 40727.94500364068, 40897.64714351904, 41034.020607368344, 41154.69281312914, 41365.2789386498  …  41629.73989970956, 41711.91139585187, 41634.737815844295, 41837.74440733504, 42085.565542285476, 42304.095649224466, 42463.85587945679, 42554.04224400388, 42719.45371297869, 42834.91315630657], [40512.94792630534, 40485.91213110755, 40476.82893480647, 40488.128621250034, 40472.89018774464, 40523.20088284234, 40651.0546576568, 40745.5153441485, 40824.16928508172, 40991.72533345445  …  41170.71754926769, 41210.4236392665, 41092.73721528894, 41251.50028666672, 41454.043830201445, 41627.3149694364, 41742.423494165196, 41788.93488549811, 41909.10835346959, 41980.04215363883], [14866.888022051655, 14934.490559835427, 15148.379402869603, 15211.888286722817, 15373.662227604964, 15611.9603242804, 15725.959369111832, 15902.951759142672, 16148.407186164402, 16031.02252458344  …  16025.054543814142, 16250.75065210672, 16277.058422810956, 16401.10671660095, 16449.026288084235, 16430.819199340396, 16377.587529263878, 16601.874878768587, 16352.256466778954, 16535.998638821493], [14866.888022051655, 14919.444790082669, 15117.872273206716, 15165.95888620489, 15311.80293142863, 15533.477182294053, 15631.139650026535, 15791.140018169379, 16018.715329642646, 15886.252649638136  …  15848.3573504043, 16055.373547231022, 16065.163839027102, 16171.289059811239, 16202.197782640267, 16167.95904794017, 16099.343319173793, 16303.378755605852, 16042.07049777319, 16205.984062046273], [15944.236265986641, 16134.991798396371, 16169.752721426326, 15857.297607614722, 15940.093201217305, 16063.07046801206, 16177.558328037756, 16309.3411971421, 16205.131970494085, 16652.930429851822  …  16475.143365119537, 16307.191535530474, 16068.715452084985, 16599.028977317703, 16566.766323961772, 16818.138369126333, 17125.075305665185, 16587.12904151179, 17197.219243772714, 15994.128847008815], [15944.236265986641, 16118.736582285128, 16137.188660956874, 15809.419516530666, 15875.954745993415, 15982.319542818053, 16080.01569167793, 16194.672180911724, 16074.984543184086, 16502.544348608062  …  16293.483353561875, 16111.13586160674, 15859.533075010697, 16366.437969255394, 16318.171051502091, 16549.08188786726, 16834.13178039664, 16288.898043540406, 16871.005175018872, 15674.928550877798], [15944.236265986641, 15960.167239680653, 15981.328580430576, 15988.771464116871, 16010.408469194314, 16062.431720672721, 16094.964424131094, 16176.958169558202, 16204.035561484385, 16280.718071848212  …  16364.551598752305, 16393.97587345279, 16394.05896091593, 16492.276130787915, 16562.31125529955, 16666.978050575595, 16705.569611904342, 16704.689761761867, 16759.19874808568, 16774.197805944234], [15944.236265986641, 15944.088150772879, 15949.14398495524, 15940.496412754175, 15945.98708509355, 15981.684006535947, 15997.919787962088, 16063.21992247142, 16073.896939706618, 16133.693294378969  …  16184.1110061163, 16196.876821715021, 16180.641265296988, 16261.18097843029, 16313.782834088102, 16400.339831226534, 16421.753206559915, 16404.345061604006, 16441.293490545453, 16439.429406975192], [3173.2320350842083, 3176.283870722261, 3177.1272006701142, 3180.6155278796077, 3172.68290644273, 3168.2462795874676, 3162.6647787183997, 3195.8807777632273, 3193.757731530177, 3198.328381281614  …  3235.1186657643284, 3256.0650335510454, 3229.5334542724618, 3240.135303872194, 3232.141762955324, 3293.3732709884325, 3298.3833218984023, 3309.2726913371043, 3325.4875702038994, 3351.66209659959], [3173.2320350842083, 3173.083919870452, 3170.7288243891544, 3171.0122648447964, 3159.9169220807994, 3152.319136714711, 3143.5954819689696, 3173.410924422989, 3168.1078724011727, 3169.4455324750506  …  3199.447249668648, 3216.918499759408, 3187.4914200588296, 3194.733471173683, 3183.6413406956062, 3240.6859042706355, 3242.346005026421, 3249.7730820420315, 3262.4063932130684, 3284.7718305526364], [34195.564496956766, 34241.062058104435, 33434.33659723449, 34702.511418264476, 35395.01758038395, 35627.45576955498, 36588.90911036773, 37303.48471545914, 37098.7214207117, 36753.38172648514  …  37838.65662254146, 38614.04108679218, 38861.11946653187, 39113.93260351251, 39419.00102008048, 39588.22894996668, 40532.24034049364, 41879.18032238392, 41866.02949895125, 41004.81719399926], [34195.564496956766, 34206.56586061098, 33367.00360968265, 34597.73379198526, 35252.597977087345, 35448.35240190001, 36368.296173372815, 37041.20840137748, 36800.772403191404, 36421.47635562056  …  37421.43592545606, 38149.79794402325, 38355.225801912755, 38565.85542225308, 38827.492870146474, 38954.89669007106, 39843.624805600564, 41126.20675411236, 41071.87274419764, 40186.47004197101], [33097.63671130043, 33345.34123468756, 32636.954384028584, 33697.26751293342, 34432.53568706742, 34750.71694005739, 35849.727074062415, 36674.962548563744, 36439.03250652977, 36290.112599263564  …  37110.14241701329, 38080.38394926902, 37764.532905286964, 38384.361771994176, 38485.46836426359, 38861.73728917801, 40049.15629221863, 41152.65084628669, 41325.05793054348, 39629.01716625829], [33097.63671130043, 33311.747432171556, 32571.22723442956, 33595.52502923979, 34293.988840412785, 34576.02104056218, 35633.57103736784, 36417.105298237395, 36146.38161402085, 35962.39083013191  …  36700.9545422265, 37622.55678006076, 37272.91459355671, 37846.507575186864, 37907.96848850843, 38240.02743870876, 39368.7480307826, 40412.740033490765, 40541.1628660032, 38838.127325626774], [29576.147776884885, 29605.974349916618, 29636.47649266097, 29630.755579163193, 29699.374747896643, 29816.663455298312, 29908.41825688841, 30027.951240257553, 30084.233856892868, 30247.13492442582  …  30363.278885505795, 30409.593465289116, 30467.476770949408, 30657.947741592205, 30829.096466996747, 30948.13735749179, 31032.962525680097, 31033.714560139953, 31127.026402383104, 31128.513090788878], [34346.71094688275, 34381.34847608993, 34513.88283006987, 34518.674072151225, 34655.66899370039, 34868.8882362691, 34997.996688279774, 35176.55073306802, 35364.176150810184, 35523.1330807061  …  35681.15344633695, 35587.66736534689, 35779.10211533237, 36030.67921822835, 36273.745382863424, 36360.57402471751, 36417.55421363708, 36411.89183230975, 36614.15722960335, 36532.73963043512], [28335.32931213966, 28363.90456052843, 28473.24267360136, 28477.195349663965, 28590.21333913579, 28766.11482394499, 28872.626638434616, 29019.930048851817, 29174.717155171074, 29305.853349318248  …  29436.216897231163, 29359.09280534791, 29517.02253233151, 29724.56846209975, 29925.09304304797, 29996.72488472464, 30043.732367327586, 30039.061019324312, 30205.92580732769, 30138.757964450295], [978.0617717704337, 979.0481149238881, 985.4381476876124, 984.5137716640518, 992.6933445940371, 1002.1226881768663, 1009.1247406963304, 1010.6265921152348, 1033.0835924059324, 1019.1467397596216  …  1043.0115878099446, 1024.5318639393693, 1049.9653360578207, 1056.289286488938, 1063.2045112391331, 1066.5471305598676, 1067.9585287433804, 1076.1221722229286, 1088.8156241225636, 1090.1606291886253], [0.0019383188997990075, 0.0014256121185349802, 0.004404021313802575, 0.004262813466585191, 0.005361253634574181, 0.0018004837605036794, 0.0038467147280996095, 0.006055223870257587, 0.009913012904663843, 0.005705269353149189  …  0.0035653498986865095, 0.005203056994837585, 0.00554657900539679, 0.0019384005279783345, 0.0031447441274350396, 0.004270406586395437, 0.008090093383290364, 0.004042238018548749, 0.004465091553881084, 0.008164765303281918], [2.3548476e6, 2.3640005632575634e6, 2.3579513039222136e6, 2.3854370320597966e6, 2.400915637772524e6, 2.384717135372132e6, 2.418431561628707e6, 2.4433974896477726e6, 2.44454879584344e6, 2.4453289237780594e6  …  2.4599631022616266e6, 2.4653689688040763e6, 2.4805465913054864e6, 2.4925382194341538e6, 2.48725494024176e6, 2.486585100011262e6, 2.519078118299905e6, 2.553048413439673e6, 2.559130590157581e6, 2.5417890750643043e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.009214389111247652, 0.008867768703466939, 0.008944079071327132, 0.008801901562153089, 0.008013947375812177, 0.007492157891526428, 0.008408442860072711, 0.009205104993830104, 0.008860411979471686, 0.007725293775005409], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 488.7122307897969 263.23660173526355 … 144.6589262557388 532.7524195565719; 486.6985835290666 260.7123765149412 … 145.19753996483797 534.5157011600043], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 479.4418480031469 258.2432663779739 … 141.9148909412775 522.6466383858789; 476.98537354588746 255.50925050635237 … 142.2997830318033 523.8481886165588]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72482.05367377034, 72125.1382589688, 71880.22052428365, 71880.08771960522, 71800.41328156514, 71991.1301114235, 72420.0636834274, 72643.74738190327, 73044.73815290826  …  73097.20485682666, 73364.59358565573, 73549.41148101863, 73729.44740501884, 73476.07306509417, 73555.50522730309, 73953.3768092984, 74596.48740973305, 74987.80842406317, 75073.98589645445], [72422.0, 72409.03154513393, 71979.8863553623, 71663.19188355531, 71590.86244786467, 71439.46424549235, 71557.05937694092, 71910.88692652818, 72060.32745979897, 72385.09978039667  …  72291.21253343097, 72482.55667536084, 72591.94597782397, 72696.32633997033, 72373.51605151, 72378.76467615934, 72696.95861723964, 73255.26767063943, 73565.36461229349, 73575.70869992093], [64900.92049553801, 64966.37094093018, 64630.10532288966, 64392.96974893991, 64392.01668097684, 64300.086366028074, 64479.94405105422, 64877.095676508354, 65071.697093033625, 65434.05909425217  …  65464.60908766574, 65698.9148344803, 65860.3877805845, 66022.49338855827, 65769.25853291164, 65832.16540509714, 66203.50056391304, 66833.47113985995, 67168.64017747395, 67241.80031225391], [64900.92049553801, 64900.920495538, 64499.94757130612, 64198.54743644362, 64132.92130264165, 63976.842346495745, 64091.162035404304, 64420.95262037948, 64549.09018166892, 64843.14977841063  …  64742.77611905762, 64909.039705100964, 65003.0179110349, 65097.36467693169, 64782.347362394285, 64778.982800173275, 65078.74756310059, 65631.82782075068, 65894.51817586638, 65899.83272043502], [40512.94792630534, 40514.85384054421, 40466.113357193295, 40467.6459723154, 40492.90629280583, 40556.23603390674, 40586.008326231735, 40738.265491222184, 40887.44428956203, 41029.32653057658  …  41174.505594439266, 41331.92582836072, 41451.0221844432, 41564.820250075376, 41630.78990117587, 41712.94034043095, 41741.573504666114, 41733.14227195277, 42117.849401105435, 42176.99177911358], [40512.94792630534, 40474.03710427797, 40384.61916337168, 40345.46161986373, 40329.97421804554, 40352.35511408846, 40341.29486755115, 40451.83964664974, 40559.06710057901, 40658.806779773666  …  40720.50279783803, 40835.00650566837, 40911.413192140055, 40982.40043171679, 41006.0923980047, 41045.61695988533, 41032.412211711766, 40982.794418680496, 41318.91587437993, 41335.2511382452], [14866.888022051655, 14514.478929361854, 14318.419319827262, 14412.290041740256, 14359.974342465946, 14443.934955778386, 14597.80181558065, 14646.282540529903, 15022.21707366304, 14972.460275421507  …  15183.584838500137, 15321.990255258273, 15451.067776430526, 15031.905636654265, 15142.728170548642, 15593.958421677451, 15744.470190282158, 15849.967200415203, 15738.475861715691, 15883.066633330503], [14866.888022051655, 14499.856300811029, 14289.583636277206, 14368.77487588899, 14302.193841451675, 14371.323613292918, 14509.784325841072, 14543.306289677457, 14901.569928783865, 14837.249860841073  …  15016.165949564122, 15137.779312570545, 15249.925930621574, 14821.273671982946, 14915.50153128003, 15344.48636420288, 15476.98221846973, 15564.99012426389, 15439.932697611152, 15566.0828437584], [15944.236265986641, 16734.27962708086, 16449.158001415242, 16001.07854413044, 16167.866627734711, 15679.013780642455, 15217.214100232222, 15772.545406116194, 15811.466525411022, 16579.452974157095  …  16234.822801928236, 16341.655321692051, 16056.622901939687, 16824.44753544014, 16310.633831717085, 15720.478520117811, 15310.778024921348, 16278.636155611928, 16617.64681870477, 16132.700546652763], [15944.236265986641, 16717.420657754872, 16416.031250186705, 15952.766333882775, 16102.811676256144, 15600.193553125087, 15125.461862268377, 15661.65053652541, 15684.480722763556, 16429.73043898814  …  16055.812639013342, 16145.185301692278, 15847.597945562165, 16588.69788901753, 16065.88199650088, 15468.982394833363, 15050.658191655433, 15985.951755909466, 16302.426659852157, 15810.734727748579], [15944.236265986641, 15955.297251577253, 15905.721068136943, 15860.05500414511, 15854.621141118376, 15854.105918235564, 15875.482691140242, 15973.879620191681, 16024.497759097445, 16084.318488474093  …  16090.524519289953, 16136.876468563452, 16162.712291012842, 16214.635916824434, 16206.149234581648, 16210.506087896858, 16250.970918338917, 16344.679854641316, 16426.109906097296, 16490.416856545897], [15944.236265986641, 15939.223068944613, 15873.688737674234, 15812.168587627213, 15790.826601443163, 15774.405482159502, 15779.76142073726, 15861.569193958694, 15895.801049864862, 15939.067318588512  …  15913.105433739966, 15942.868433263375, 15952.30626402922, 15987.431149701439, 15962.96525976649, 15951.170504391002, 15974.877839410665, 16050.808011456502, 16114.52301112837, 16161.311970979124], [3173.2320350842083, 3171.41388261886, 3169.1133566333588, 3169.683697601724, 3169.423520994406, 3176.622635295004, 3179.587488410606, 3192.9162013655196, 3197.402755769875, 3204.218027417896  …  3220.0630529019527, 3225.948243643928, 3223.6749158285265, 3237.297785756135, 3260.2950266013113, 3267.7843682214298, 3263.2768107129273, 3215.440507927036, 3238.3188921557253, 3278.085273407354], [3173.2320350842083, 3168.218838042187, 3162.7311193315336, 3160.1134411471453, 3156.6706514834955, 3160.653383506992, 3160.416156132443, 3170.467191605341, 3171.7236225486695, 3175.281991527754  …  3184.557644636719, 3187.163793508961, 3181.7091480097542, 3191.935713286945, 3211.372146022921, 3215.5063726234544, 3207.8359298823434, 3157.6279697115933, 3176.891217904532, 3212.6634051691], [34195.564496956766, 32841.551681065524, 33290.918573238305, 33468.70598337116, 32301.96465041895, 33922.87960574429, 33975.17687055363, 33561.327186202914, 33645.01641020714, 34410.60123406267  …  34742.03435565942, 34338.30935436204, 34146.52858528917, 34194.80101276626, 35126.18926572714, 34720.577930897285, 35559.61276810929, 35631.792423715415, 35003.24570866564, 35234.84196127581], [34195.564496956766, 32808.46542191681, 33223.87441343082, 33367.65359770063, 32171.9906228382, 33752.34534089977, 33770.323439921885, 33325.36153159371, 33374.80495277716, 34099.852594678574  …  34358.957970664174, 33925.47184232283, 33702.00941761776, 33715.65230780763, 34599.097591936974, 34165.11832411223, 34955.47883519062, 34991.144787379955, 34339.26910638145, 34531.64817712198], [33097.63671130043, 32123.110404281888, 32399.470992705585, 32469.500017273775, 31442.624193820346, 32801.65109450695, 32385.071001174394, 32298.35694064382, 32722.396916939906, 33947.10286130965  …  34237.74273370041, 33969.287174017336, 33555.829967083926, 33886.52702991728, 34734.26810407474, 34192.44998582054, 34403.05767868061, 34897.05064196217, 34489.409366128464, 34353.61502391859], [33097.63671130043, 32090.74793962675, 32334.22210790436, 32371.46454378086, 31316.107910727143, 32636.75337591406, 32189.80511864139, 32071.27107791806, 32459.59524510457, 33640.539893884896  …  33860.226823648736, 33560.886286893125, 33119.00050811758, 33411.69796055467, 34213.05746621265, 33645.4393668746, 33818.57283978806, 34269.6134155943, 33835.179725931346, 33668.00818695354], [29576.147776884885, 29605.974349916614, 29516.573226529064, 29434.330474993574, 29411.26864403082, 29384.871674907885, 29445.99663700538, 29620.20221212301, 29718.166081983403, 29807.97503325934  …  29835.242108825307, 29895.060248033486, 29956.4942268513, 30019.32582282486, 29989.87073193908, 29993.31586046776, 30044.145311352633, 30364.75308531831, 30510.662718518262, 30578.013965087823], [34346.71094688275, 34381.34847608993, 34143.33754889993, 33992.40865210506, 34012.89404057228, 33953.00123554849, 34062.831692251944, 34284.1562831054, 34381.651417798515, 34643.74056391345  …  34636.28516902294, 34805.82745271102, 34901.06515668439, 34996.81250679032, 34781.07538955748, 34834.001774860655, 35143.9051373435, 35458.149384463686, 35635.46476322258, 35642.44831091645], [28335.32931213966, 28363.90456052843, 28167.55044638206, 28043.037214241318, 28059.937237920538, 28010.526907004092, 28101.13477231055, 28283.723002560775, 28364.15448120026, 28580.372630174967  …  28574.22208290128, 28714.090975968313, 28792.660120745833, 28871.64971308881, 28693.671033526225, 28737.33421161585, 28992.998104571154, 29252.2431379709, 29398.524674418746, 29404.285957470824], [978.0617717704337, 979.0481149238881, 970.1945474606739, 966.2306218411896, 967.8539963738816, 962.2134555717142, 971.1157217970919, 972.7371812798369, 971.8795932517706, 982.3434970794464  …  993.0818098175123, 998.0271337357818, 1002.828397048862, 1006.3550589431517, 998.3124114150281, 1004.8477697687141, 1015.4501152169669, 1010.5686700779538, 1022.512695733166, 1021.3380362495734], [0.0019383188997990075, 0.00330686626635468, 0.0014311582516777221, 0.004959578111744634, 0.006142365199992339, 0.003228160254349577, 0.007329096993371698, 0.004161233577395063, 0.003841981394522076, 0.00337937523293963  …  0.006049653427405044, 0.005553670560054291, 0.006330684169110423, 0.006530185314009174, 0.0046522081416324745, 0.004152088938145226, 0.006228784290256861, 0.004715800100241863, 0.0032149575782751683, 0.004076877046134797], [2.3548476e6, 2.330786554476125e6, 2.3441985274836672e6, 2.331815751987135e6, 2.3075949994178754e6, 2.3281907380350064e6, 2.3344445487965904e6, 2.336211608466692e6, 2.3433140258987164e6, 2.3525910618123156e6  …  2.373661875877674e6, 2.3788693995926804e6, 2.3778817283837963e6, 2.379219542365517e6, 2.3918053080637534e6, 2.3743393776235254e6, 2.384037745558196e6, 2.402061181910792e6, 2.3943115856429627e6, 2.41108831639186e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.009711394380893155, 0.009335664804981351, 0.008748955384833813, 0.008306435671451938, 0.008318554540205447, 0.007079724102649028, 0.0071002950433934125, 0.007426461850473761, 0.006633102988350252, 0.006924789196081317], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 524.5719246961827 257.3912335496917 … 141.08262150086608 525.0650269849438; 527.6970391709951 261.06226822193895 … 141.82852250337334 527.6788323502865], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 514.6213193405425 252.50877898726367 … 138.40642511481778 515.1050679715023; 517.165608995453 255.8521593049605 … 138.99800220333324 517.1477655344885]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72472.30661237487, 72816.53814394175, 73230.00725096029, 73455.43114249692, 73673.13489813433, 73854.99974341854, 73792.8961335445, 73798.35542679482, 73788.88355975214  …  74155.90131564895, 74307.07577452125, 74398.30471465227, 74490.51840068193, 74509.00946806232, 74951.4017678693, 75453.61635324519, 76205.052181447, 76825.58716509609, 77200.84242294404], [72422.0, 72399.29430342671, 72669.89383885264, 73008.9031861942, 73159.86713155871, 73302.7714724857, 73409.69080141098, 73274.06715681637, 73205.6625615966, 73122.5251020231  …  73338.23547860415, 73413.707729721, 73429.78832783105, 73446.73296060745, 73390.95256140924, 73752.32967186875, 74171.71009915654, 74834.91098910094, 75368.28252657969, 75660.11882376035], [64900.92049553801, 64966.37094093018, 65304.78035142846, 65688.81727256991, 65873.6311489797, 66067.89244811118, 66227.62331768012, 66152.2739941105, 66147.50704414138, 66128.23190410383  …  66463.96624000533, 66600.1032834615, 66675.98711267108, 66762.57450591456, 66809.95246963628, 67226.48751312404, 67691.53890793133, 68400.6238743511, 68976.02069371725, 69327.8753570117], [64900.92049553801, 64900.920495538, 65173.26388033911, 65490.48239519009, 65608.57417041964, 65735.76146160845, 65828.30366466098, 65687.16531261233, 65616.26003668467, 65531.05378596246  …  65731.1140512412, 65799.3934798032, 65807.99977917229, 65827.07553628297, 65807.42499913138, 66150.99855110608, 66541.5051352793, 67170.80367648193, 67667.61448931889, 67944.2752525125], [40512.94792630534, 40376.02575395493, 40296.947758385715, 40478.24672194327, 40750.78833269375, 40899.95551530817, 41028.86700289264, 41195.59282073477, 41279.10786893351, 41344.680588901014  …  41505.25364269687, 41601.91334322777, 41713.83597527859, 41772.118054961174, 41574.23810954276, 41683.65578612595, 41869.3137328737, 42057.075396404, 42287.69069434981, 42409.37983085956], [40512.94792630534, 40335.348880204765, 40215.794245023724, 40356.03036254638, 40586.81861308045, 40694.34667764342, 40781.48332649559, 40905.951562717055, 40947.585132767206, 40971.312999320784  …  41047.60391611537, 41101.748054848445, 41170.805675674565, 41186.79351214736, 40950.389203362676, 41016.80089971255, 41157.9822192548, 41300.903334569906, 41485.535447965696, 41563.00134221327], [14866.888022051655, 14952.94275836035, 15063.029109016088, 14819.413880733475, 14818.992965655454, 14818.891747014335, 14516.177479501857, 14517.268141080534, 14515.744459795425, 14506.504014856135  …  14720.876743752324, 14640.588618745931, 14567.771878341217, 14506.37650554556, 14591.12297701824, 14541.659821089052, 14812.119733288442, 14838.155845618347, 14658.57889431162, 15000.230197601371], [14866.888022051655, 14937.878398918889, 15032.693865230365, 14774.669481961935, 14759.365502704495, 14744.395453089435, 14428.65214394096, 14415.198974952491, 14399.164921882882, 14375.501468455604  …  14558.559816964827, 14464.569930179281, 14378.128769701036, 14303.108426468943, 14372.173538061168, 14309.022430596966, 14560.471769411934, 14571.370797113621, 14380.52029684419, 14700.865476527239], [15944.236265986641, 15954.564558985687, 16114.671142234536, 16204.066635718696, 16179.987507503456, 16154.205859200614, 16627.977156180157, 16370.133178225346, 16406.300504839237, 16399.747299572307  …  16112.083995486824, 16397.49439610136, 16437.34578376824, 16547.857554285296, 16273.41905531442, 16402.90390590617, 16235.61740993621, 16677.30188170823, 17025.40347498658, 16700.83850638163], [15944.236265986641, 15938.491114505045, 16082.218009860677, 16155.141541575014, 16114.883785011201, 16072.996785785748, 16527.718718147917, 16255.036740888192, 16274.537443219768, 16251.647615846365  …  15934.427188503538, 16200.353042393413, 16223.364580722218, 16315.983576892859, 16029.22565240181, 16140.490343210346, 15959.785176801712, 16377.449606416649, 16702.44857971982, 16367.534164027835], [15944.236265986641, 15949.13449988941, 15988.864413347115, 16034.970613848356, 16119.770898564035, 16155.915917149003, 16210.92050742846, 16221.996486542052, 16240.097028082932, 16246.916683945145  …  16281.412791350987, 16332.25681366513, 16373.487506692594, 16407.53250734765, 16418.524830099934, 16511.264745656452, 16602.452539737544, 16699.134017921646, 16865.843963010575, 16975.984079110356], [15944.236265986641, 15933.066525928072, 15956.664641553194, 15986.556072948826, 16054.909470782824, 16074.698247073755, 16113.176713708155, 16107.941580465884, 16109.668787737932, 16100.197153548674  …  16101.888912844737, 16135.899788648107, 16160.337610058985, 16177.624810282103, 16172.15401918187, 16247.117626867226, 16320.3880241779, 16398.889208168286, 16545.915752283465, 16637.188562517924], [3173.2320350842083, 3165.251130931016, 3149.612258178015, 3133.8708410040826, 3170.030025330989, 3177.8459325515287, 3198.7544167440337, 3224.7454912592716, 3231.5054299434933, 3238.592589130542  …  3225.4801268484825, 3229.9140902318927, 3246.278138074726, 3257.627011911636, 3245.863809786125, 3243.9599039170776, 3233.330391000848, 3200.430738135424, 3246.70731044374, 3273.8538807520813], [3173.2320350842083, 3162.0622950256447, 3143.269293891695, 3124.408714651657, 3157.274715417088, 3161.8705311057965, 3179.4675174141116, 3202.0726935903645, 3205.5524097020498, 3209.346130059802  …  3189.914988255331, 3191.0819601071785, 3204.01812173479, 3211.9800796948803, 3197.1574791491257, 3192.0630519625433, 3178.3982797239714, 3142.888070529484, 3185.1205162777933, 3208.5164598633323], [34195.564496956766, 34604.551999252886, 36104.58640547656, 37155.5136205665, 38369.41245585373, 38155.71625786387, 39045.26940063621, 38223.75845115989, 37499.98505076584, 37627.720655139696  …  37182.413546459014, 36694.28266589186, 36711.96441906802, 35906.26694848956, 35038.01377919364, 35648.989959527484, 36828.98438226219, 37013.92935619555, 37242.79060151737, 37286.23271569311], [34195.564496956766, 34569.689603398656, 36031.8758356127, 37043.32962116009, 38215.02472350486, 37963.903030411595, 38809.845831919054, 37955.01180313528, 37198.81338567804, 37287.91947244103  …  36772.42878791094, 36253.120108774834, 36234.04843336596, 35403.13662461844, 34512.24523682664, 35078.677622428535, 36203.28467834962, 36348.43136295541, 36536.33206995741, 36542.098625096056], [33097.63671130043, 33415.77845817887, 34762.69627117115, 35427.2336080019, 36663.75011920944, 36355.63448125285, 37363.291295792296, 36513.85645765617, 35902.78245753939, 36089.76899871704  …  35364.726612746264, 35027.203249445825, 35032.61334180396, 34242.1006625999, 32967.78445300702, 33325.80770477954, 34292.41890511518, 34381.41029847891, 34388.876500069484, 34195.83882759174], [33097.63671130043, 33382.11369360077, 34692.688116874786, 35320.267821049325, 36516.22549274239, 36172.87047444466, 37138.00921909259, 36257.13192487675, 35614.43832195149, 35763.85645404071  …  34974.784230890684, 34606.08340647513, 34576.55913163287, 33762.289179520456, 32473.081069243286, 32792.661624079905, 33709.813744661435, 33763.24411195451, 33736.5538679076, 33513.38078410419], [29576.147776884885, 29605.974349916614, 29717.74666148727, 29889.589905033838, 30035.22943306068, 30119.788040946394, 30201.03251585151, 30210.975651959292, 30230.388632896796, 30220.812892765745  …  30334.699829900605, 30421.409252737314, 30485.307203162272, 30545.858899654784, 30590.766736630172, 30786.17078649818, 31026.275141297043, 31315.179536518386, 31595.310055634443, 31804.804260347417], [34346.71094688275, 34381.34847608993, 34600.06406797899, 34801.80156734583, 34838.56285359043, 34939.08132052139, 35015.10179793555, 34927.59062475897, 34911.8031523138, 34899.939618086115  …  35111.804373871215, 35166.938027335185, 35183.47251103276, 35211.10067923888, 35218.41027411739, 35441.606383900194, 35663.43374277002, 36070.49078356699, 36359.19233558656, 36498.27686972089], [28335.32931213966, 28363.90456052843, 28544.34042035385, 28710.769703437378, 28741.097007652614, 28824.02267313613, 28886.738001696336, 28814.543085732334, 28801.518746038433, 28791.731574577763  …  28966.515635680174, 29011.999764553504, 29025.640373149236, 29048.433043038996, 29054.463308304898, 29238.595503136152, 29421.5985066476, 29757.41218376051, 29995.5850196414, 30110.326896469625], [978.0617717704337, 979.0481149238881, 986.9696219621968, 997.4258001901549, 999.8388623286677, 1009.0230866434, 1011.4890038931796, 1013.7077173922204, 1005.3152589307986, 1007.4793932520372  …  1017.4620362335224, 1011.7560033889974, 1007.2073984760242, 1005.6149270209626, 1000.7754588886943, 998.7103427256874, 1001.8300238642836, 1014.9535542657736, 1021.5183024962149, 1024.7942269434093], [0.0019383188997990075, 0.00039725170673277077, 0.005124530627969692, 0.002117616675936018, 0.002532673015233078, 0.001972682041384566, -0.00030171628706754383, 0.005595937853577038, 0.008953731881043092, 0.008303235104847095  …  0.00612052427573162, 0.0057370633362450185, 0.006966326299099768, 0.008232565903585787, 0.0027448518890365037, 0.005119922421603196, 0.006133522715006778, 0.005835107495867575, 0.0019852307938228453, 0.00522133945225689], [2.3548476e6, 2.3678438856573068e6, 2.4084961362245004e6, 2.4139033825643454e6, 2.418001533769445e6, 2.421567299578725e6, 2.444495376407044e6, 2.436417494736023e6, 2.421613983653881e6, 2.412157213270898e6  …  2.4037981214998374e6, 2.393741492501893e6, 2.389152949308393e6, 2.3783131319054537e6, 2.388342741345974e6, 2.387133771003565e6, 2.4132274969720067e6, 2.4224594797325805e6, 2.4294992802709225e6, 2.419148553246351e6], [0.0016459319014481277, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01  …  0.008538833976217661, 0.007626828951058726, 0.007033509009695271, 0.006255448971570561, 0.006270122065990249, 0.005873627949658191, 0.006654708080771468, 0.00667222664986069, 0.006509657246782362, 0.0057284901425430305], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 566.2369443585719 281.6245212818761 … 144.12802345165872 529.0815000086731; 570.2278497798379 284.7362431587296 … 145.39417163773962 531.194252363404], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 555.4959952039659 276.2823854606154 … 141.3940588330098 519.0453525144939; 558.8476176801114 279.0536646322653 … 142.49249045920038 520.593027108849])])

Now, apply a shock to the model and simulate it again. A shock is simply a function that takes the model and changes some of its parameters for a specific time period.

In this case, let's define an interest rate shock that sets the interest rate for a number of epochs.

We do this by first defining a "struct" with some useful attributes

struct CustomShock
     rate::Float64    # target rate for the first 10 epochs
     final_time::Int  # number of epochs for the shock
 end

and then by making the struct a callable function that changes the interest rate in the model, this is done in Julia using the syntax below

function (s::CustomShock)(model::Bit.Model)
@@ -32,7 +32,7 @@
         model.cb.r_bar = s.rate
     end
 end

Now we define a specific shock with a rate of 0.01 for the first 10 epochs, and run a shocked simulation

custom_shock = CustomShock(0.0, 10)
-data_vec_shocked = Bit.run_n_sims(model, 4; shock = custom_shock)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72481.32481902261, 72825.1574594632, 73214.42695328117, 73454.41504865991, 73870.1187383253, 74301.62598769808, 74762.22697785043, 75146.83922414474, 75096.57749135433  …  75152.98214530865, 75728.14404726577, 76038.91973054965, 76400.54889579136, 76965.03858784436, 77409.3948003089, 77968.5243183964, 78195.5261686041, 78699.74354167163, 78859.67191760914], [72422.0, 72408.30342467174, 72678.49579604356, 72993.36993025776, 73158.85512619784, 73498.76505198087, 73853.62411141391, 74236.58275254945, 74543.31635168, 74418.40976277839  …  74324.32218754392, 74817.69099446211, 75049.04583385741, 75329.9994854333, 75810.12734183142, 76170.99974586008, 76643.89146742887, 76789.5969238387, 77206.88802900442, 77285.84249121908], [64900.92049553801, 64966.37094093018, 65292.71124866797, 65641.35620113813, 65874.01524608019, 66248.57571022406, 66654.63562295747, 67080.69632064656, 67425.20032139048, 67355.67901064474  …  67436.30484350729, 67988.8583609149, 68284.4374161523, 68623.75861152056, 69142.00276123449, 69539.92658982975, 70089.42539347167, 70300.06607971447, 70739.6905762468, 70876.38206512341], [64900.92049553801, 64900.920495538, 65161.219083392, 65443.16462342758, 65608.95672202144, 65915.53640792909, 66252.74129796562, 66609.06001344344, 66883.6918428622, 66747.41629925024  …  66692.73134943908, 67171.45203952541, 67395.51129268704, 67662.1801231471, 68104.48133558527, 68427.42724271903, 68898.65314026737, 69036.09455022696, 69397.82931611188, 69461.87788297697], [40512.94792630534, 40462.36056699563, 40481.41051854924, 40677.05107088713, 40639.77183467526, 40844.14897233533, 40884.7338482155, 41053.4210223794, 41312.33586276369, 41478.43667809883  …  41331.470798711875, 41394.70260847806, 41501.00203305017, 41610.03453028082, 41844.15512588059, 42075.90624051513, 42067.12117945045, 42176.95099229562, 42540.35425065156, 42659.602216417334], [40512.94792630534, 40421.59671513842, 40399.88551796786, 40554.23445960869, 40476.24881424996, 40638.82068065889, 40638.21922310604, 40764.77935717516, 40980.54626435149, 41103.86118975381  …  40875.737255361666, 40897.02854246284, 40960.742403577984, 41026.981154681, 41216.25593656711, 41402.776133580126, 41352.429050196115, 41418.62360759012, 41733.4062290195, 41808.22995409754], [14866.888022051655, 14913.322757669288, 15264.273639392142, 15514.572868043386, 15684.908519913202, 15875.977607124252, 16134.465089623098, 16230.444149050005, 16036.830421883942, 15853.513389182728  …  15932.734315793956, 15771.273994015908, 15717.81391953149, 15727.017990801318, 15901.200231016002, 16185.75198413959, 15932.45770615277, 16185.018164275174, 16112.79168154119, 16294.180078343174], [14866.888022051655, 14898.298313443245, 15233.533111792305, 15467.729569059764, 15621.796856129635, 15796.167219522044, 16037.182284073333, 16116.32984847485, 15908.03466598293, 15710.34652959679  …  15757.05507368916, 15581.6614697014, 15513.199575099126, 15506.645885102082, 15662.59221744445, 15926.812416643923, 15661.775952730883, 15894.01698455103, 15807.148120282178, 15968.991557232051], [15944.236265986641, 15967.1237400336, 16012.991695035622, 16134.600512520909, 16006.425497234542, 16193.838399554648, 16257.93778565387, 16332.82640963477, 16785.498894225002, 16772.207644074133  …  16195.422837394213, 16710.72066712546, 16681.577127249853, 16714.560260770362, 16719.663103347044, 16674.04726162057, 17279.070033845175, 16944.950131409143, 17301.150156480515, 17091.324272190785], [15944.236265986641, 15951.037642791514, 15980.743333614299, 16085.885158110721, 15942.020139493652, 16112.43008874575, 16159.910501113816, 16217.99227170023, 16650.690396449325, 16620.744417104914  …  16016.847110639035, 16509.813503252037, 16464.416523016673, 16480.350390682026, 16468.77351371131, 16407.29594907376, 16985.510241594493, 16640.285630661714, 16972.964622141262, 16750.226871942254], [15944.236265986641, 15951.762054221614, 15994.597185390685, 16052.724371589846, 16119.227502883516, 16184.268161629117, 16258.944621850087, 16341.397159394424, 16423.615960217987, 16485.732623274325  …  16507.721719038618, 16569.65509267987, 16640.21170423548, 16727.765262264118, 16834.524787943912, 16928.500389365112, 17027.92899798896, 17125.358947194578, 17218.477217979824, 17282.731226812233], [15944.236265986641, 15935.691433127631, 15962.385868439656, 16004.256226598949, 16054.36826157387, 16102.907961520368, 16160.911266588173, 16226.502761549233, 16291.71383388897, 16336.856439824789  …  16325.702488503734, 16370.443910987382, 16423.589594665464, 16493.37035938783, 16581.911622854816, 16657.678337138695, 16738.635923227543, 16817.4507566537, 16891.859906692327, 16937.813852548166], [3173.2320350842083, 3167.8786852632193, 3153.4260455074555, 3143.8276271352865, 3165.293745906855, 3158.378729624925, 3167.2553199100043, 3173.959336342645, 3188.0656482335157, 3244.4259598698327  …  3241.267865489002, 3206.251476606033, 3208.8945519217414, 3215.3894429180973, 3216.4621800766595, 3236.750593551108, 3241.5858864683055, 3270.5190761455733, 3276.684302560284, 3308.889953193769], [3173.2320350842083, 3164.6872022252037, 3147.0754006830743, 3134.335438162799, 3152.5574934502783, 3142.5011920745565, 3148.1583444787293, 3151.6436100202754, 3162.461503634843, 3215.1268219165645  …  3205.5286464207925, 3167.703833828595, 3167.1211947325355, 3170.3343572945287, 3168.1970403157534, 3184.969076102504, 3186.513519869268, 3211.7162438095893, 3214.5288748013954, 3242.8533054321156], [34195.564496956766, 33828.29469037459, 33403.220484758036, 33297.015114863134, 33480.31293588873, 34096.77365404515, 35000.15939311169, 35036.78506077767, 34263.419975132114, 34690.748447566424  …  35897.98391999843, 36152.256966459485, 36047.39911550154, 36630.440994411096, 37898.471254354925, 38029.51906499942, 36518.009172390375, 35841.798296349276, 36614.356654959985, 37570.524318036645], [34195.564496956766, 33794.21433584219, 33335.95016155148, 33196.481117082214, 33345.59756597147, 33925.36520357642, 34789.125827292344, 34790.445639324054, 33988.24196555305, 34377.46990860784  …  35502.161678620585, 35717.610995203264, 35578.13443427608, 36117.16330760793, 37329.77965799596, 37421.12303691195, 35897.59272838864, 35197.374825098894, 35919.81888755063, 36820.71652276195], [33097.63671130043, 32689.776936050384, 32336.738878271954, 32408.812613033664, 32357.003739052005, 33140.61989473415, 33975.67012890618, 33891.249663991635, 33251.245929860335, 33698.328667567956  …  34204.629726590145, 34300.810188813346, 33908.872464783366, 34281.504880472545, 35398.4511267542, 35555.82975096593, 33828.13377344252, 32953.19141572525, 33868.90920196131, 34755.95896737906], [33097.63671130043, 32656.843582543723, 32271.616328882457, 32310.960373603757, 32226.80824964702, 32974.01814052224, 33770.813724171756, 33652.964364125044, 32984.196940657166, 33394.01228228505  …  33827.47893076688, 33888.42351615764, 33467.44710211249, 33801.141252640045, 34867.27398388736, 34987.007790349824, 33253.41650548144, 32360.704124063246, 33226.44982998887, 34062.322414814975], [29576.147776884885, 29605.97434991662, 29701.678380763347, 29828.37312884912, 29914.978682405294, 30068.54999865593, 30206.634758960492, 30388.79751109023, 30542.79206222967, 30569.092401290873  …  30684.888446578072, 30884.531353511018, 31058.905137269303, 31243.595481729837, 31492.841205346915, 31654.421442848357, 31867.055538880133, 32026.26885583411, 32190.992782870013, 32281.111238676156], [34346.71094688275, 34381.34847608993, 34607.09975821034, 34824.86045802249, 34966.831803883455, 35181.93788689851, 35440.007349727544, 35672.79352772439, 35858.259856357916, 35766.90909574657  …  35732.17449222329, 36075.97736317412, 36192.69144282449, 36349.04730510498, 36612.29927470546, 36840.347141312755, 37166.22601702367, 37222.90470812311, 37490.04590205009, 37536.25750412125], [28335.32931213966, 28363.90456052843, 28550.1447199257, 28729.79281344947, 28846.916250511007, 29024.37433983729, 29237.276332868772, 29429.32013651145, 29582.326038773008, 29506.963542234695  …  29478.30820953396, 29761.93849896448, 29858.225211464294, 29987.215578386265, 30204.393032793323, 30392.52782710424, 30661.371189527472, 30708.129942636824, 30928.51592703182, 30966.639547216382], [978.0617717704337, 979.0481149238881, 983.933109694265, 988.122614266406, 992.2047597914104, 998.0878246695981, 1007.9935142694909, 1019.1052818319525, 1024.1484028029377, 1019.6775136072249  …  1019.2419047059457, 1028.349644229802, 1032.8408360585665, 1031.1158246857142, 1036.8622811820999, 1045.1580056686234, 1056.1438375678613, 1050.8925157573133, 1058.6518913267375, 1059.0133223260264], [0.0019383188997990075, 0.0029329271725921924, 0.001548708275527444, 0.001560563946073401, 0.004992861246601921, 0.004937252005935866, 0.002065675815566159, 0.0037600376003317226, 0.0032696210990321717, 0.004656678030112271  …  0.0042963122925996355, 0.005066900326568202, 0.0013536109463188062, 0.004594868116728268, 0.006907704385664015, 0.004759990823026028, 0.0034625540556900702, -0.004674058467229902, 0.00039492565459342543, 0.005486308210832069], [2.3548476e6, 2.3782944568170253e6, 2.3637553606310934e6, 2.373475838357839e6, 2.3959200420012e6, 2.4323451333756773e6, 2.437119281299929e6, 2.4165420806057528e6, 2.3948858839416327e6, 2.391836049301925e6  …  2.4528958545974395e6, 2.4564737020357517e6, 2.45354067037333e6, 2.4559651773566403e6, 2.467720694161577e6, 2.475989408850023e6, 2.4550097917452515e6, 2.426522175882475e6, 2.4405197295727017e6, 2.4485094972421224e6], [0.0016459319014481277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0013179346404780898, 0.001480109134130269, 0.0012841528810525772, 0.0013917221935937794, 0.0019180082274449378, 0.0022148239871978737, 0.0012968865679722735, 0.0, 0.0005764585043611877, 0.000981691947518874], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 569.1485529680867 289.4500003763421 … 146.6230335711624 533.7350984118685; 572.7081981603502 290.6697317181957 … 147.02030283098205 535.0581807884553], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 558.3523735069035 283.9594230344407 … 143.84174110310246 523.6106768050023; 561.2784649002208 284.86873653250746 … 144.08616839641437 524.3798417936468]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72460.23082049133, 72456.5195691909, 72459.18846950564, 72306.6853091019, 72459.31255271306, 72683.3103543831, 72735.74631070081, 72908.40377843488, 72983.42763520562  …  73463.2732174893, 73687.03398135482, 73275.1103618384, 72828.40453018848, 72660.29383239879, 73071.85411958906, 73294.92210570388, 73672.99997386169, 74086.30476273, 74457.24926653909], [72422.0, 72387.23067731364, 72310.60030095547, 72240.41174529542, 72015.74352855269, 72095.05115329973, 72245.06611705382, 72224.35002722047, 72322.85833528028, 72324.34293392561  …  72653.24451145633, 72801.12048268878, 72321.21570787056, 71807.90917179162, 71569.97812509365, 71902.85101609524, 72049.69061672688, 72348.38422807679, 72680.96157479905, 72971.280493727], [64900.92049553801, 64966.37094093018, 64952.478873867294, 64941.41445734151, 64782.65502666832, 64922.93620525475, 65120.16642031279, 65166.01583151557, 65328.45588229061, 65389.97883596644  …  65836.59873291015, 66040.38437264797, 65639.41073070586, 65209.08521195216, 65044.74789325129, 65436.07431053059, 65639.5026447482, 65983.52144191648, 66381.00060851834, 66726.19646195802], [64900.92049553801, 64900.920495538, 64821.67189826723, 64745.336220465644, 64521.98782941552, 64596.561047072784, 64727.52418197115, 64707.841412529, 64803.78687751515, 64799.467591643624  …  65110.66409175484, 65246.403874157186, 64784.91753818209, 64295.35424100228, 64068.70848348368, 64389.22836866806, 64524.331589703586, 64797.1599323362, 65121.81934266917, 65394.518952410894], [40512.94792630534, 40356.21956129799, 40469.00073977897, 40568.01673672712, 40629.355066351316, 40658.56799607799, 40755.087330152455, 40810.45319075306, 40868.14442223646, 40938.52540238949  …  41052.73136539022, 41198.21706844482, 41240.34748427872, 41198.84486727395, 41177.21091775259, 41243.17601591391, 41345.43540703388, 41499.18525323504, 41515.278774902086, 41686.80164999451], [40512.94792630534, 40315.56264131949, 40387.50073109408, 40445.529333861756, 40465.873960074045, 40454.17264157312, 40509.354409111715, 40523.51980314824, 40539.922235266786, 40568.8256409513  …  40600.07128899288, 40702.905279519444, 40703.48105311581, 40621.55321534793, 40559.31966685566, 40583.36792234022, 40643.00423424331, 40753.04386842404, 40727.77541097794, 40854.84390107802], [14866.888022051655, 14685.02916272764, 14755.704941530477, 14556.195153538554, 14894.283808875947, 14972.851778549972, 14976.411086171742, 14970.680964149327, 14983.823135182321, 15044.478020800221  …  15238.584976173042, 14916.51452126242, 14782.80357446938, 14796.752792096571, 14995.710939845652, 14878.644033946439, 15069.302143247443, 15248.307681218814, 15235.306645976778, 15378.478814929935], [14866.888022051655, 14670.234713147334, 14725.98861399822, 14512.245493600063, 14834.353396731663, 14897.58150962362, 14886.11077070194, 14865.423906999871, 14863.484341529616, 14908.617242216156  …  15070.559638757437, 14737.178471845928, 14590.361185359214, 14589.415865782024, 14770.69039124129, 14640.61557194798, 14813.284822994088, 14974.148240741568, 14946.308099220632, 15071.565256915814], [15944.236265986641, 16250.35322813877, 16319.183415553009, 16415.024655988596, 16009.725040483507, 15931.320272961766, 16081.147954939099, 15813.351377204222, 16024.701896492486, 16017.933777818285  …  16052.875350264774, 17146.99769758128, 17308.824065257522, 16599.983257264168, 15175.634593599061, 15761.751502207386, 15642.257714820367, 15610.262917863489, 16014.431961463313, 16326.027286360204], [15944.236265986641, 16233.98179102197, 16286.318418498853, 16365.462614266635, 15945.306406307824, 15851.231671335747, 15984.186625212484, 15702.169605738989, 15896.003547781991, 15873.282102209889  …  15875.871396063223, 16940.845327196446, 17083.497966657495, 16367.37887751995, 14947.914171715136, 15509.595091991998, 15376.50626430245, 15329.595644042955, 15710.6541858312, 16000.203179633336], [15944.236265986641, 15940.771110335305, 15973.459216447885, 15990.258248979511, 15972.189866714049, 15977.07523168347, 16023.284833455324, 16036.806148830627, 16066.515827497053, 16092.405151932084  …  16150.885025889558, 16215.38347963491, 16164.829339143049, 16076.021059833673, 16035.704535335255, 16125.170455085821, 16183.668881897649, 16248.379338278746, 16310.762284521248, 16362.697521241127], [15944.236265986641, 15924.711562080423, 15941.290468985135, 15941.978708553008, 15907.922263528695, 15896.756614553478, 15926.672389592883, 15924.053293743766, 15937.481660753365, 15947.080954561528  …  15972.800386779101, 16020.431581933462, 15954.39575244808, 15850.758609298293, 15795.078195825687, 15867.200070544724, 15908.719219356855, 15956.238945969406, 16001.363418699515, 16036.141574102996], [3173.2320350842083, 3156.887741376909, 3166.861644310096, 3175.545149426997, 3180.77702003899, 3181.459687413094, 3191.6688342397815, 3196.5345416672644, 3199.7293752926553, 3205.729593873711  …  3193.7430173964253, 3211.328453620568, 3230.206599953345, 3226.955850734627, 3225.2613420607227, 3230.428148560802, 3238.437755177934, 3251.905901189837, 3235.192196792244, 3219.6127978460913], [3173.2320350842083, 3153.7073311779973, 3160.4839417032385, 3165.9571954345856, 3167.978467238728, 3165.4661192009903, 3172.424657450784, 3174.060091791656, 3174.031556413992, 3176.779907619959  …  3158.5278219595875, 3172.7197721199263, 3188.1558027359597, 3181.738692832155, 3176.864165061632, 3178.747777550912, 3183.4188732146795, 3193.437727475518, 3173.8238328284856, 3155.3578847882754], [34195.564496956766, 32445.60582113092, 31569.486127220047, 31663.282818213836, 32386.873440269017, 31577.478136933336, 32926.44046909819, 33557.73078257273, 33074.53611585945, 33470.32418039134  …  34703.80374837506, 33790.696424317626, 32673.515650024405, 32983.91268658677, 32635.2838123753, 33439.90945677428, 34289.286043446926, 34273.884267044305, 35303.46685911829, 34041.349961692365], [34195.564496956766, 32412.918458095835, 31505.90873844069, 31567.681564059287, 32256.557763580826, 31418.734478307917, 32727.91039773802, 33321.79041384494, 32808.906326926626, 33168.06681417884  …  34321.148905845854, 33384.44267146331, 32248.17215001482, 32521.7313438048, 32145.56982036932, 32904.93797689995, 33706.734108208315, 33657.651362378536, 34633.79536153588, 33361.97510530514], [33097.63671130043, 31276.9769528038, 30656.855654891737, 30743.33089496253, 31613.55204687786, 30680.90563181024, 32055.77648597834, 32416.470003978426, 32042.801791336045, 32487.83374619409  …  33584.72222271407, 33365.39173025131, 32730.380412191567, 32751.0890730332, 31323.54643117396, 32251.626889252995, 33051.35920284501, 32958.64014550006, 33982.179478730635, 32975.40844643821], [33097.63671130043, 31245.466926271, 30595.11620107643, 30650.507260492253, 31486.347998141737, 30526.669147540844, 31862.49608571035, 32188.553702511344, 31785.45811622499, 32194.448865630922  …  33214.40671820336, 32964.25126733636, 32304.29664727673, 32292.17013066339, 30853.51592508784, 31735.665547084853, 32489.838813021594, 32366.054887510363, 33337.57148276669, 32317.30694920559], [29576.147776884885, 29605.974349916614, 29647.946625760807, 29646.370018339087, 29607.38381413984, 29604.66953419051, 29662.65296281532, 29701.923364365637, 29776.759513790847, 29812.4613818737  …  29978.94865935484, 30090.387797416133, 29951.51045104684, 29763.1118978792, 29673.296103457767, 29839.477700973, 29977.384166155676, 30091.016636680022, 30255.734134078397, 30435.187746988162], [34346.71094688275, 34381.34847608993, 34335.23729675033, 34331.73152480753, 34215.8908945634, 34348.67705124998, 34485.48292231697, 34485.570667096785, 34568.880152820784, 34597.146828785066  …  34865.22707007903, 34965.23539366224, 34699.40803996705, 34459.45623113101, 34384.81908065894, 34609.58643695744, 34687.77860832839, 34902.268119275155, 35129.79415885786, 35295.98944278867], [28335.32931213966, 28363.90456052843, 28325.86378702964, 28322.971597362743, 28227.40546263825, 28336.95130775938, 28449.813334476064, 28449.88572211269, 28518.61433244354, 28541.93375808654  …  28763.09443722376, 28845.599244949535, 28626.297151693016, 28428.341850152567, 28366.767737836068, 28552.19617868988, 28616.703110047984, 28793.652540113515, 28981.356837873875, 29118.464525057858], [978.0617717704337, 979.0481149238881, 969.2949513561433, 963.3129141948, 959.380317965182, 969.5896198142508, 972.0305351805953, 978.5218000530643, 982.8162156790753, 980.3706253076843  …  992.423003476314, 984.7611815696316, 988.492239692, 986.5170829420833, 986.6327091345499, 987.0101726000772, 974.3398702641656, 990.2366859612497, 995.4723155820324, 995.0192721812051], [0.0019383188997990075, 0.007548013813041932, 0.00503922324114825, 0.006833184484755117, 0.007020256801297586, 0.004406208487818919, 0.0023282363027250508, 0.0026495089508857816, 0.001967308346979557, -0.0019281633798967635  …  0.002689311320487997, 0.0029852543645481067, -0.0015522592718469896, -0.001017205553835776, -0.003086003763105194, -0.0018580434881358965, 0.009374364043623906, 0.005899116191181886, 0.005168740628482382, 0.004000606837259779], [2.3548476e6, 2.3369532414702815e6, 2.3005737958154287e6, 2.30947516707637e6, 2.321976434557536e6, 2.302243297889956e6, 2.3255410798119716e6, 2.3281676821045885e6, 2.325676296094502e6, 2.3355228179013007e6  …  2.3746966381750433e6, 2.3462975803235536e6, 2.3137453979004356e6, 2.3161341335836947e6, 2.289699491406356e6, 2.3042768009843198e6, 2.324355768850441e6, 2.319158070443926e6, 2.3363002919235313e6, 2.3312020075405287e6], [0.0016459319014481277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0005503549860450353, 0.0, 0.0, 7.820497934853338e-5, 0.0, 0.0005835673469927319, 0.0016125742889080293, 0.0014086121005144885, 0.00214997492762631, 0.0018679701451337872], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613048 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 532.8943195089503 259.8531617665034 … 139.80073380499877 518.0461697497497; 543.8474130557854 261.1090578696738 … 140.33800322642148 519.9010975964889], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 522.785846637921 254.92400688530915 … 137.14885354791477 508.21935144610916; 532.993664348488 255.89801515570286 … 137.53722972904515 509.5252536915717]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72491.75827011914, 72336.50077037541, 72360.24254600618, 72513.8607985455, 72453.50911632985, 72664.3445271346, 72759.44774519198, 72954.77862545478, 73320.497230973  …  73511.37423007227, 73854.28446874503, 73919.71235537317, 74058.55394947127, 74246.77526987469, 74378.09147010467, 74404.07807431492, 74616.0163005964, 74685.20461794158, 74814.85699379143], [72422.0, 72418.72636457594, 72190.82320648075, 72141.76457017372, 72222.08540205145, 72089.27689146674, 72226.21464431744, 72247.88481977637, 72368.86073442109, 72658.36858641646  …  72700.81514744049, 72966.36017582592, 72957.42627909919, 73020.8213361787, 73132.65336059335, 73188.19118896217, 73140.00277053274, 73274.4454386171, 73268.50089806759, 73321.75132133737], [64900.92049553801, 64966.37094093018, 64810.91643149177, 64830.60645094093, 64976.292733047885, 64919.94415594205, 65125.51388270325, 65200.6284135514, 65390.73634053886, 65731.44834085285  …  65904.8850484276, 66220.29465770305, 66261.57646522779, 66400.21889521036, 66559.80316317172, 66669.72068556582, 66678.07342090251, 66874.00190252192, 66931.5898668819, 67050.45474442841], [64900.92049553801, 64900.920495538, 64680.394546703756, 64634.86277774377, 64714.84639208462, 64593.584039140245, 64732.839401821075, 64742.210637663644, 64865.56714598222, 65137.85341940049  …  65178.19746129837, 65424.151160629175, 65398.98392539336, 65469.79737058353, 65561.02934825521, 65603.1388760644, 65545.2577460553, 65671.62985393997, 65661.9644728489, 65712.30590150759], [40512.94792630534, 40552.47911948688, 40568.64771261768, 40577.79295981063, 40637.23592324948, 40645.132854150295, 40631.3400715896, 40772.51277403984, 40777.58727828537, 40921.49689590613  …  41019.815638327615, 41189.91548294905, 41391.02948247851, 41375.41935120453, 41574.178256193845, 41721.220766788516, 41796.192296809044, 41887.365569583366, 41966.25889486075, 42028.01419824204], [40512.94792630534, 40511.62447758995, 40486.94702615467, 40455.27603950088, 40473.72310661881, 40440.805039667874, 40386.35328501466, 40485.84614094124, 40450.092378160996, 40551.95091222905  …  40567.518500887774, 40694.70350108941, 40852.20147456969, 40795.653480017085, 40950.33024815266, 41053.76491602948, 41086.103067267686, 41134.244833321594, 41170.2008885972, 41189.24675387496], [14866.888022051655, 14829.407583930104, 14846.240442846678, 14835.614459211643, 14644.608664634796, 14878.43001681913, 14724.63083100084, 14747.653542064143, 14896.505786533658, 14818.227462085744  …  14810.601607395138, 14541.624813190498, 14547.457276967269, 14369.498414578895, 14341.491639254253, 14415.564015228705, 14503.881008103932, 14406.143403067705, 14415.707219270033, 14404.081939251928], [14866.888022051655, 14814.467680142714, 14816.341787013542, 14790.821145877784, 14585.682875102, 14803.634417080897, 14635.848625333165, 14643.964563893054, 14776.868260128047, 14684.409863532193  …  14647.295346590598, 14366.795931927536, 14358.078623604591, 14168.148315957782, 14126.288083423155, 14184.943904716147, 14257.46981310158, 14147.125792891477, 14142.255654845345, 14116.614752730764], [15944.236265986641, 16487.671539168437, 15996.867006005323, 15719.411387754966, 16143.454397251258, 15765.488996066111, 16085.161036712674, 15900.080901854157, 15864.616328782564, 16269.651293098921  …  16104.345807356454, 16524.687857319634, 16307.83358902956, 16492.208017833298, 16446.537343726344, 16650.314370494965, 16311.85007067206, 16468.743548964507, 16486.591706920834, 16513.604256650528], [15944.236265986641, 16471.061015445266, 15964.651117891273, 15671.949617859866, 16078.497673727325, 15686.234047573955, 15988.175510097459, 15788.289345533105, 15737.203666904132, 16122.726455366688  …  15926.774324021877, 16326.017301007785, 16095.538374439528, 16261.11381989654, 16199.746186536593, 16383.942736604273, 16034.7226958427, 16172.64108230785, 16173.857532612528, 16184.036612214464], [15944.236265986641, 15959.893009134286, 15935.230714236495, 15937.08220013085, 15966.213890937468, 15965.552588201299, 16012.417715709757, 16047.373981359347, 16072.549169063323, 16121.149550756754  …  16202.33703294148, 16266.828186561557, 16307.754157715124, 16335.22010984446, 16392.92894856622, 16425.56732388709, 16446.999657672142, 16477.086474231906, 16495.863403102372, 16513.777000613372], [15944.236265986641, 15943.814196500392, 15903.138954670783, 15888.963214659732, 15901.970333399111, 15885.291896741463, 15915.870795166258, 15934.54682511306, 15943.466547059601, 15975.56577399771  …  16023.685068133822, 16071.257787098793, 16095.459977161148, 16106.325677678495, 16146.942220758781, 16162.791191960201, 16167.576182149582, 16180.83400458665, 16182.953353980076, 16184.205908666998], [3173.2320350842083, 3176.0096401758933, 3177.490554150312, 3178.3111109887654, 3182.9670623697325, 3185.1495609728818, 3188.8233270014603, 3191.434686404795, 3182.62014979547, 3166.047055656287  …  3195.3002200973106, 3197.219010953297, 3217.381760748063, 3219.939072261595, 3240.698441602632, 3250.224172964791, 3271.64958079466, 3271.81769898493, 3273.0815718290974, 3267.1736670397595], [3173.2320350842083, 3172.809965597965, 3171.0914461163748, 3168.714805702021, 3170.159697454617, 3169.1374433368405, 3169.596307206867, 3168.996092998106, 3157.059739343079, 3137.4557268364606  …  3160.0678544632583, 3158.7799623587684, 3175.4979171592017, 3174.8202357477135, 3192.069620727384, 3198.2271052699107, 3216.0664522249976, 3212.991517847313, 3210.994484272969, 3201.96956545932], [34195.564496956766, 33348.546945095346, 33616.74332699021, 34540.30960407271, 34219.31621001692, 33455.72886688408, 33015.53099756014, 33790.702204972426, 33877.04630609921, 33117.55924503684  …  33394.66124141755, 33650.85431601955, 34092.65562046183, 34406.76658182754, 34927.182891243654, 34608.79044300644, 35521.41355706674, 35332.314538404346, 35847.06033728375, 36050.290905360016], [34195.564496956766, 33314.949912982695, 33549.04299283262, 34436.02171529012, 34081.62729861451, 33287.54302318624, 32816.463754591874, 33553.12384219604, 33604.9713591238, 32818.48756055468  …  33026.44140789998, 33246.28183603949, 33648.837770507875, 33924.64774617939, 34403.077439563516, 34055.11921181216, 34917.92860308245, 34697.051413661124, 35167.07741447904, 35330.822927911715], [33097.63671130043, 32726.346917561434, 32691.99771808465, 33312.88586484398, 33130.75439660677, 32291.271617590035, 31792.318409728534, 32451.50167773889, 32460.977074245853, 31806.437665154837  …  31818.050064424646, 32052.798000733987, 32419.263613563886, 32585.338415972972, 33042.61486054322, 33017.79812541417, 33729.25885833708, 33478.55075942369, 34030.4135403938, 34181.134305713334], [33097.63671130043, 32693.376721584686, 32626.159717411432, 33212.30394835499, 32997.44555201118, 32128.939636042433, 31600.62653071981, 32223.339072787207, 32200.274929895837, 31519.206205266353  …  31467.214431959987, 31667.43839423854, 31997.229964022474, 32128.74202587199, 32546.788597082425, 32489.57958020012, 33156.22140876189, 32876.617683565055, 33384.89059246652, 33498.96972539466], [29576.147776884885, 29605.974349916618, 29544.105412748453, 29546.826198967683, 29613.195820348268, 29625.713191651113, 29690.582596662967, 29764.906313670675, 29852.85875259294, 29991.64442376122  …  30109.826918270184, 30256.501047037626, 30333.326564432296, 30399.375411459652, 30507.181020217016, 30568.56389975373, 30560.44933762745, 30637.23120101684, 30685.766697261497, 30747.441707261645], [34346.71094688275, 34381.34847608993, 34291.03746111181, 34305.87580155235, 34381.730258627365, 34316.58424832595, 34457.100344028375, 34461.14161419147, 34560.91406622173, 34757.984980046815  …  34815.545155230975, 34980.6692459732, 34947.479627814726, 35017.59603899014, 35067.787518632475, 35114.62936146133, 35129.45321391767, 35241.89584429434, 35250.08059569296, 35308.5857722673], [28335.32931213966, 28363.90456052843, 28289.399832728548, 28301.641158061815, 28364.21952326069, 28310.47540615679, 28426.398291802, 28429.732256474414, 28512.04247502574, 28674.621921125072  …  28722.107880454045, 28858.331855313947, 28830.951103727024, 28888.795699208476, 28930.202636441234, 28968.84619227386, 28981.075565318482, 29073.83842011914, 29080.590671494145, 29128.856237511885], [978.0617717704337, 979.0481149238881, 975.7735576315177, 977.9044504208111, 981.3666540723914, 977.6467159650196, 977.8309420120631, 974.580485689142, 976.963521724326, 981.8189370448438  …  979.5129749265425, 983.1243646921806, 980.7702729808377, 983.2474447604892, 984.8346243222456, 986.527424350764, 988.1708693573432, 994.8748572107069, 995.7425739274851, 994.4272648994006], [0.0019383188997990075, 0.0035153096100279946, 0.005857523232646544, 0.008300064404841434, 0.005882456567505079, 0.005449083536696486, 0.005885550985521348, -0.00020689187145184196, 0.005403742907272413, 0.006316764923130602  …  -0.0008637921427251394, 0.001424642900224038, 0.006885020974451983, 0.002083238625984807, 0.002135808014600782, 0.002232398195995744, 0.002395884754392563, 0.005288981463918319, 0.008724918628971734, 0.004882994648282013], [2.3548476e6, 2.339536270689172e6, 2.343651707496965e6, 2.349269873283774e6, 2.3309259244286586e6, 2.3082319479054715e6, 2.3033443063920005e6, 2.318000907356552e6, 2.315399426148619e6, 2.313755663887807e6  …  2.3247783373688105e6, 2.343728896050612e6, 2.334477073435562e6, 2.327657014441327e6, 2.3288730100461063e6, 2.350268046492736e6, 2.3606359932130957e6, 2.345477847314581e6, 2.3614710929762777e6, 2.3713180952900015e6], [0.0016459319014481277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0004075796769870933, 0.001211884377885497, 0.0008918886408452567, 0.0005863119092196513, 0.000643302382133939, 0.0015505249603103193, 0.001924619469054504, 0.0012719155636040764, 0.002048663910049605, 0.0024191970666451587], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 544.1718062067785 270.2111321035931 … 141.90790908239802 521.3359388672304; 549.9500462648655 270.12007766383607 … 142.1012188818908 521.8217697067627], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 533.8494106794794 265.08549687288286 … 139.21605781540325 511.44671692996087; 538.9745052207575 264.72919894790084 … 139.26525628701768 511.4075942920616]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72495.70082146855, 72536.77682469029, 72668.46411596639, 72451.44028883152, 72446.54585415887, 72368.63373501747, 72553.91901547677, 72638.76984307253, 72819.99172679384  …  73593.8317333737, 73850.15506131321, 74274.30223413535, 74732.51555790525, 75084.06442648263, 75336.35482180676, 75800.33317750462, 76138.75838091082, 76530.51506640104, 76594.58637087465], [72422.0, 72422.66494399744, 72390.69592738322, 72449.05552378525, 72159.91605492582, 72082.34863442529, 71932.28684130644, 72043.80113783844, 72055.38989681508, 72162.3829510814  …  72782.36344888105, 72962.28041481871, 73307.40011036531, 73685.33917473216, 73957.37844030489, 74131.1242490547, 74512.53643748669, 74769.80912878751, 75078.80765081475, 75065.96203093743], [64900.92049553801, 64966.37094093018, 65002.11639029259, 65123.620623752024, 64911.73181861408, 64908.66775797104, 64826.87034556706, 64995.9612478021, 65065.28764867365, 65230.029710647155  …  65962.15724415983, 66206.375965216, 66595.80018869897, 67018.73770795116, 67360.458451268, 67588.46205108905, 68016.21400894737, 68315.04265638406, 68655.91997150553, 68700.35598280276], [64900.92049553801, 64900.920495538, 64871.20945032608, 64926.99225004655, 64650.54525262623, 64582.3643289345, 64435.996536785926, 64538.98246213897, 64542.73221314366, 64640.96290412181  …  65234.83815613796, 65410.39980772527, 65728.85672777439, 66079.64929598058, 66349.67027485193, 66507.1822224865, 66860.66422443694, 67086.76118001217, 67353.58575802144, 67329.27949693774], [40512.94792630534, 40551.58339360063, 40562.48067013443, 40655.120358466884, 40674.78836350525, 40684.55836308218, 40710.29725537144, 40771.858128894746, 40835.255270951944, 40884.98765769376  …  41014.66072280385, 41061.57418585912, 41206.131224636825, 41389.12473087291, 41374.583527458795, 41538.828504042795, 41694.153702371164, 41946.8893927211, 42201.748881654385, 42339.52811034068], [40512.94792630534, 40510.72965410378, 40480.792403400264, 40532.36996279913, 40511.124446408765, 40480.0323519767, 40464.83439622056, 40485.19609852749, 40507.2972248996, 40515.77137462322  …  40562.42042505221, 40567.905206633455, 40669.71022039966, 40809.16681543523, 40753.73057017157, 40874.29056365807, 40985.79804000243, 41192.698438151245, 41401.223865599626, 41494.543676355504], [14866.888022051655, 14882.379506515175, 14862.836253679823, 14699.87367974009, 14671.017218164172, 14625.276367504406, 14787.809068916033, 14983.626698788046, 15011.329005433525, 15097.047091484998  …  15401.323850674207, 15484.456464341694, 15712.588474499622, 15893.082724548256, 15855.60937386343, 15999.872939637793, 16032.281190451808, 16189.778437996414, 16249.116449957868, 16121.592912239848], [14866.888022051655, 14867.386236103233, 14832.904175753174, 14655.490209846408, 14611.985168033847, 14551.753400631665, 14698.645929873745, 14878.278621735466, 14890.769305326223, 14960.71158224802  …  15231.504104240805, 15298.292247109894, 15508.0421548583, 15670.383665635014, 15617.685481219985, 15743.907064030844, 15759.90350309037, 15898.691670152648, 15940.886944032507, 15799.848772192114], [15944.236265986641, 16125.60948740389, 15977.56023595764, 16529.30715029342, 16020.229823336904, 16305.631175028724, 15753.882361678605, 16192.510881561906, 15824.432604174463, 15671.09728917761  …  16064.32174121828, 16209.761670975226, 16193.419605831486, 16432.68142717305, 16597.86515155858, 16353.856404530809, 16602.321285785307, 16749.76182201911, 16940.47009580197, 16983.596602187237], [15944.236265986641, 16109.363723512683, 15945.383229503574, 16479.40005433794, 15955.768920867253, 16223.660868923305, 15658.894280826054, 16078.663285227733, 15697.342667737996, 15529.577757823221  …  15887.191575580027, 16014.877362317675, 15982.613831330616, 16202.421335240104, 16348.803220647287, 16092.22750348087, 16320.259000142078, 16448.606741386157, 16619.126301888427, 16644.64915986969], [15944.236265986641, 15955.41207730671, 15956.854318931759, 15985.573223871235, 15955.696602981649, 15959.972249266615, 15958.026356318449, 15987.421897915208, 15998.41147134586, 16030.442298528806  …  16144.54458718399, 16186.08570502664, 16259.193779323554, 16345.329735713613, 16429.402194419352, 16512.72383468249, 16608.97606778319, 16687.0598564225, 16766.51017333852, 16822.63090667841], [15944.236265986641, 15939.337778992756, 15924.719011862075, 15937.307828986068, 15891.495364054234, 15879.739610820217, 15861.807388639194, 15875.016257556457, 15869.924267549282, 15885.677663377312  …  15966.529859705977, 15991.486044246667, 16047.53175728988, 16116.293644172514, 16182.86816146415, 16248.553373395316, 16326.800721864325, 16387.032136029396, 16448.46622536533, 16486.895911763586], [3173.2320350842083, 3171.5287083483163, 3172.6519063419632, 3184.6975743898006, 3185.908408593956, 3185.7135635019085, 3188.6957904217224, 3193.511530680562, 3198.889350936334, 3202.9633638059026  …  3187.281367076723, 3179.9347419131623, 3187.198509380674, 3187.1982905526347, 3199.5800612113044, 3217.742833182106, 3231.3903032415596, 3249.667878198446, 3261.847960013591, 3302.309454333915], [3173.2320350842083, 3168.3335480903293, 3166.2625427996413, 3175.0819863927272, 3173.089208528272, 3169.6986105594933, 3169.4695396093175, 3171.058335231582, 3173.19827850126, 3174.0386582906012  …  3152.1374197890236, 3141.703496054469, 3145.7075910562926, 3142.538228550969, 3151.568248796034, 3166.2654017749473, 3176.4911527524027, 3191.2399433843148, 3199.9739628510406, 3236.404135837162], [34195.564496956766, 34689.421646694995, 35698.288986962354, 34555.47573453492, 34459.34973368597, 33531.798043623254, 34056.739795854846, 33811.22180350136, 34123.50501695059, 35012.18415485641  …  35803.01748500329, 35707.621111339344, 35516.3773489641, 34535.7428293939, 33977.47422918945, 34321.28389834303, 35278.23809793543, 34220.26237739695, 34354.5846346039, 34772.14990154805], [34195.564496956766, 34654.473748816505, 35626.396654330274, 34451.14205450888, 34320.69499484352, 33363.229791318474, 33851.39458132085, 33573.4991698959, 33849.450699044166, 34696.00285613454  …  35408.24237282439, 35278.3208418265, 35054.02550378514, 34051.81673649716, 33467.6197833473, 33772.212195202825, 34678.884531642914, 33604.99357626104, 33702.91248487159, 34078.19022097638], [33097.63671130043, 33753.29321274606, 34564.38932204424, 33771.31280706907, 33373.94484986067, 32700.718095079632, 32940.09474680333, 33205.29849726953, 33155.75205443805, 33845.324466419166  …  34689.49206632609, 34613.25837120239, 34354.2144197969, 33518.11615408292, 32721.46785558795, 32877.48692474803, 33806.66109903904, 32967.933649222956, 33215.40499561714, 33622.2811554415], [33097.63671130043, 33719.28841853888, 34494.78053560429, 33669.34675770715, 33239.65747522762, 32536.327778424748, 32741.48234693477, 32971.836037548266, 32889.47000019302, 33539.68061974782  …  34306.995028816615, 34197.11524306899, 33906.99160000865, 33048.44937807545, 32230.460615081516, 32351.51307731823, 33232.30863739111, 32375.181297163756, 32585.341945577507, 32951.269798456575], [29576.147776884885, 29605.974349916614, 29614.387921099973, 29669.355528444605, 29604.846329336015, 29610.159621434934, 29593.2172447527, 29640.948285135, 29640.704843929485, 29702.173524581503  …  29991.288709732562, 30105.97825118616, 30241.742634685575, 30427.386085887323, 30555.98597114251, 30723.925467795856, 30901.55155254288, 31048.085898427194, 31161.854111348013, 31212.648555204152], [34346.71094688275, 34381.34847608993, 34404.00577924586, 34464.031805556144, 34326.118604576564, 34316.739074577854, 34259.77396722172, 34376.62807864182, 34442.20820258693, 34540.241201943616  …  34969.40395370693, 35094.67687095893, 35340.97344901315, 35573.97919763123, 35783.82347575848, 35847.26344807976, 36090.003046286954, 36238.76886816143, 36462.57756225617, 36454.55706794546], [28335.32931213966, 28363.90456052843, 28382.596369104835, 28432.11660483953, 28318.34105374554, 28310.603134626657, 28263.608094003004, 28360.0103298295, 28414.112581750785, 28494.98778766277  …  28849.038221153292, 28952.385798442927, 29155.575403945837, 29347.800348829947, 29520.91755746746, 29573.254228366062, 29773.50939873548, 29896.238138605895, 30080.87570288103, 30074.258960221403], [978.0617717704337, 979.0481149238881, 983.7226899467456, 990.2332897512016, 980.7668847016432, 981.769061958241, 973.8791335928266, 978.3848840251939, 982.3746021573284, 987.6149841220667  …  1001.4645807204546, 1005.7208430708693, 1013.0841050002933, 1017.3724244326396, 1020.6490043669746, 1017.2731352134556, 1024.659410117579, 1028.1878897954389, 1031.488297901422, 1033.1503596531738], [0.0019383188997990075, -0.0004366277934220175, -0.00014509215048441604, 0.002334645826009618, 0.0035399665779316525, 0.009324964276326897, 0.007957717985688673, 0.004574233537299355, -0.0005007908810747974, 0.0013091363471040562  …  0.0010449388168884965, 0.003562782343170978, 0.0035742087823806834, 0.004469524773963229, 0.004110185976023972, 0.007931610289722668, 0.005421631962795104, 0.007697922080368569, 0.004833131601683638, 0.0008717061865006759], [2.3548476e6, 2.372352629767227e6, 2.397612560481695e6, 2.371829459722347e6, 2.3639744814743204e6, 2.347697302873628e6, 2.347178797699433e6, 2.3495979935473646e6, 2.3657897398951254e6, 2.395807175973822e6  …  2.40549955734484e6, 2.412777630291093e6, 2.416497712701573e6, 2.386824847429773e6, 2.3833777538402937e6, 2.3782530136439484e6, 2.3878546962133953e6, 2.379270068831829e6, 2.379478996362261e6, 2.387579120621238e6], [0.0016459319014481277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  1.755799080989366e-5, 0.00039561449253647154, 0.0006000008286376578, 0.0, 0.0, 0.0, 0.0005215227374776628, 0.0003059490815888013, 0.0004028467218356235, 0.0007278594582020357], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 550.6814991794881 273.05263229695674 … 143.12727366032138 528.2294233789979; 550.1118772343933 272.63473861319557 … 143.58828679785296 530.1413215876933], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 540.235621279785 267.8730966462826 … 140.41229226544817 518.2094389272422; 539.1331064743131 267.1936739491917 … 140.7226462803066 519.5611100325125])])

Finally, we can plot baseline and shocked simulations

Te = T + 1
+data_vec_shocked = Bit.ensemblerun(model, 4; shock = custom_shock)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72481.32481902261, 72825.1574594632, 73214.42695328117, 73454.41504865991, 73870.1187383253, 74301.62598769808, 74762.22697785043, 75146.83922414474, 75096.57749135433  …  75152.98214530865, 75728.14404726577, 76038.91973054965, 76400.54889579136, 76965.03858784436, 77409.3948003089, 77968.5243183964, 78195.5261686041, 78699.74354167163, 78859.67191760914], [72422.0, 72408.30342467174, 72678.49579604356, 72993.36993025776, 73158.85512619784, 73498.76505198087, 73853.62411141391, 74236.58275254945, 74543.31635168, 74418.40976277839  …  74324.32218754392, 74817.69099446211, 75049.04583385741, 75329.9994854333, 75810.12734183142, 76170.99974586008, 76643.89146742887, 76789.5969238387, 77206.88802900442, 77285.84249121908], [64900.92049553801, 64966.37094093018, 65292.71124866797, 65641.35620113813, 65874.01524608019, 66248.57571022406, 66654.63562295747, 67080.69632064656, 67425.20032139048, 67355.67901064474  …  67436.30484350729, 67988.8583609149, 68284.4374161523, 68623.75861152056, 69142.00276123449, 69539.92658982975, 70089.42539347167, 70300.06607971447, 70739.6905762468, 70876.38206512341], [64900.92049553801, 64900.920495538, 65161.219083392, 65443.16462342758, 65608.95672202144, 65915.53640792909, 66252.74129796562, 66609.06001344344, 66883.6918428622, 66747.41629925024  …  66692.73134943908, 67171.45203952541, 67395.51129268704, 67662.1801231471, 68104.48133558527, 68427.42724271903, 68898.65314026737, 69036.09455022696, 69397.82931611188, 69461.87788297697], [40512.94792630534, 40462.36056699563, 40481.41051854924, 40677.05107088713, 40639.77183467526, 40844.14897233533, 40884.7338482155, 41053.4210223794, 41312.33586276369, 41478.43667809883  …  41331.470798711875, 41394.70260847806, 41501.00203305017, 41610.03453028082, 41844.15512588059, 42075.90624051513, 42067.12117945045, 42176.95099229562, 42540.35425065156, 42659.602216417334], [40512.94792630534, 40421.59671513842, 40399.88551796786, 40554.23445960869, 40476.24881424996, 40638.82068065889, 40638.21922310604, 40764.77935717516, 40980.54626435149, 41103.86118975381  …  40875.737255361666, 40897.02854246284, 40960.742403577984, 41026.981154681, 41216.25593656711, 41402.776133580126, 41352.429050196115, 41418.62360759012, 41733.4062290195, 41808.22995409754], [14866.888022051655, 14913.322757669288, 15264.273639392142, 15514.572868043386, 15684.908519913202, 15875.977607124252, 16134.465089623098, 16230.444149050005, 16036.830421883942, 15853.513389182728  …  15932.734315793956, 15771.273994015908, 15717.81391953149, 15727.017990801318, 15901.200231016002, 16185.75198413959, 15932.45770615277, 16185.018164275174, 16112.79168154119, 16294.180078343174], [14866.888022051655, 14898.298313443245, 15233.533111792305, 15467.729569059764, 15621.796856129635, 15796.167219522044, 16037.182284073333, 16116.32984847485, 15908.03466598293, 15710.34652959679  …  15757.05507368916, 15581.6614697014, 15513.199575099126, 15506.645885102082, 15662.59221744445, 15926.812416643923, 15661.775952730883, 15894.01698455103, 15807.148120282178, 15968.991557232051], [15944.236265986641, 15967.1237400336, 16012.991695035622, 16134.600512520909, 16006.425497234542, 16193.838399554648, 16257.93778565387, 16332.82640963477, 16785.498894225002, 16772.207644074133  …  16195.422837394213, 16710.72066712546, 16681.577127249853, 16714.560260770362, 16719.663103347044, 16674.04726162057, 17279.070033845175, 16944.950131409143, 17301.150156480515, 17091.324272190785], [15944.236265986641, 15951.037642791514, 15980.743333614299, 16085.885158110721, 15942.020139493652, 16112.43008874575, 16159.910501113816, 16217.99227170023, 16650.690396449325, 16620.744417104914  …  16016.847110639035, 16509.813503252037, 16464.416523016673, 16480.350390682026, 16468.77351371131, 16407.29594907376, 16985.510241594493, 16640.285630661714, 16972.964622141262, 16750.226871942254], [15944.236265986641, 15951.762054221614, 15994.597185390685, 16052.724371589846, 16119.227502883516, 16184.268161629117, 16258.944621850087, 16341.397159394424, 16423.615960217987, 16485.732623274325  …  16507.721719038618, 16569.65509267987, 16640.21170423548, 16727.765262264118, 16834.524787943912, 16928.500389365112, 17027.92899798896, 17125.358947194578, 17218.477217979824, 17282.731226812233], [15944.236265986641, 15935.691433127631, 15962.385868439656, 16004.256226598949, 16054.36826157387, 16102.907961520368, 16160.911266588173, 16226.502761549233, 16291.71383388897, 16336.856439824789  …  16325.702488503734, 16370.443910987382, 16423.589594665464, 16493.37035938783, 16581.911622854816, 16657.678337138695, 16738.635923227543, 16817.4507566537, 16891.859906692327, 16937.813852548166], [3173.2320350842083, 3167.8786852632193, 3153.4260455074555, 3143.8276271352865, 3165.293745906855, 3158.378729624925, 3167.2553199100043, 3173.959336342645, 3188.0656482335157, 3244.4259598698327  …  3241.267865489002, 3206.251476606033, 3208.8945519217414, 3215.3894429180973, 3216.4621800766595, 3236.750593551108, 3241.5858864683055, 3270.5190761455733, 3276.684302560284, 3308.889953193769], [3173.2320350842083, 3164.6872022252037, 3147.0754006830743, 3134.335438162799, 3152.5574934502783, 3142.5011920745565, 3148.1583444787293, 3151.6436100202754, 3162.461503634843, 3215.1268219165645  …  3205.5286464207925, 3167.703833828595, 3167.1211947325355, 3170.3343572945287, 3168.1970403157534, 3184.969076102504, 3186.513519869268, 3211.7162438095893, 3214.5288748013954, 3242.8533054321156], [34195.564496956766, 33828.29469037459, 33403.220484758036, 33297.015114863134, 33480.31293588873, 34096.77365404515, 35000.15939311169, 35036.78506077767, 34263.419975132114, 34690.748447566424  …  35897.98391999843, 36152.256966459485, 36047.39911550154, 36630.440994411096, 37898.471254354925, 38029.51906499942, 36518.009172390375, 35841.798296349276, 36614.356654959985, 37570.524318036645], [34195.564496956766, 33794.21433584219, 33335.95016155148, 33196.481117082214, 33345.59756597147, 33925.36520357642, 34789.125827292344, 34790.445639324054, 33988.24196555305, 34377.46990860784  …  35502.161678620585, 35717.610995203264, 35578.13443427608, 36117.16330760793, 37329.77965799596, 37421.12303691195, 35897.59272838864, 35197.374825098894, 35919.81888755063, 36820.71652276195], [33097.63671130043, 32689.776936050384, 32336.738878271954, 32408.812613033664, 32357.003739052005, 33140.61989473415, 33975.67012890618, 33891.249663991635, 33251.245929860335, 33698.328667567956  …  34204.629726590145, 34300.810188813346, 33908.872464783366, 34281.504880472545, 35398.4511267542, 35555.82975096593, 33828.13377344252, 32953.19141572525, 33868.90920196131, 34755.95896737906], [33097.63671130043, 32656.843582543723, 32271.616328882457, 32310.960373603757, 32226.80824964702, 32974.01814052224, 33770.813724171756, 33652.964364125044, 32984.196940657166, 33394.01228228505  …  33827.47893076688, 33888.42351615764, 33467.44710211249, 33801.141252640045, 34867.27398388736, 34987.007790349824, 33253.41650548144, 32360.704124063246, 33226.44982998887, 34062.322414814975], [29576.147776884885, 29605.97434991662, 29701.678380763347, 29828.37312884912, 29914.978682405294, 30068.54999865593, 30206.634758960492, 30388.79751109023, 30542.79206222967, 30569.092401290873  …  30684.888446578072, 30884.531353511018, 31058.905137269303, 31243.595481729837, 31492.841205346915, 31654.421442848357, 31867.055538880133, 32026.26885583411, 32190.992782870013, 32281.111238676156], [34346.71094688275, 34381.34847608993, 34607.09975821034, 34824.86045802249, 34966.831803883455, 35181.93788689851, 35440.007349727544, 35672.79352772439, 35858.259856357916, 35766.90909574657  …  35732.17449222329, 36075.97736317412, 36192.69144282449, 36349.04730510498, 36612.29927470546, 36840.347141312755, 37166.22601702367, 37222.90470812311, 37490.04590205009, 37536.25750412125], [28335.32931213966, 28363.90456052843, 28550.1447199257, 28729.79281344947, 28846.916250511007, 29024.37433983729, 29237.276332868772, 29429.32013651145, 29582.326038773008, 29506.963542234695  …  29478.30820953396, 29761.93849896448, 29858.225211464294, 29987.215578386265, 30204.393032793323, 30392.52782710424, 30661.371189527472, 30708.129942636824, 30928.51592703182, 30966.639547216382], [978.0617717704337, 979.0481149238881, 983.933109694265, 988.122614266406, 992.2047597914104, 998.0878246695981, 1007.9935142694909, 1019.1052818319525, 1024.1484028029377, 1019.6775136072249  …  1019.2419047059457, 1028.349644229802, 1032.8408360585665, 1031.1158246857142, 1036.8622811820999, 1045.1580056686234, 1056.1438375678613, 1050.8925157573133, 1058.6518913267375, 1059.0133223260264], [0.0019383188997990075, 0.0029329271725921924, 0.001548708275527444, 0.001560563946073401, 0.004992861246601921, 0.004937252005935866, 0.002065675815566159, 0.0037600376003317226, 0.0032696210990321717, 0.004656678030112271  …  0.0042963122925996355, 0.005066900326568202, 0.0013536109463188062, 0.004594868116728268, 0.006907704385664015, 0.004759990823026028, 0.0034625540556900702, -0.004674058467229902, 0.00039492565459342543, 0.005486308210832069], [2.3548476e6, 2.3782944568170253e6, 2.3637553606310934e6, 2.373475838357839e6, 2.3959200420012e6, 2.4323451333756773e6, 2.437119281299929e6, 2.4165420806057528e6, 2.3948858839416327e6, 2.391836049301925e6  …  2.4528958545974395e6, 2.4564737020357517e6, 2.45354067037333e6, 2.4559651773566403e6, 2.467720694161577e6, 2.475989408850023e6, 2.4550097917452515e6, 2.426522175882475e6, 2.4405197295727017e6, 2.4485094972421224e6], [0.0016459319014481277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0013179346404780898, 0.001480109134130269, 0.0012841528810525772, 0.0013917221935937794, 0.0019180082274449378, 0.0022148239871978737, 0.0012968865679722735, 0.0, 0.0005764585043611877, 0.000981691947518874], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 569.1485529680867 289.4500003763421 … 146.6230335711624 533.7350984118685; 572.7081981603502 290.6697317181957 … 147.02030283098205 535.0581807884553], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 558.3523735069035 283.9594230344407 … 143.84174110310246 523.6106768050023; 561.2784649002208 284.86873653250746 … 144.08616839641437 524.3798417936468]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72460.23082049133, 72456.5195691909, 72459.18846950564, 72306.6853091019, 72459.31255271306, 72683.3103543831, 72735.74631070081, 72908.40377843488, 72983.42763520562  …  73463.2732174893, 73687.03398135482, 73275.1103618384, 72828.40453018848, 72660.29383239879, 73071.85411958906, 73294.92210570388, 73672.99997386169, 74086.30476273, 74457.24926653909], [72422.0, 72387.23067731364, 72310.60030095547, 72240.41174529542, 72015.74352855269, 72095.05115329973, 72245.06611705382, 72224.35002722047, 72322.85833528028, 72324.34293392561  …  72653.24451145633, 72801.12048268878, 72321.21570787056, 71807.90917179162, 71569.97812509365, 71902.85101609524, 72049.69061672688, 72348.38422807679, 72680.96157479905, 72971.280493727], [64900.92049553801, 64966.37094093018, 64952.478873867294, 64941.41445734151, 64782.65502666832, 64922.93620525475, 65120.16642031279, 65166.01583151557, 65328.45588229061, 65389.97883596644  …  65836.59873291015, 66040.38437264797, 65639.41073070586, 65209.08521195216, 65044.74789325129, 65436.07431053059, 65639.5026447482, 65983.52144191648, 66381.00060851834, 66726.19646195802], [64900.92049553801, 64900.920495538, 64821.67189826723, 64745.336220465644, 64521.98782941552, 64596.561047072784, 64727.52418197115, 64707.841412529, 64803.78687751515, 64799.467591643624  …  65110.66409175484, 65246.403874157186, 64784.91753818209, 64295.35424100228, 64068.70848348368, 64389.22836866806, 64524.331589703586, 64797.1599323362, 65121.81934266917, 65394.518952410894], [40512.94792630534, 40356.21956129799, 40469.00073977897, 40568.01673672712, 40629.355066351316, 40658.56799607799, 40755.087330152455, 40810.45319075306, 40868.14442223646, 40938.52540238949  …  41052.73136539022, 41198.21706844482, 41240.34748427872, 41198.84486727395, 41177.21091775259, 41243.17601591391, 41345.43540703388, 41499.18525323504, 41515.278774902086, 41686.80164999451], [40512.94792630534, 40315.56264131949, 40387.50073109408, 40445.529333861756, 40465.873960074045, 40454.17264157312, 40509.354409111715, 40523.51980314824, 40539.922235266786, 40568.8256409513  …  40600.07128899288, 40702.905279519444, 40703.48105311581, 40621.55321534793, 40559.31966685566, 40583.36792234022, 40643.00423424331, 40753.04386842404, 40727.77541097794, 40854.84390107802], [14866.888022051655, 14685.02916272764, 14755.704941530477, 14556.195153538554, 14894.283808875947, 14972.851778549972, 14976.411086171742, 14970.680964149327, 14983.823135182321, 15044.478020800221  …  15238.584976173042, 14916.51452126242, 14782.80357446938, 14796.752792096571, 14995.710939845652, 14878.644033946439, 15069.302143247443, 15248.307681218814, 15235.306645976778, 15378.478814929935], [14866.888022051655, 14670.234713147334, 14725.98861399822, 14512.245493600063, 14834.353396731663, 14897.58150962362, 14886.11077070194, 14865.423906999871, 14863.484341529616, 14908.617242216156  …  15070.559638757437, 14737.178471845928, 14590.361185359214, 14589.415865782024, 14770.69039124129, 14640.61557194798, 14813.284822994088, 14974.148240741568, 14946.308099220632, 15071.565256915814], [15944.236265986641, 16250.35322813877, 16319.183415553009, 16415.024655988596, 16009.725040483507, 15931.320272961766, 16081.147954939099, 15813.351377204222, 16024.701896492486, 16017.933777818285  …  16052.875350264774, 17146.99769758128, 17308.824065257522, 16599.983257264168, 15175.634593599061, 15761.751502207386, 15642.257714820367, 15610.262917863489, 16014.431961463313, 16326.027286360204], [15944.236265986641, 16233.98179102197, 16286.318418498853, 16365.462614266635, 15945.306406307824, 15851.231671335747, 15984.186625212484, 15702.169605738989, 15896.003547781991, 15873.282102209889  …  15875.871396063223, 16940.845327196446, 17083.497966657495, 16367.37887751995, 14947.914171715136, 15509.595091991998, 15376.50626430245, 15329.595644042955, 15710.6541858312, 16000.203179633336], [15944.236265986641, 15940.771110335305, 15973.459216447885, 15990.258248979511, 15972.189866714049, 15977.07523168347, 16023.284833455324, 16036.806148830627, 16066.515827497053, 16092.405151932084  …  16150.885025889558, 16215.38347963491, 16164.829339143049, 16076.021059833673, 16035.704535335255, 16125.170455085821, 16183.668881897649, 16248.379338278746, 16310.762284521248, 16362.697521241127], [15944.236265986641, 15924.711562080423, 15941.290468985135, 15941.978708553008, 15907.922263528695, 15896.756614553478, 15926.672389592883, 15924.053293743766, 15937.481660753365, 15947.080954561528  …  15972.800386779101, 16020.431581933462, 15954.39575244808, 15850.758609298293, 15795.078195825687, 15867.200070544724, 15908.719219356855, 15956.238945969406, 16001.363418699515, 16036.141574102996], [3173.2320350842083, 3156.887741376909, 3166.861644310096, 3175.545149426997, 3180.77702003899, 3181.459687413094, 3191.6688342397815, 3196.5345416672644, 3199.7293752926553, 3205.729593873711  …  3193.7430173964253, 3211.328453620568, 3230.206599953345, 3226.955850734627, 3225.2613420607227, 3230.428148560802, 3238.437755177934, 3251.905901189837, 3235.192196792244, 3219.6127978460913], [3173.2320350842083, 3153.7073311779973, 3160.4839417032385, 3165.9571954345856, 3167.978467238728, 3165.4661192009903, 3172.424657450784, 3174.060091791656, 3174.031556413992, 3176.779907619959  …  3158.5278219595875, 3172.7197721199263, 3188.1558027359597, 3181.738692832155, 3176.864165061632, 3178.747777550912, 3183.4188732146795, 3193.437727475518, 3173.8238328284856, 3155.3578847882754], [34195.564496956766, 32445.60582113092, 31569.486127220047, 31663.282818213836, 32386.873440269017, 31577.478136933336, 32926.44046909819, 33557.73078257273, 33074.53611585945, 33470.32418039134  …  34703.80374837506, 33790.696424317626, 32673.515650024405, 32983.91268658677, 32635.2838123753, 33439.90945677428, 34289.286043446926, 34273.884267044305, 35303.46685911829, 34041.349961692365], [34195.564496956766, 32412.918458095835, 31505.90873844069, 31567.681564059287, 32256.557763580826, 31418.734478307917, 32727.91039773802, 33321.79041384494, 32808.906326926626, 33168.06681417884  …  34321.148905845854, 33384.44267146331, 32248.17215001482, 32521.7313438048, 32145.56982036932, 32904.93797689995, 33706.734108208315, 33657.651362378536, 34633.79536153588, 33361.97510530514], [33097.63671130043, 31276.9769528038, 30656.855654891737, 30743.33089496253, 31613.55204687786, 30680.90563181024, 32055.77648597834, 32416.470003978426, 32042.801791336045, 32487.83374619409  …  33584.72222271407, 33365.39173025131, 32730.380412191567, 32751.0890730332, 31323.54643117396, 32251.626889252995, 33051.35920284501, 32958.64014550006, 33982.179478730635, 32975.40844643821], [33097.63671130043, 31245.466926271, 30595.11620107643, 30650.507260492253, 31486.347998141737, 30526.669147540844, 31862.49608571035, 32188.553702511344, 31785.45811622499, 32194.448865630922  …  33214.40671820336, 32964.25126733636, 32304.29664727673, 32292.17013066339, 30853.51592508784, 31735.665547084853, 32489.838813021594, 32366.054887510363, 33337.57148276669, 32317.30694920559], [29576.147776884885, 29605.974349916614, 29647.946625760807, 29646.370018339087, 29607.38381413984, 29604.66953419051, 29662.65296281532, 29701.923364365637, 29776.759513790847, 29812.4613818737  …  29978.94865935484, 30090.387797416133, 29951.51045104684, 29763.1118978792, 29673.296103457767, 29839.477700973, 29977.384166155676, 30091.016636680022, 30255.734134078397, 30435.187746988162], [34346.71094688275, 34381.34847608993, 34335.23729675033, 34331.73152480753, 34215.8908945634, 34348.67705124998, 34485.48292231697, 34485.570667096785, 34568.880152820784, 34597.146828785066  …  34865.22707007903, 34965.23539366224, 34699.40803996705, 34459.45623113101, 34384.81908065894, 34609.58643695744, 34687.77860832839, 34902.268119275155, 35129.79415885786, 35295.98944278867], [28335.32931213966, 28363.90456052843, 28325.86378702964, 28322.971597362743, 28227.40546263825, 28336.95130775938, 28449.813334476064, 28449.88572211269, 28518.61433244354, 28541.93375808654  …  28763.09443722376, 28845.599244949535, 28626.297151693016, 28428.341850152567, 28366.767737836068, 28552.19617868988, 28616.703110047984, 28793.652540113515, 28981.356837873875, 29118.464525057858], [978.0617717704337, 979.0481149238881, 969.2949513561433, 963.3129141948, 959.380317965182, 969.5896198142508, 972.0305351805953, 978.5218000530643, 982.8162156790753, 980.3706253076843  …  992.423003476314, 984.7611815696316, 988.492239692, 986.5170829420833, 986.6327091345499, 987.0101726000772, 974.3398702641656, 990.2366859612497, 995.4723155820324, 995.0192721812051], [0.0019383188997990075, 0.007548013813041932, 0.00503922324114825, 0.006833184484755117, 0.007020256801297586, 0.004406208487818919, 0.0023282363027250508, 0.0026495089508857816, 0.001967308346979557, -0.0019281633798967635  …  0.002689311320487997, 0.0029852543645481067, -0.0015522592718469896, -0.001017205553835776, -0.003086003763105194, -0.0018580434881358965, 0.009374364043623906, 0.005899116191181886, 0.005168740628482382, 0.004000606837259779], [2.3548476e6, 2.3369532414702815e6, 2.3005737958154287e6, 2.30947516707637e6, 2.321976434557536e6, 2.302243297889956e6, 2.3255410798119716e6, 2.3281676821045885e6, 2.325676296094502e6, 2.3355228179013007e6  …  2.3746966381750433e6, 2.3462975803235536e6, 2.3137453979004356e6, 2.3161341335836947e6, 2.289699491406356e6, 2.3042768009843198e6, 2.324355768850441e6, 2.319158070443926e6, 2.3363002919235313e6, 2.3312020075405287e6], [0.0016459319014481277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0005503549860450353, 0.0, 0.0, 7.820497934853338e-5, 0.0, 0.0005835673469927319, 0.0016125742889080293, 0.0014086121005144885, 0.00214997492762631, 0.0018679701451337872], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613048 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 532.8943195089503 259.8531617665034 … 139.80073380499877 518.0461697497497; 543.8474130557854 261.1090578696738 … 140.33800322642148 519.9010975964889], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 522.785846637921 254.92400688530915 … 137.14885354791477 508.21935144610916; 532.993664348488 255.89801515570286 … 137.53722972904515 509.5252536915717]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72491.75827011914, 72336.50077037541, 72360.24254600618, 72513.8607985455, 72453.50911632985, 72664.3445271346, 72759.44774519198, 72954.77862545478, 73320.497230973  …  73511.37423007227, 73854.28446874503, 73919.71235537317, 74058.55394947127, 74246.77526987469, 74378.09147010467, 74404.07807431492, 74616.0163005964, 74685.20461794158, 74814.85699379143], [72422.0, 72418.72636457594, 72190.82320648075, 72141.76457017372, 72222.08540205145, 72089.27689146674, 72226.21464431744, 72247.88481977637, 72368.86073442109, 72658.36858641646  …  72700.81514744049, 72966.36017582592, 72957.42627909919, 73020.8213361787, 73132.65336059335, 73188.19118896217, 73140.00277053274, 73274.4454386171, 73268.50089806759, 73321.75132133737], [64900.92049553801, 64966.37094093018, 64810.91643149177, 64830.60645094093, 64976.292733047885, 64919.94415594205, 65125.51388270325, 65200.6284135514, 65390.73634053886, 65731.44834085285  …  65904.8850484276, 66220.29465770305, 66261.57646522779, 66400.21889521036, 66559.80316317172, 66669.72068556582, 66678.07342090251, 66874.00190252192, 66931.5898668819, 67050.45474442841], [64900.92049553801, 64900.920495538, 64680.394546703756, 64634.86277774377, 64714.84639208462, 64593.584039140245, 64732.839401821075, 64742.210637663644, 64865.56714598222, 65137.85341940049  …  65178.19746129837, 65424.151160629175, 65398.98392539336, 65469.79737058353, 65561.02934825521, 65603.1388760644, 65545.2577460553, 65671.62985393997, 65661.9644728489, 65712.30590150759], [40512.94792630534, 40552.47911948688, 40568.64771261768, 40577.79295981063, 40637.23592324948, 40645.132854150295, 40631.3400715896, 40772.51277403984, 40777.58727828537, 40921.49689590613  …  41019.815638327615, 41189.91548294905, 41391.02948247851, 41375.41935120453, 41574.178256193845, 41721.220766788516, 41796.192296809044, 41887.365569583366, 41966.25889486075, 42028.01419824204], [40512.94792630534, 40511.62447758995, 40486.94702615467, 40455.27603950088, 40473.72310661881, 40440.805039667874, 40386.35328501466, 40485.84614094124, 40450.092378160996, 40551.95091222905  …  40567.518500887774, 40694.70350108941, 40852.20147456969, 40795.653480017085, 40950.33024815266, 41053.76491602948, 41086.103067267686, 41134.244833321594, 41170.2008885972, 41189.24675387496], [14866.888022051655, 14829.407583930104, 14846.240442846678, 14835.614459211643, 14644.608664634796, 14878.43001681913, 14724.63083100084, 14747.653542064143, 14896.505786533658, 14818.227462085744  …  14810.601607395138, 14541.624813190498, 14547.457276967269, 14369.498414578895, 14341.491639254253, 14415.564015228705, 14503.881008103932, 14406.143403067705, 14415.707219270033, 14404.081939251928], [14866.888022051655, 14814.467680142714, 14816.341787013542, 14790.821145877784, 14585.682875102, 14803.634417080897, 14635.848625333165, 14643.964563893054, 14776.868260128047, 14684.409863532193  …  14647.295346590598, 14366.795931927536, 14358.078623604591, 14168.148315957782, 14126.288083423155, 14184.943904716147, 14257.46981310158, 14147.125792891477, 14142.255654845345, 14116.614752730764], [15944.236265986641, 16487.671539168437, 15996.867006005323, 15719.411387754966, 16143.454397251258, 15765.488996066111, 16085.161036712674, 15900.080901854157, 15864.616328782564, 16269.651293098921  …  16104.345807356454, 16524.687857319634, 16307.83358902956, 16492.208017833298, 16446.537343726344, 16650.314370494965, 16311.85007067206, 16468.743548964507, 16486.591706920834, 16513.604256650528], [15944.236265986641, 16471.061015445266, 15964.651117891273, 15671.949617859866, 16078.497673727325, 15686.234047573955, 15988.175510097459, 15788.289345533105, 15737.203666904132, 16122.726455366688  …  15926.774324021877, 16326.017301007785, 16095.538374439528, 16261.11381989654, 16199.746186536593, 16383.942736604273, 16034.7226958427, 16172.64108230785, 16173.857532612528, 16184.036612214464], [15944.236265986641, 15959.893009134286, 15935.230714236495, 15937.08220013085, 15966.213890937468, 15965.552588201299, 16012.417715709757, 16047.373981359347, 16072.549169063323, 16121.149550756754  …  16202.33703294148, 16266.828186561557, 16307.754157715124, 16335.22010984446, 16392.92894856622, 16425.56732388709, 16446.999657672142, 16477.086474231906, 16495.863403102372, 16513.777000613372], [15944.236265986641, 15943.814196500392, 15903.138954670783, 15888.963214659732, 15901.970333399111, 15885.291896741463, 15915.870795166258, 15934.54682511306, 15943.466547059601, 15975.56577399771  …  16023.685068133822, 16071.257787098793, 16095.459977161148, 16106.325677678495, 16146.942220758781, 16162.791191960201, 16167.576182149582, 16180.83400458665, 16182.953353980076, 16184.205908666998], [3173.2320350842083, 3176.0096401758933, 3177.490554150312, 3178.3111109887654, 3182.9670623697325, 3185.1495609728818, 3188.8233270014603, 3191.434686404795, 3182.62014979547, 3166.047055656287  …  3195.3002200973106, 3197.219010953297, 3217.381760748063, 3219.939072261595, 3240.698441602632, 3250.224172964791, 3271.64958079466, 3271.81769898493, 3273.0815718290974, 3267.1736670397595], [3173.2320350842083, 3172.809965597965, 3171.0914461163748, 3168.714805702021, 3170.159697454617, 3169.1374433368405, 3169.596307206867, 3168.996092998106, 3157.059739343079, 3137.4557268364606  …  3160.0678544632583, 3158.7799623587684, 3175.4979171592017, 3174.8202357477135, 3192.069620727384, 3198.2271052699107, 3216.0664522249976, 3212.991517847313, 3210.994484272969, 3201.96956545932], [34195.564496956766, 33348.546945095346, 33616.74332699021, 34540.30960407271, 34219.31621001692, 33455.72886688408, 33015.53099756014, 33790.702204972426, 33877.04630609921, 33117.55924503684  …  33394.66124141755, 33650.85431601955, 34092.65562046183, 34406.76658182754, 34927.182891243654, 34608.79044300644, 35521.41355706674, 35332.314538404346, 35847.06033728375, 36050.290905360016], [34195.564496956766, 33314.949912982695, 33549.04299283262, 34436.02171529012, 34081.62729861451, 33287.54302318624, 32816.463754591874, 33553.12384219604, 33604.9713591238, 32818.48756055468  …  33026.44140789998, 33246.28183603949, 33648.837770507875, 33924.64774617939, 34403.077439563516, 34055.11921181216, 34917.92860308245, 34697.051413661124, 35167.07741447904, 35330.822927911715], [33097.63671130043, 32726.346917561434, 32691.99771808465, 33312.88586484398, 33130.75439660677, 32291.271617590035, 31792.318409728534, 32451.50167773889, 32460.977074245853, 31806.437665154837  …  31818.050064424646, 32052.798000733987, 32419.263613563886, 32585.338415972972, 33042.61486054322, 33017.79812541417, 33729.25885833708, 33478.55075942369, 34030.4135403938, 34181.134305713334], [33097.63671130043, 32693.376721584686, 32626.159717411432, 33212.30394835499, 32997.44555201118, 32128.939636042433, 31600.62653071981, 32223.339072787207, 32200.274929895837, 31519.206205266353  …  31467.214431959987, 31667.43839423854, 31997.229964022474, 32128.74202587199, 32546.788597082425, 32489.57958020012, 33156.22140876189, 32876.617683565055, 33384.89059246652, 33498.96972539466], [29576.147776884885, 29605.974349916618, 29544.105412748453, 29546.826198967683, 29613.195820348268, 29625.713191651113, 29690.582596662967, 29764.906313670675, 29852.85875259294, 29991.64442376122  …  30109.826918270184, 30256.501047037626, 30333.326564432296, 30399.375411459652, 30507.181020217016, 30568.56389975373, 30560.44933762745, 30637.23120101684, 30685.766697261497, 30747.441707261645], [34346.71094688275, 34381.34847608993, 34291.03746111181, 34305.87580155235, 34381.730258627365, 34316.58424832595, 34457.100344028375, 34461.14161419147, 34560.91406622173, 34757.984980046815  …  34815.545155230975, 34980.6692459732, 34947.479627814726, 35017.59603899014, 35067.787518632475, 35114.62936146133, 35129.45321391767, 35241.89584429434, 35250.08059569296, 35308.5857722673], [28335.32931213966, 28363.90456052843, 28289.399832728548, 28301.641158061815, 28364.21952326069, 28310.47540615679, 28426.398291802, 28429.732256474414, 28512.04247502574, 28674.621921125072  …  28722.107880454045, 28858.331855313947, 28830.951103727024, 28888.795699208476, 28930.202636441234, 28968.84619227386, 28981.075565318482, 29073.83842011914, 29080.590671494145, 29128.856237511885], [978.0617717704337, 979.0481149238881, 975.7735576315177, 977.9044504208111, 981.3666540723914, 977.6467159650196, 977.8309420120631, 974.580485689142, 976.963521724326, 981.8189370448438  …  979.5129749265425, 983.1243646921806, 980.7702729808377, 983.2474447604892, 984.8346243222456, 986.527424350764, 988.1708693573432, 994.8748572107069, 995.7425739274851, 994.4272648994006], [0.0019383188997990075, 0.0035153096100279946, 0.005857523232646544, 0.008300064404841434, 0.005882456567505079, 0.005449083536696486, 0.005885550985521348, -0.00020689187145184196, 0.005403742907272413, 0.006316764923130602  …  -0.0008637921427251394, 0.001424642900224038, 0.006885020974451983, 0.002083238625984807, 0.002135808014600782, 0.002232398195995744, 0.002395884754392563, 0.005288981463918319, 0.008724918628971734, 0.004882994648282013], [2.3548476e6, 2.339536270689172e6, 2.343651707496965e6, 2.349269873283774e6, 2.3309259244286586e6, 2.3082319479054715e6, 2.3033443063920005e6, 2.318000907356552e6, 2.315399426148619e6, 2.313755663887807e6  …  2.3247783373688105e6, 2.343728896050612e6, 2.334477073435562e6, 2.327657014441327e6, 2.3288730100461063e6, 2.350268046492736e6, 2.3606359932130957e6, 2.345477847314581e6, 2.3614710929762777e6, 2.3713180952900015e6], [0.0016459319014481277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0004075796769870933, 0.001211884377885497, 0.0008918886408452567, 0.0005863119092196513, 0.000643302382133939, 0.0015505249603103193, 0.001924619469054504, 0.0012719155636040764, 0.002048663910049605, 0.0024191970666451587], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 544.1718062067785 270.2111321035931 … 141.90790908239802 521.3359388672304; 549.9500462648655 270.12007766383607 … 142.1012188818908 521.8217697067627], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 533.8494106794794 265.08549687288286 … 139.21605781540325 511.44671692996087; 538.9745052207575 264.72919894790084 … 139.26525628701768 511.4075942920616]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72495.70082146855, 72536.77682469029, 72668.46411596639, 72451.44028883152, 72446.54585415887, 72368.63373501747, 72553.91901547677, 72638.76984307253, 72819.99172679384  …  73593.8317333737, 73850.15506131321, 74274.30223413535, 74732.51555790525, 75084.06442648263, 75336.35482180676, 75800.33317750462, 76138.75838091082, 76530.51506640104, 76594.58637087465], [72422.0, 72422.66494399744, 72390.69592738322, 72449.05552378525, 72159.91605492582, 72082.34863442529, 71932.28684130644, 72043.80113783844, 72055.38989681508, 72162.3829510814  …  72782.36344888105, 72962.28041481871, 73307.40011036531, 73685.33917473216, 73957.37844030489, 74131.1242490547, 74512.53643748669, 74769.80912878751, 75078.80765081475, 75065.96203093743], [64900.92049553801, 64966.37094093018, 65002.11639029259, 65123.620623752024, 64911.73181861408, 64908.66775797104, 64826.87034556706, 64995.9612478021, 65065.28764867365, 65230.029710647155  …  65962.15724415983, 66206.375965216, 66595.80018869897, 67018.73770795116, 67360.458451268, 67588.46205108905, 68016.21400894737, 68315.04265638406, 68655.91997150553, 68700.35598280276], [64900.92049553801, 64900.920495538, 64871.20945032608, 64926.99225004655, 64650.54525262623, 64582.3643289345, 64435.996536785926, 64538.98246213897, 64542.73221314366, 64640.96290412181  …  65234.83815613796, 65410.39980772527, 65728.85672777439, 66079.64929598058, 66349.67027485193, 66507.1822224865, 66860.66422443694, 67086.76118001217, 67353.58575802144, 67329.27949693774], [40512.94792630534, 40551.58339360063, 40562.48067013443, 40655.120358466884, 40674.78836350525, 40684.55836308218, 40710.29725537144, 40771.858128894746, 40835.255270951944, 40884.98765769376  …  41014.66072280385, 41061.57418585912, 41206.131224636825, 41389.12473087291, 41374.583527458795, 41538.828504042795, 41694.153702371164, 41946.8893927211, 42201.748881654385, 42339.52811034068], [40512.94792630534, 40510.72965410378, 40480.792403400264, 40532.36996279913, 40511.124446408765, 40480.0323519767, 40464.83439622056, 40485.19609852749, 40507.2972248996, 40515.77137462322  …  40562.42042505221, 40567.905206633455, 40669.71022039966, 40809.16681543523, 40753.73057017157, 40874.29056365807, 40985.79804000243, 41192.698438151245, 41401.223865599626, 41494.543676355504], [14866.888022051655, 14882.379506515175, 14862.836253679823, 14699.87367974009, 14671.017218164172, 14625.276367504406, 14787.809068916033, 14983.626698788046, 15011.329005433525, 15097.047091484998  …  15401.323850674207, 15484.456464341694, 15712.588474499622, 15893.082724548256, 15855.60937386343, 15999.872939637793, 16032.281190451808, 16189.778437996414, 16249.116449957868, 16121.592912239848], [14866.888022051655, 14867.386236103233, 14832.904175753174, 14655.490209846408, 14611.985168033847, 14551.753400631665, 14698.645929873745, 14878.278621735466, 14890.769305326223, 14960.71158224802  …  15231.504104240805, 15298.292247109894, 15508.0421548583, 15670.383665635014, 15617.685481219985, 15743.907064030844, 15759.90350309037, 15898.691670152648, 15940.886944032507, 15799.848772192114], [15944.236265986641, 16125.60948740389, 15977.56023595764, 16529.30715029342, 16020.229823336904, 16305.631175028724, 15753.882361678605, 16192.510881561906, 15824.432604174463, 15671.09728917761  …  16064.32174121828, 16209.761670975226, 16193.419605831486, 16432.68142717305, 16597.86515155858, 16353.856404530809, 16602.321285785307, 16749.76182201911, 16940.47009580197, 16983.596602187237], [15944.236265986641, 16109.363723512683, 15945.383229503574, 16479.40005433794, 15955.768920867253, 16223.660868923305, 15658.894280826054, 16078.663285227733, 15697.342667737996, 15529.577757823221  …  15887.191575580027, 16014.877362317675, 15982.613831330616, 16202.421335240104, 16348.803220647287, 16092.22750348087, 16320.259000142078, 16448.606741386157, 16619.126301888427, 16644.64915986969], [15944.236265986641, 15955.41207730671, 15956.854318931759, 15985.573223871235, 15955.696602981649, 15959.972249266615, 15958.026356318449, 15987.421897915208, 15998.41147134586, 16030.442298528806  …  16144.54458718399, 16186.08570502664, 16259.193779323554, 16345.329735713613, 16429.402194419352, 16512.72383468249, 16608.97606778319, 16687.0598564225, 16766.51017333852, 16822.63090667841], [15944.236265986641, 15939.337778992756, 15924.719011862075, 15937.307828986068, 15891.495364054234, 15879.739610820217, 15861.807388639194, 15875.016257556457, 15869.924267549282, 15885.677663377312  …  15966.529859705977, 15991.486044246667, 16047.53175728988, 16116.293644172514, 16182.86816146415, 16248.553373395316, 16326.800721864325, 16387.032136029396, 16448.46622536533, 16486.895911763586], [3173.2320350842083, 3171.5287083483163, 3172.6519063419632, 3184.6975743898006, 3185.908408593956, 3185.7135635019085, 3188.6957904217224, 3193.511530680562, 3198.889350936334, 3202.9633638059026  …  3187.281367076723, 3179.9347419131623, 3187.198509380674, 3187.1982905526347, 3199.5800612113044, 3217.742833182106, 3231.3903032415596, 3249.667878198446, 3261.847960013591, 3302.309454333915], [3173.2320350842083, 3168.3335480903293, 3166.2625427996413, 3175.0819863927272, 3173.089208528272, 3169.6986105594933, 3169.4695396093175, 3171.058335231582, 3173.19827850126, 3174.0386582906012  …  3152.1374197890236, 3141.703496054469, 3145.7075910562926, 3142.538228550969, 3151.568248796034, 3166.2654017749473, 3176.4911527524027, 3191.2399433843148, 3199.9739628510406, 3236.404135837162], [34195.564496956766, 34689.421646694995, 35698.288986962354, 34555.47573453492, 34459.34973368597, 33531.798043623254, 34056.739795854846, 33811.22180350136, 34123.50501695059, 35012.18415485641  …  35803.01748500329, 35707.621111339344, 35516.3773489641, 34535.7428293939, 33977.47422918945, 34321.28389834303, 35278.23809793543, 34220.26237739695, 34354.5846346039, 34772.14990154805], [34195.564496956766, 34654.473748816505, 35626.396654330274, 34451.14205450888, 34320.69499484352, 33363.229791318474, 33851.39458132085, 33573.4991698959, 33849.450699044166, 34696.00285613454  …  35408.24237282439, 35278.3208418265, 35054.02550378514, 34051.81673649716, 33467.6197833473, 33772.212195202825, 34678.884531642914, 33604.99357626104, 33702.91248487159, 34078.19022097638], [33097.63671130043, 33753.29321274606, 34564.38932204424, 33771.31280706907, 33373.94484986067, 32700.718095079632, 32940.09474680333, 33205.29849726953, 33155.75205443805, 33845.324466419166  …  34689.49206632609, 34613.25837120239, 34354.2144197969, 33518.11615408292, 32721.46785558795, 32877.48692474803, 33806.66109903904, 32967.933649222956, 33215.40499561714, 33622.2811554415], [33097.63671130043, 33719.28841853888, 34494.78053560429, 33669.34675770715, 33239.65747522762, 32536.327778424748, 32741.48234693477, 32971.836037548266, 32889.47000019302, 33539.68061974782  …  34306.995028816615, 34197.11524306899, 33906.99160000865, 33048.44937807545, 32230.460615081516, 32351.51307731823, 33232.30863739111, 32375.181297163756, 32585.341945577507, 32951.269798456575], [29576.147776884885, 29605.974349916614, 29614.387921099973, 29669.355528444605, 29604.846329336015, 29610.159621434934, 29593.2172447527, 29640.948285135, 29640.704843929485, 29702.173524581503  …  29991.288709732562, 30105.97825118616, 30241.742634685575, 30427.386085887323, 30555.98597114251, 30723.925467795856, 30901.55155254288, 31048.085898427194, 31161.854111348013, 31212.648555204152], [34346.71094688275, 34381.34847608993, 34404.00577924586, 34464.031805556144, 34326.118604576564, 34316.739074577854, 34259.77396722172, 34376.62807864182, 34442.20820258693, 34540.241201943616  …  34969.40395370693, 35094.67687095893, 35340.97344901315, 35573.97919763123, 35783.82347575848, 35847.26344807976, 36090.003046286954, 36238.76886816143, 36462.57756225617, 36454.55706794546], [28335.32931213966, 28363.90456052843, 28382.596369104835, 28432.11660483953, 28318.34105374554, 28310.603134626657, 28263.608094003004, 28360.0103298295, 28414.112581750785, 28494.98778766277  …  28849.038221153292, 28952.385798442927, 29155.575403945837, 29347.800348829947, 29520.91755746746, 29573.254228366062, 29773.50939873548, 29896.238138605895, 30080.87570288103, 30074.258960221403], [978.0617717704337, 979.0481149238881, 983.7226899467456, 990.2332897512016, 980.7668847016432, 981.769061958241, 973.8791335928266, 978.3848840251939, 982.3746021573284, 987.6149841220667  …  1001.4645807204546, 1005.7208430708693, 1013.0841050002933, 1017.3724244326396, 1020.6490043669746, 1017.2731352134556, 1024.659410117579, 1028.1878897954389, 1031.488297901422, 1033.1503596531738], [0.0019383188997990075, -0.0004366277934220175, -0.00014509215048441604, 0.002334645826009618, 0.0035399665779316525, 0.009324964276326897, 0.007957717985688673, 0.004574233537299355, -0.0005007908810747974, 0.0013091363471040562  …  0.0010449388168884965, 0.003562782343170978, 0.0035742087823806834, 0.004469524773963229, 0.004110185976023972, 0.007931610289722668, 0.005421631962795104, 0.007697922080368569, 0.004833131601683638, 0.0008717061865006759], [2.3548476e6, 2.372352629767227e6, 2.397612560481695e6, 2.371829459722347e6, 2.3639744814743204e6, 2.347697302873628e6, 2.347178797699433e6, 2.3495979935473646e6, 2.3657897398951254e6, 2.395807175973822e6  …  2.40549955734484e6, 2.412777630291093e6, 2.416497712701573e6, 2.386824847429773e6, 2.3833777538402937e6, 2.3782530136439484e6, 2.3878546962133953e6, 2.379270068831829e6, 2.379478996362261e6, 2.387579120621238e6], [0.0016459319014481277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  1.755799080989366e-5, 0.00039561449253647154, 0.0006000008286376578, 0.0, 0.0, 0.0, 0.0005215227374776628, 0.0003059490815888013, 0.0004028467218356235, 0.0007278594582020357], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.6059091613047 258.50369622511613 … 137.13538556670352 505.4138092341077; … ; 550.6814991794881 273.05263229695674 … 143.12727366032138 528.2294233789979; 550.1118772343933 272.63473861319557 … 143.58828679785296 530.1413215876933], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.0834390395163 258.2432663779743 … 136.99722836422478 504.90462950861695; … ; 540.235621279785 267.8730966462826 … 140.41229226544817 518.2094389272422; 539.1331064743131 267.1936739491917 … 140.7226462803066 519.5611100325125])])

Finally, we can plot baseline and shocked simulations

Te = T + 1
 StatsPlots.errorline(
     1:Te,
     data_vec_baseline.real_gdp,
@@ -50,4 +50,4 @@
     titlefont = 10,
     xlabel = "quarters",
     ylabel = "GDP",
-)
Example block output

Note that, importantly, once the function central_bank_rate has been changed, the model will use the new interest rate in all the simulations, unless the function is changed again. To restore the original interest rate, we can simply re-import the function central_bank_rate.

+)Example block output

Note that, importantly, once the function central_bank_rate has been changed, the model will use the new interest rate in all the simulations, unless the function is changed again. To restore the original interest rate, we can simply re-import the function central_bank_rate.

diff --git a/dev/index.html b/dev/index.html index 672d381..a05c2ed 100644 --- a/dev/index.html +++ b/dev/index.html @@ -7,16 +7,16 @@ T = 20 model = BeforeIT.initialise_model(parameters, initial_conditions, T) -data = BeforeIT.run_one_sim!(model)

To plot the results of the simulation, you can use the Plots package

using Plots
+data = BeforeIT.run!(model)

To plot the results of the simulation, you can use the Plots package

using Plots
 
 plot(data.real_gdp)

License

BeforeIT.jl is released under the GNU Affero General Public License v3 or later (AGPLv3+).

Copyright 2024 - Banca d'Italia and the authors.

Main developers and maintainers

Other collaborators and contributors

Disclaimer

This package is an outcome of a research project. All errors are those of the authors. All views expressed are personal views, not those of Bank of Italy.

Reproducibility

The documentation of BeforeIT.jl was built using these direct dependencies,
Status `~/work/BeforeIT.jl/BeforeIT.jl/docs/Project.toml`
-  [ca9fcad7] BeforeIT v0.2.0 `~/work/BeforeIT.jl/BeforeIT.jl`
+  [ca9fcad7] BeforeIT v0.3.0 `~/work/BeforeIT.jl/BeforeIT.jl`
   [e30172f5] Documenter v1.8.0
   [5789e2e9] FileIO v1.16.6
   [98b081ad] Literate v2.20.1
   [91a5bcdd] Plots v1.40.9
-  [f3b207a7] StatsPlots v0.15.7
and using this machine and Julia version.
Julia Version 1.10.7
-Commit 4976d05258e (2024-11-26 15:57 UTC)
+  [f3b207a7] StatsPlots v0.15.7
and using this machine and Julia version.
Julia Version 1.10.8
+Commit 4c16ff44be8 (2025-01-22 10:06 UTC)
 Build Info:
   Official https://julialang.org/ release
 Platform Info:
@@ -34,74 +34,75 @@
   [7d9fca2a] Arpack v0.5.4
   [4c555306] ArrayLayouts v1.11.0
   [13072b0f] AxisAlgorithms v1.1.0
-  [ca9fcad7] BeforeIT v0.2.0 `~/work/BeforeIT.jl/BeforeIT.jl`
+  [ca9fcad7] BeforeIT v0.3.0 `~/work/BeforeIT.jl/BeforeIT.jl`
   [d1d4a3ce] BitFlags v0.1.9
   [e1450e63] BufferedStreams v1.2.2
-  [d360d2e6] ChainRulesCore v1.25.0
+  [d360d2e6] ChainRulesCore v1.25.1
   [ae650224] ChunkSplitters v3.1.0
-  [aaaa29a8] Clustering v0.15.7
-  [944b1d66] CodecZlib v0.7.6
-  [35d6a980] ColorSchemes v3.27.1
+  [aaaa29a8] Clustering v0.15.8
+  [944b1d66] CodecZlib v0.7.7
+  [35d6a980] ColorSchemes v3.28.0
   [3da002f7] ColorTypes v0.12.0
   [c3611d14] ColorVectorSpace v0.11.0
   [5ae59095] Colors v0.13.0
+  [38540f10] CommonSolve v0.2.4
   [34da2185] Compat v4.16.0
-  [f0e56b4a] ConcurrentUtilities v2.4.3
+  [f0e56b4a] ConcurrentUtilities v2.5.0
   [d38c429a] Contour v0.6.3
   [9a962f9c] DataAPI v1.16.0
   [864edb3b] DataStructures v0.18.20
   [e2d170a0] DataValueInterfaces v1.0.0
   [8bb1440f] DelimitedFiles v1.9.1
   [b4f34e82] Distances v0.10.12
-  [31c24e10] Distributions v0.25.115
+  [31c24e10] Distributions v0.25.117
   [ffbed154] DocStringExtensions v0.9.3
   [e30172f5] Documenter v1.8.0
   [2083aeaf] DynamicSampling v0.4.6
   [460bff9d] ExceptionUnwrapping v0.1.11
   [c87230d0] FFMPEG v0.4.2
-  [7a1cc6ca] FFTW v1.8.0
+  [7a1cc6ca] FFTW v1.8.1
   [5789e2e9] FileIO v1.16.6
   [1a297f60] FillArrays v1.13.0
   [53c48c17] FixedPointNumbers v0.8.5
   [1fa38f19] Format v1.3.7
-  [28b8d3ca] GR v0.73.10
+  [28b8d3ca] GR v0.73.12
   [d7ba0133] Git v1.3.1
   [42e2da0e] Grisu v1.0.2
   [f67ccb44] HDF5 v0.17.2
   [cd3eb016] HTTP v1.10.15
-  [34004b35] HypergeometricFunctions v0.3.25
+  [34004b35] HypergeometricFunctions v0.3.27
   [b5f81e59] IOCapture v0.2.5
   [a98d9a8b] Interpolations v0.15.1
-  [92d709cd] IrrationalConstants v0.2.2
+  [92d709cd] IrrationalConstants v0.2.4
   [82899510] IteratorInterfaceExtensions v1.0.0
-⌅ [033835bb] JLD2 v0.4.53
+⌃ [033835bb] JLD2 v0.4.53
   [1019f520] JLFzf v0.1.9
-  [692b3bcd] JLLWrappers v1.6.1
+  [692b3bcd] JLLWrappers v1.7.0
   [682c06a0] JSON v0.21.4
   [5ab0869b] KernelDensity v0.6.9
   [b964fa9f] LaTeXStrings v1.4.0
-  [23fbe1c1] Latexify v0.16.5
+  [23fbe1c1] Latexify v0.16.6
   [0e77f7df] LazilyInitializedFields v1.3.0
-  [5078a376] LazyArrays v2.3.1
+  [5078a376] LazyArrays v2.5.1
   [98b081ad] Literate v2.20.1
   [2ab3a3ac] LogExpFunctions v0.3.29
   [e6f89c97] LoggingExtras v1.1.0
   [23992714] MAT v0.10.7
   [3da0fdf6] MPIPreferences v0.1.11
-  [1914dd2f] MacroTools v0.5.13
+  [1914dd2f] MacroTools v0.5.15
   [d0879d2d] MarkdownAST v0.1.2
   [739be429] MbedTLS v1.1.9
   [442fdcdd] Measures v0.3.2
   [e1d29d7a] Missings v1.2.0
   [6f286f6a] MultivariateStats v0.10.3
   [af6c499f] MutableNamedTuples v0.1.3
-  [77ba4419] NaNMath v1.0.2
+  [77ba4419] NaNMath v1.1.2
   [b8a86587] NearestNeighbors v0.4.21
   [510215fc] Observables v0.5.5
   [6fe1bfb0] OffsetArrays v1.15.0
   [4d8831e6] OpenSSL v1.4.3
-  [bac558e1] OrderedCollections v1.7.0
-  [90014a1f] PDMats v0.11.31
+  [bac558e1] OrderedCollections v1.8.0
+  [90014a1f] PDMats v0.11.32
   [69de0a69] Parsers v2.8.1
   [b98c9c47] Pipe v1.3.0
   [ccf2f8ad] PlotThemes v3.3.0
@@ -109,8 +110,8 @@
   [91a5bcdd] Plots v1.40.9
   [aea7be01] PrecompileTools v1.2.1
   [21216c6a] Preferences v1.4.3
-  [43287f4e] PtrArrays v1.2.1
-  [1fd47b50] QuadGK v2.11.1
+  [43287f4e] PtrArrays v1.3.0
+  [1fd47b50] QuadGK v2.11.2
   [c84ed2f1] Ratios v0.4.5
   [3cdcf5f2] RecipesBase v1.3.4
   [01d81517] RecipesPipeline v0.6.12
@@ -126,7 +127,7 @@
   [a2af1166] SortingAlgorithms v1.2.1
   [276daf66] SpecialFunctions v2.5.0
   [860ef19b] StableRNGs v1.0.2
-  [90137ffa] StaticArrays v1.9.9
+  [90137ffa] StaticArrays v1.9.11
   [1e83bf80] StaticArraysCore v1.4.3
   [82ae8749] StatsAPI v1.7.0
   [2913bbd2] StatsBase v0.34.4
@@ -139,81 +140,81 @@
   [3bb67fe8] TranscodingStreams v0.11.3
   [5c2747f8] URIs v1.5.1
   [1cfade01] UnicodeFun v0.4.1
-  [1986cc42] Unitful v1.21.1
+  [1986cc42] Unitful v1.22.0
   [45397f5d] UnitfulLatexify v1.6.4
   [41fe7b60] Unzip v0.2.0
   [cc8bc4a8] Widgets v0.6.7
   [efce3f68] WoodburyMatrices v1.0.0
 ⌅ [68821587] Arpack_jll v3.5.1+1
-  [6e34b625] Bzip2_jll v1.0.8+2
+  [6e34b625] Bzip2_jll v1.0.9+0
   [83423d85] Cairo_jll v1.18.2+1
   [ee1fde0b] Dbus_jll v1.14.10+0
   [2702e6a9] EpollShim_jll v0.0.20230411+1
-  [2e619515] Expat_jll v2.6.4+1
+  [2e619515] Expat_jll v2.6.5+0
 ⌅ [b22a6f82] FFMPEG_jll v4.4.4+1
-  [f5851436] FFTW_jll v3.3.10+1
+  [f5851436] FFTW_jll v3.3.10+3
   [a3f928ae] Fontconfig_jll v2.15.0+0
   [d7e528f0] FreeType2_jll v2.13.3+1
   [559328eb] FriBidi_jll v1.0.16+0
   [0656b61e] GLFW_jll v3.4.0+2
-  [d2c73de3] GR_jll v0.73.10+0
+  [d2c73de3] GR_jll v0.73.12+0
   [78b55507] Gettext_jll v0.21.0+0
   [f8c6e375] Git_jll v2.47.1+0
   [7746bdde] Glib_jll v2.82.4+0
   [3b182d85] Graphite2_jll v1.3.14+1
 ⌃ [0234f1f7] HDF5_jll v1.14.2+1
   [2e76f6c2] HarfBuzz_jll v8.5.0+0
-  [e33a78d0] Hwloc_jll v2.11.2+1
-  [1d5cc7b8] IntelOpenMP_jll v2024.2.1+0
-  [aacddb02] JpegTurbo_jll v3.1.0+0
+  [e33a78d0] Hwloc_jll v2.11.2+3
+  [1d5cc7b8] IntelOpenMP_jll v2025.0.4+0
+  [aacddb02] JpegTurbo_jll v3.1.1+0
   [c1c5ebd0] LAME_jll v3.100.2+0
-  [88015f11] LERC_jll v4.0.0+1
+  [88015f11] LERC_jll v4.0.1+0
   [1d63c593] LLVMOpenMP_jll v18.1.7+0
-  [dd4b983a] LZO_jll v2.10.2+1
+  [dd4b983a] LZO_jll v2.10.3+0
 ⌅ [e9f186c6] Libffi_jll v3.2.2+2
   [d4300ac3] Libgcrypt_jll v1.11.0+0
   [7e76a0d4] Libglvnd_jll v1.7.0+0
-  [7add5ba3] Libgpg_error_jll v1.51.0+0
-  [94ce4f54] Libiconv_jll v1.17.0+1
-  [4b2f31a3] Libmount_jll v2.40.2+0
-  [89763e89] Libtiff_jll v4.7.0+0
-  [38a345b3] Libuuid_jll v2.40.2+0
-  [856f044c] MKL_jll v2024.2.0+0
+  [7add5ba3] Libgpg_error_jll v1.51.1+0
+  [94ce4f54] Libiconv_jll v1.18.0+0
+  [4b2f31a3] Libmount_jll v2.40.3+0
+  [89763e89] Libtiff_jll v4.7.1+0
+  [38a345b3] Libuuid_jll v2.40.3+0
+  [856f044c] MKL_jll v2025.0.1+1
   [7cb0a576] MPICH_jll v4.2.3+0
-  [f1f71cc9] MPItrampoline_jll v5.5.1+0
+  [f1f71cc9] MPItrampoline_jll v5.5.1+2
   [9237b28f] MicrosoftMPI_jll v10.1.4+3
   [e7412a2a] Ogg_jll v1.3.5+1
   [fe0851c0] OpenMPI_jll v5.0.6+0
-  [458c3c95] OpenSSL_jll v3.0.15+1
-  [efe28fd5] OpenSpecFun_jll v0.5.5+0
+  [458c3c95] OpenSSL_jll v3.0.15+3
+  [efe28fd5] OpenSpecFun_jll v0.5.6+0
   [91d4177d] Opus_jll v1.3.3+0
   [36c8627f] Pango_jll v1.55.5+0
 ⌅ [30392449] Pixman_jll v0.43.4+0
-  [c0090381] Qt6Base_jll v6.7.1+1
-  [629bc702] Qt6Declarative_jll v6.7.1+2
-  [ce943373] Qt6ShaderTools_jll v6.7.1+1
-  [e99dba38] Qt6Wayland_jll v6.7.1+1
+⌅ [c0090381] Qt6Base_jll v6.7.1+1
+⌅ [629bc702] Qt6Declarative_jll v6.7.1+2
+⌅ [ce943373] Qt6ShaderTools_jll v6.7.1+1
+⌃ [e99dba38] Qt6Wayland_jll v6.7.1+1
   [f50d1b31] Rmath_jll v0.5.1+0
   [a44049a8] Vulkan_Loader_jll v1.3.243+0
   [a2964d1f] Wayland_jll v1.21.0+2
-  [2381bf8a] Wayland_protocols_jll v1.31.0+0
-  [02c8fc9c] XML2_jll v2.13.5+0
+  [2381bf8a] Wayland_protocols_jll v1.36.0+0
+  [02c8fc9c] XML2_jll v2.13.6+0
   [aed1982a] XSLT_jll v1.1.42+0
-  [ffd25f8a] XZ_jll v5.6.3+0
+  [ffd25f8a] XZ_jll v5.6.4+1
   [f67eecfb] Xorg_libICE_jll v1.1.1+0
   [c834827a] Xorg_libSM_jll v1.2.4+0
-  [4f6342f7] Xorg_libX11_jll v1.8.6+1
-  [0c0b7dd1] Xorg_libXau_jll v1.0.11+1
+  [4f6342f7] Xorg_libX11_jll v1.8.6+3
+  [0c0b7dd1] Xorg_libXau_jll v1.0.12+0
   [935fb764] Xorg_libXcursor_jll v1.2.3+0
-  [a3789734] Xorg_libXdmcp_jll v1.1.4+1
-  [1082639a] Xorg_libXext_jll v1.3.6+1
+  [a3789734] Xorg_libXdmcp_jll v1.1.5+0
+  [1082639a] Xorg_libXext_jll v1.3.6+3
   [d091e8ba] Xorg_libXfixes_jll v6.0.0+0
   [a51aa0fd] Xorg_libXi_jll v1.8.2+0
   [d1454406] Xorg_libXinerama_jll v1.1.5+0
   [ec84b674] Xorg_libXrandr_jll v1.5.4+0
   [ea2f1a96] Xorg_libXrender_jll v0.9.11+1
-  [14d82f49] Xorg_libpthread_stubs_jll v0.1.1+1
-  [c7cfdc94] Xorg_libxcb_jll v1.17.0+1
+  [14d82f49] Xorg_libpthread_stubs_jll v0.1.2+0
+  [c7cfdc94] Xorg_libxcb_jll v1.17.0+3
   [cc61e674] Xorg_libxkbfile_jll v1.1.2+1
   [e920d4aa] Xorg_xcb_util_cursor_jll v0.1.4+0
   [12413925] Xorg_xcb_util_image_jll v0.4.0+1
@@ -223,19 +224,19 @@
   [c22f9ab0] Xorg_xcb_util_wm_jll v0.4.1+1
   [35661453] Xorg_xkbcomp_jll v1.4.6+1
   [33bec58e] Xorg_xkeyboard_config_jll v2.39.0+0
-  [c5fb5394] Xorg_xtrans_jll v1.5.0+1
-  [3161d3a3] Zstd_jll v1.5.6+1
+  [c5fb5394] Xorg_xtrans_jll v1.5.1+0
+  [3161d3a3] Zstd_jll v1.5.7+0
   [35ca27e7] eudev_jll v3.2.9+0
   [214eeab7] fzf_jll v0.56.3+0
   [1a1c6b14] gperf_jll v3.1.1+1
-  [477f73a3] libaec_jll v1.1.2+0
-  [a4ae2306] libaom_jll v3.9.0+0
+  [477f73a3] libaec_jll v1.1.3+0
+  [a4ae2306] libaom_jll v3.11.0+0
   [0ac62f75] libass_jll v0.15.2+0
   [1183f4f0] libdecor_jll v0.2.2+0
   [2db6ffa8] libevdev_jll v1.11.0+0
   [f638f0a6] libfdk_aac_jll v2.0.3+0
   [36db933b] libinput_jll v1.18.0+0
-  [b53b4c65] libpng_jll v1.6.44+0
+  [b53b4c65] libpng_jll v1.6.46+0
   [f27f6e37] libvorbis_jll v1.3.7+2
   [009596ad] mtdev_jll v1.1.6+0
   [1317d2d5] oneTBB_jll v2021.12.0+0
@@ -289,4 +290,4 @@
   [8e850b90] libblastrampoline_jll v5.11.0+0
   [8e850ede] nghttp2_jll v1.52.0+1
   [3f19e933] p7zip_jll v17.4.0+2
-Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`

You can also download the manifest file and the project file.

+Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`

You can also download the manifest file and the project file.

diff --git a/dev/objects.inv b/dev/objects.inv index 184db07..b3d03d3 100644 Binary files a/dev/objects.inv and b/dev/objects.inv differ diff --git a/dev/search_index.js b/dev/search_index.js index f635cf5..d9b7b18 100644 --- a/dev/search_index.js +++ b/dev/search_index.js @@ -1,3 +1,3 @@ var documenterSearchIndex = {"docs": -[{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"EditURL = \"../../../examples/scenario_analysis_via_shock.jl\"","category":"page"},{"location":"examples/scenario_analysis_via_shock.html#Scenario-analysis-via-custom-shocks","page":"Shocked simulations","title":"Scenario analysis via custom shocks","text":"","category":"section"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"In this tutorial we will illustrate how to perform a scenario analysis by running the model multiple times under a specific shock and comparing the results with the unshocked model.","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"import BeforeIT as Bit\nusing Plots, StatsPlots\n\nparameters = Bit.AUSTRIA2010Q1.parameters\ninitial_conditions = Bit.AUSTRIA2010Q1.initial_conditions","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Initialise the model and the data collector","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"T = 20\nmodel = Bit.init_model(parameters, initial_conditions, T);\nnothing #hide","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Simulate the model for T quarters","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"data_vec_baseline = Bit.run_n_sims(model, 4)","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Now, apply a shock to the model and simulate it again. A shock is simply a function that takes the model and changes some of its parameters for a specific time period.","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"In this case, let's define an interest rate shock that sets the interest rate for a number of epochs.","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"We do this by first defining a \"struct\" with some useful attributes","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"struct CustomShock\n rate::Float64 # target rate for the first 10 epochs\n final_time::Int # number of epochs for the shock\nend","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"and then by making the struct a callable function that changes the interest rate in the model, this is done in Julia using the syntax below","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"function (s::CustomShock)(model::Bit.Model)\n if model.agg.t <= s.final_time\n model.cb.r_bar = s.rate\n end\nend","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Now we define a specific shock with a rate of 0.01 for the first 10 epochs, and run a shocked simulation","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"custom_shock = CustomShock(0.0, 10)\ndata_vec_shocked = Bit.run_n_sims(model, 4; shock = custom_shock)","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Finally, we can plot baseline and shocked simulations","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Te = T + 1\nStatsPlots.errorline(\n 1:Te,\n data_vec_baseline.real_gdp,\n errortype = :sem,\n label = \"baseline\",\n titlefont = 10,\n xlabel = \"quarters\",\n ylabel = \"GDP\",\n)\nStatsPlots.errorline!(\n 1:Te,\n data_vec_shocked.real_gdp,\n errortype = :sem,\n label = \"shock\",\n titlefont = 10,\n xlabel = \"quarters\",\n ylabel = \"GDP\",\n)","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Note that, importantly, once the function central_bank_rate has been changed, the model will use the new interest rate in all the simulations, unless the function is changed again. To restore the original interest rate, we can simply re-import the function central_bank_rate.","category":"page"},{"location":"api.html","page":"API","title":"API","text":"CurrentModule = BeforeIT ","category":"page"},{"location":"api.html","page":"API","title":"API","text":"Pages = [\"api.md\"]","category":"page"},{"location":"api.html#Code-reference","page":"API","title":"Code reference","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"In this page we document the functions which constitute the bulk of BeforeIT.jl functionality.","category":"page"},{"location":"api.html#Agent-types","page":"API","title":"Agent types","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"agents.jl\"]","category":"page"},{"location":"api.html#BeforeIT.Aggregates","page":"API","title":"BeforeIT.Aggregates","text":"This is a Aggregates type. It is used to store the aggregate variables of the economy. Note that t is an integer, while the rest are floats or vectors of floats.\n\nFields\n\nY [vector]: GDP data + predictions\npi_ [vector]: inflation data + predictions\nP_bar: Global price index\nP_bar_g [vector]: Producer price index for principal good g\nP_bar_HH: Consumer price index\nP_bar_CF: Capital price index\nP_bar_h: CPI_h\nP_bar_CF_h: Capital price index _h\nY_e: Expected GDP\ngamma_e: Expected growth\npi_e: Expected inflation\nt: Time index\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Bank","page":"API","title":"BeforeIT.Bank","text":"This is a Bank type. It represents the bank of the model.\n\nFields\n\nE_k: equity capital (common equity) of the bank\nPi_k: Profits of the bank\nPi_e_k: Expected profits of the bank\nD_k: Residual and balancing item on the bank’s balance sheet\nr: Rate for loans and morgages\n\nHousehold fields (bank' owner)\n\nY_h: Net disposable income of bank owner (investor)\nC_d_h: Consumption budget\nI_d_h: Investment budget\nC_h: Realised consumption\nI_h: Realised investment\nK_h: Capital stock\nD_h: Deposits\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.CentralBank","page":"API","title":"BeforeIT.CentralBank","text":"This is a CentralBank type. It represents the central bank of the model.\n\nFields\n\nr_bar: Nominal interest rate\nr_G: Interest rate on government bonds\nrho: Parameter for gradual adjustment of the policy rate\nr_star: Real equilibrium interest rate\npi_star: Inflation target by CB\nxi_pi: Weight the CB puts on inflation targeting\nxi_gamma: Weight placed on economic\nE_CB: Central bank equity\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Firms","page":"API","title":"BeforeIT.Firms","text":"This is a Firms type. Each field is an array which stores the values for all the firms in the economy. Note that the G_i, N_i and V_i fields are integers, while the rest are floats.\n\nFor all fields the entry at index i corresponds to the ith firm.\n\nFields\n\nG_i: Principal product\nalpha_bar_i: Average productivity of labor\nbeta_i: Productivity of intermediate consumption\nkappa_i: Productivity of capital\nw_i: Wages\nw_bar_i: Average wage rate\ndelta_i: Depreciation rate for capital\ntau_Y_i: Net tax rate on products\ntau_K_i: Net tax rate on production\nN_i: Number of persons employed\nY_i: Production of goods\nQ_i: Sales of goods\nQ_d_i: Demand for goods\nP_i: Price\nS_i: Inventories\nK_i: Capital, in real terms\nM_i: Intermediate goods/services and raw materials, in real terms\nL_i: Outstanding loans\npi_bar_i: Operating margin\nD_i: Deposits of the firm\nPi_i: Profits\nV_i: Vacancies\nI_i: Investments\nE_i: Equity\nP_bar_i: Price index\nP_CF_i: Price index\nDS_i: Differnece in stock of final goods\nDM_i: Difference in stock of intermediate goods\nDL_i: Obtained loans\nDL_d_i: Target loans\nK_e_i: Expected capital \nL_e_i: Expected loans\nQ_s_i: Expected sales\nI_d_i: Desired investments\nDM_d_i: Desired materials\nN_d_i: Desired employment\nPi_e_i: Expected profits\n\nHousehold fields (firms' owners)\n\nY_h: Net disposable income of firm owner (investor)\nC_d_h: Consumption budget\nI_d_h: Investment budget\nC_h: Realised consumption\nI_h: Realised investment\nK_h: Capital stock\nD_h: Deposits of the owner of the firms\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Government","page":"API","title":"BeforeIT.Government","text":"This is a Government type. It represents the government of the model.\n\nFields\n\nalpha_G: Autoregressive coefficient for government consumption\nbeta_G: Scalar constant for government consumption\nsigma_G: Variance coefficient for government consumption\nY_G: Government revenues\nC_G: Consumption demand of the general government\nL_G: Loans taken out by the government\nsb_inact: Social benefits for inactive persons\nsb_other: Social benefits for all\nC_d_j [vector]: Local governments consumption demand\nC_j: Realised government consumption\nP_j: Price inflation of government goods <- ??\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Model","page":"API","title":"BeforeIT.Model","text":"This is a Model type. It is used to store all the agents of the economy.\n\nFields\n\nw_act: Workers that are active\nw_inact: Workers that are inactive\nfirms: Firms\nbank: Bank\ncb: CentralBank\ngov: Government\nrotw: RestOfTheWorld\nagg: Aggregates\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.RestOfTheWorld","page":"API","title":"BeforeIT.RestOfTheWorld","text":"This is a RestOfTheWorld type. It represents the rest of the world of the model.\n\nFields\n\nalpha_E: Autoregressive coefficient for exports\nbeta_E: Scalar constant for exports\nsigma_E: Variance coefficient for exports\nalpha_I: Autoregressive coefficient for imports\nbeta_I: Scalar constant for imports\nsigma_I: Variance coefficient for imports\nY_EA: GDP euro area\ngamma_EA: Growth euro area\npi_EA: Inflation euro area\nalpha_pi_EA: Autoregressive coefficient for euro area inflation\nbeta_pi_EA: Autoregressive coefficient for euro area inflation Scalar constant for euro area inflation\nsigma_pi_EA: Variance coefficient for euro area inflation\nalpha_Y_EA: Autoregressive coefficient for euro area GDP\nbeta_Y_EA: Autoregressive coefficient for euro area GDP Scalar constant for euro area GDP\nsigma_Y_EA: Variance coefficient for euro area GDP\nD_RoW: Net creditor/debtor position of the national economy to the rest of the world\nY_I: Supply of imports (in real terms)\nC_E: Total demand for exports\nC_d_l [vector]: Demand for exports of specific product\nC_l: Realised consumption by foreign consumers\nY_m [vector]: Supply of imports per sector\nQ_m [vector]: Sales for imports per sector\nQ_d_m [vector]: Demand for goods\nP_m [vector]: Price of imports per sector\nP_l: Price inflation of exports <- ??\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Workers","page":"API","title":"BeforeIT.Workers","text":"This is a Workers. Each field is an array which stores the values for all the workers in the economy. Note that the O_h field is an integer, while the rest are floats.\n\nFor all fields the entry at index i corresponds to the ith worker.\n\nFields\n\nY_h: Net disposable income of worker owner (investor)\nD_h: Deposits\nK_h: Capital stock\nw_h: Wages (0 if inactive or unemployed)\nO_h: Occupation (0 if unemployed, -1 if inactive)\nC_d_h: Consumption budget\nI_d_h: Investment budget\nC_h: Realised consumption\nI_h: Realised investment\n\n\n\n\n\n","category":"type"},{"location":"api.html#Initialisation-function","page":"API","title":"Initialisation function","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"init.jl\"]","category":"page"},{"location":"api.html#BeforeIT.init_model","page":"API","title":"BeforeIT.init_model","text":"init_model(parameters, initial_conditions, T, typeInt = Int64, typeFloat = Float64)\n\nInitializes the model with given parameters and initial conditions.\n\nParameters:\n\nparameters: A dictionary containing the model parameters.\ninitial_conditions: A dictionary containing the initial conditions.\nT (integer): The time horizon of the model.\ntypeInt: (optional, default: Int64): The data type to be used for integer values.\ntypeFloat: (optional, default: Float64): The data type to be used for floating-point values.\n\nReturns:\n\nmodel::Model: The initialized model.\n\n\n\n\n\n","category":"function"},{"location":"api.html#BeforeIT.update_variables_with_totals!-Tuple{Model}","page":"API","title":"BeforeIT.update_variables_with_totals!","text":"update_variables_with_totals!(model::Model)\n\nUpdate the variables in the given model with some global quantities obtained from all agents. This is the last step in the initialization process and it must be performed after all agents have been initialized.\n\nArguments\n\nmodel::Model: The model object to update.\n\nReturns\n\nNothing\n\n\n\n\n\n","category":"method"},{"location":"api.html#Functions-to-run-an-entire-simulation","page":"API","title":"Functions to run an entire simulation","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"one_epoch.jl\", \"one_simulation.jl\"]","category":"page"},{"location":"api.html#BeforeIT.run_one_epoch!-Tuple{Any}","page":"API","title":"BeforeIT.run_one_epoch!","text":"run_one_epoch!(model; multi_threading = false)\n\nThis function simulates a single epoch the economic model, updating various components of the model based the interactions between different economic agents. It accepts a model object, which encapsulates the state for the simulation, and an optional boolean parameter multi_threading to enable or disable multi-threading.\n\nKey operations performed include:\n\nFinancial adjustments for firms and banks, including insolvency checks and profit calculations.\nEconomic expectations and adjustments, such as growth, inflation, and central bank rates.\nLabor and credit market operations, including wage updates and loan processing.\nHousehold economic activities, including consumption and investment budgeting.\nGovernment and international trade financial activities, including budgeting and trade balances.\nGeneral market matching and accounting updates to reflect changes in economic indicators and positions.\n\nThe function updates the model in-place and does not return any value.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.run_n_sims-Tuple{Any, Any}","page":"API","title":"BeforeIT.run_n_sims","text":"run_n_sims(model, n_sims; shock = NoShock(), multi_threading = true)\n\nA function that runs n_sims simulations in parallel with multiple threading and returns a vector of data objects of dimension n_sims.\n\nArguments\n\nmodel: The model configuration used to simulate.\nn_sims: The number of simulations to run in parallel.\n\nReturns\n\ndata_vector: A vector containing the data objects collected during each simulation.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.run_one_sim!-Tuple{Any}","page":"API","title":"BeforeIT.run_one_sim!","text":"run_one_sim!(model; shock = NoShock())\n\nRun a single simulation based on the provided model. The simulation runs for a number of epochs specified by model.prop.T.\n\nArguments\n\nmodel::Model: The model configuration used for the simulation.\n\nReturns\n\ndata::Data: The data collected during the simulation.\n\nDetails\n\nThe function initializes the data using BeforeIT.init_data(model), then iteratively updates the model and data for each epoch using BeforeIT.run_one_epoch!(model) and BeforeIT.update_data!(data, model) respectively.\n\nExample\n\n```julia model = BeforeIT.initmodel(parameters, initialconditions, T) data = runonesim!(model)\n\n\n\n\n\n","category":"method"},{"location":"api.html#Firms-actions","page":"API","title":"Firms actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"firms.jl\"]","category":"page"},{"location":"api.html#BeforeIT.firms_deposits-Tuple{Any, Any}","page":"API","title":"BeforeIT.firms_deposits","text":"firms_deposits(firms, model)\n\nCalculate the new deposits of firms.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nDD_i: Vector of new deposits\n\nThe new deposits DD_i are calculated as follows:\n\nDD_i = sales + labour_cost + material_cost + taxes_products + taxes_production + corporate_tax + dividend_payments + interest_payments + interest_received + investment_cost + new_credit + debt_installment\n\nwhere:\n\nsales = P_i * Q_i\nlabour_cost = (1 + tau_SIF) * w_i * N_i * P_bar_HH\nmaterial_cost = -DM_i * P_bar_i\ntaxes_products = -tau_Y_i * P_i * Y_i\ntaxes_production = -tau_K_i * P_i * Y_i\ncorporate_tax = -tau_FIRM * pos(Pi_i)\ndividend_payments = -theta_DIV * (1 - tau_FIRM) * pos(Pi_i)\ninterest_payments = -r * (L_i + pos(-D_i))\ninterest_received = r_bar * pos(D_i)\ninvestment_cost = -P_CF_i * I_i\nnew_credit = DL_i\ndebt_installment = -theta * L_i\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_equity-Tuple{Any, Any}","page":"API","title":"BeforeIT.firms_equity","text":"firms_equity(firms, model)\n\nCalculate the equity of firms.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nE_i: Vector of equity\n\nThe equity E_i is calculated as follows:\n\nE_i = D_i + M_i * sum(a_sg G_i * barP_g) + P_i * S_i + barP_CF * K_i - L_i\n\nwhere:\n\nD_i: Deposits\nM_i: Intermediate goods\na_sg: Technology coefficient of the gth product in the sth industry\nG_i: Vector of goods\nP_bar_g: Producer price index for principal good g\nP_i: Price\nS_i: Stock\nP_bar_CF: Capital price index\nK_i: Capital stock\nL_i: Loans\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_expectations_and_decisions-Tuple{Any, Any}","page":"API","title":"BeforeIT.firms_expectations_and_decisions","text":"firms_expectations_and_decisions(firms, model)\n\nCalculate the expectations and decisions of firms. That is: compute firm quantity, price, investment and intermediate-goods, employment decisions, expected profits, and desired/expected loans and capital.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nQ_s_i: Vector of desired quantities\nI_d_i: Vector of desired investments\nDM_d_i: Vector of desired intermediate goods\nN_d_i: Vector of desired employment\nPi_e_i: Vector of expected profits\nDL_d_i: Vector of desired new loans\nK_e_i: Vector of expected capital\nL_e_i: Vector of expected loans\nP_i: Vector of prices\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_loans-Tuple{Any, Any}","page":"API","title":"BeforeIT.firms_loans","text":"firms_loans(firms, model)\n\nCalculate the new loans of firms.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nL_i: Vector of new loans\n\nThe new loans L_i are calculated as follows:\n\nL_i = (1 - theta) * L_i + DL_i\n\nwhere:\n\ntheta: Rate of repayment\nL_i: Loans\nDL_i: Acquired new loans\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_production-Tuple{AbstractFirms}","page":"API","title":"BeforeIT.firms_production","text":"firms_production(firms)\n\nCalculate the production of firms.\n\nArguments\n\nfirms: Firms object\n\nReturns\n\nY_i: Vector of production\n\nThe production Y_i is computed using a Leontief technology.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_profits-Tuple{AbstractFirms, Model}","page":"API","title":"BeforeIT.firms_profits","text":"firms_profits(firms, model)\n\nCalculate the profits of firms.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nPi_i: Vector of profits\n\nThe profits Pi_i are calculated as follows:\n\nPi_i = in_sales + in_deposits - out_wages - out_expenses - out_depreciation - out_taxes_prods - out_taxes_capital - out_loans\n\nwhere:\n\nin_sales = P_i * Q_i + P_i * DS_i\nin_deposits = r_bar * pos(D_i)\nout_wages = (1 + tau_SIF) * w_i * N_i * P_bar_HH\nout_expenses = 1 / beta_i * P_bar_i * Y_i\nout_depreciation = delta_i / kappa_i * P_CF_i * Y_i\nout_taxes_prods = tau_Y_i * P_i * Y_i\nout_taxes_capital = tau_K_i * P_i * Y_i\nout_loans = r * (L_i + pos(-D_i))\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_stocks-Tuple{Any}","page":"API","title":"BeforeIT.firms_stocks","text":"firms_stocks(firms)\n\nCalculate the stocks of firms.\n\nArguments\n\nfirms: Firms object\n\nReturns\n\nK_i: Vector of capital stock\nM_i: Vector of intermediate goods\nDS_i: Vector of differneces in stock of final goods\nS_i: Vector of stock of final goods\n\nThe stocks are calculated as follows:\n\nK_i = K_i - delta_i / kappa_i * Y_i + I_i\nM_i = M_i - Y_i / beta_i + DM_i\nDS_i = Y_i - Q_i\nS_i = S_i + DS_i\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_wages-Tuple{AbstractFirms}","page":"API","title":"BeforeIT.firms_wages","text":"firms_wages(firms)\n\nCalculate the wages set by firms.\n\nArguments\n\nfirms: Firms object\n\nReturns\n\nw_i: Vector of wages\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.init_firms-Tuple{Any, Any}","page":"API","title":"BeforeIT.init_firms","text":"init_firms(parameters, initial_conditions; typeInt = Int64, typeFloat = Float64)\n\nInitialize firms with given parameters and initial conditions.\n\nArguments\n\nparameters: The parameters for initializing the firms.\ninitial_conditions: The initial conditions for the firms.\ntypeInt: (optional) The integer type to be used. Default is Int64.\ntypeFloat: (optional) The floating-point type to be used. Default is Float64.\n\nReturns\n\nfirms::Firms: The initialized firms.\nfirms_args::Tuple: The arguments used to initialize the firms.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.leontief_production-NTuple{7, Any}","page":"API","title":"BeforeIT.leontief_production","text":"leontief_production(Q_s_i, N_i, alpha_i, K_i, kappa_i, M_i, beta_i)\n\nCalculate the production function of firms.\n\nArguments\n\nQ_s_i: Vector of desired quantities\nN_i: Vector of employment\nalpha_i: Vector of labour productivity\nK_i: Vector of capital stock\nkappa_i: Vector of capital productivity\nM_i: Vector of intermediate goods\nbeta_i: Vector of intermediate goods productivity\n\nReturns\n\nY_i: Vector of production\n\nThe Leontief production function Y_i is calculated as follows:\n\nY_i = min(Q_s_i min(N_i cdot alpha_i min(K_i cdot kappa_i M_i cdot beta_i)))\n\n\n\n\n\n","category":"method"},{"location":"api.html#Households-actions","page":"API","title":"Households actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"households.jl\"]","category":"page"},{"location":"api.html#Government-actions","page":"API","title":"Government actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"government.jl\"]","category":"page"},{"location":"api.html#BeforeIT.gov_expenditure-Tuple{Any, Any}","page":"API","title":"BeforeIT.gov_expenditure","text":"gov_expenditure(gov::AbstractGovernment, model)\n\nComputes government expenditure on consumption and transfers to households.\n\nArguments\n\ngov: government object\nmodel: model object\n\nReturns\n\nC_G: government consumption\nC_d_j: local government consumptions\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.gov_loans-Tuple{Any, Any}","page":"API","title":"BeforeIT.gov_loans","text":"gov_loans(gov::AbstractGovernment, model, Y_G)\n\nComputes government new government debt.\n\nArguments\n\ngov::AbstractGovernment: government object\nmodel: model object\n\nReturns\n\nL_G: new government debt\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.gov_revenues-Tuple{Model}","page":"API","title":"BeforeIT.gov_revenues","text":"gov_revenues(model)\n\nComputes government revenues from taxes and social security contributions. The government collects taxes on labour income, capital income, value added, and corporate income. It also collects social security contributions from workers and firms. The government also collects taxes on consumption and capital formation. Finally, the government collects taxes on exports and imports.\n\nArguments\n\nmodel: model object\n\nReturns\n\nY_G: government revenues\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.gov_social_benefits-Tuple{AbstractGovernment, Any}","page":"API","title":"BeforeIT.gov_social_benefits","text":"gov_social_benefits(gov::AbstractGovernment, model)\n\nComputes social benefits paid by the government households.\n\nArguments\n\ngov: government object\nmodel: model object\n\nReturns\n\nsb_other: social benefits for other households\nsb_inact: social benefits for inactive households\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.init_government-Tuple{Any, Any}","page":"API","title":"BeforeIT.init_government","text":"init_government(parameters, initial_conditions; typeInt = Int64, typeFloat = Float64)\n\nInitialize the government agent.\n\nArguments\n\nparameters: The parameters.\ninitial_conditions: The initial conditions.\ntypeInt: The integer type to be used (default: Int64).\ntypeFloat: The floating-point type to be used (default: Float64).\n\nReturns\n\nThe initialized government model.\nThe arguments used to initialize the government model.\n\n\n\n\n\n","category":"method"},{"location":"api.html#Bank-and-Central-Bank-actions","page":"API","title":"Bank and Central Bank actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"bank.jl\"]","category":"page"},{"location":"api.html#BeforeIT._bank_deposits-NTuple{7, Any}","page":"API","title":"BeforeIT._bank_deposits","text":"_deposit_bank(waD_h, wiD_h, fD_h, bD_h, fD_i, bE_k, fL_i)\n\nHelper function to calculate the new deposits of a bank.\n\nArguments\n\nwaD_h: Array of deposits from active workers\nwiD_h: Array of deposits from inactive workers\nfD_h: Array of deposits from firms\nbD_h: Deposits from the bank owner\nfD_i: Array of deposits from firms\nbE_k: Bank equity\nfL_i: Array of loans to firms\n\nReturns\n\nD_k: New deposits of the bank\n\nThe new deposits D_k are calculated as the sum of the deposits of the active workers, the inactive workers, the firms, and the bank owner itself, plus the bank's equity, minus the loans of the firms.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT._bank_profits-Union{Tuple{T}, Tuple{AbstractVector{T}, AbstractVector{T}, AbstractVector{T}, T, T, T}} where T","page":"API","title":"BeforeIT._bank_profits","text":"_bank_profits(L_i, D_i, D_h, D_k, r_bar, r)\n\nHelper function to calculate the total profits of a bank.\n\nArguments\n\nL_i: Array of loans provided by the bank\nD_i: Array of deposits from firms\nD_h: Array of deposits from households\nD_k: Residual and balancing item on the bank’s balance sheet\nr_bar: Base interest rate\nr: Interest rate set by the bank\n\nReturns\n\nPi_k: Total profits of the bank\n\nThe total profits Pi_k are calculated as follows:\n\nPi_k = r cdot sum_i(L_i + max(0 -D_i)) + r cdot sum_h(max(0 -D_h)) + r_bar \ncdot max(0 D_k) - r_bar cdot sum_i(max(0 D_i)) - r_bar cdot \nsum_h(max(0 D_h)) - r_bar cdot max(0 -D_k)\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT._central_bank_profits-NTuple{4, Any}","page":"API","title":"BeforeIT._central_bank_profits","text":"_central_bank_profits(r_bar, D_k, L_G, r_G)\n\nHelper function to calculate the profits of a central bank.\n\nArguments\n\nr_bar: The base interest rate\nD_k: Deposits from commercial banks\nL_G: Loans provided to the government\nr_G: Interest rate on government loans\n\nReturns\n\nPi_CB: Profits of the central bank\n\nThe profits Pi_CB are calculated as follows:\n\nPi_CB = r_G cdot L_G - r_bar cdot D_k\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_deposits-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_deposits","text":"deposits_bank(bank, w_act, w_inact, firms)\n\nCalculate the new deposits of a bank.\n\nArguments\n\nbank: The Bank object containing the bank of the model\nw_act: The Workers object containing the active workers of the model\nw_inact: The Workers object containing the inactive workers of the model\nfirms: The Firms object containing the firms of the model\n\nReturns\n\nD_k: New deposits of the bank\n\nThe new deposits D_k are calculated as the sum of the deposits of the active workers, the inactive workers, the firms, and the bank owner itself, plus the bank's equity, minus the loans of the firms.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_equity-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_equity","text":"bank_equity(bank, model)\n\nCalculate the net profits of a bank.\n\nArguments\n\nbank: The bank object.\nmodel: The model object.\n\nReturns\n\nE_k: The updated equity of the bank.\n\nThe net profits DE_k are calculated as:\n\nDE_k = Pi_k - theta_DIV cdot (1 - tau_FIRM) cdot max(0 Pi_k) - tau_FIRM cdot max(0 Pi_k)\n\nand the equity E_k is updated as:\n\nE_k = E_k + DE_k\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_expected_profits-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_expected_profits","text":"bank_expected_profits(Pi_k, pi_e, gamma_e)\n\nCalculate the expected profits of a bank.\n\nArguments\n\nPi_k: Past profits of the bank\npi_e: Expected inflation rate\ngamma_e: Expected growth rate\n\nReturns\n\nE_Pi_k: Expected profits of the bank\n\nThe expected profits E_Pi_k are calculated as follows:\n\nE_Pi_k = Pi_k cdot (1 + pi_e) cdot (1 + gamma_e)\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_profits-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_profits","text":"bank_profits(bank, model)\n\nCalculate the total profits of a bank.\n\nArguments\n\nbank: The bank object.\nmodel: The model object.\n\nReturns\n\nPi_k: The total profits of the bank.\n\nThe total profits Pi_k are calculated as:\n\nPi_k = r cdot sum_i(L_i + max(0 -D_i)) + r cdot sum_h(max(0 -D_h)) + r_bar\ncdot max(0 D_k) - r_bar cdot sum_i(max(0 D_i)) - r_bar cdot\nsum_h(max(0 D_h)) - r_bar cdot max(0 -D_k)\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_rate-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_rate","text":"bank_rate(bank, model)\n\nUpdate the interest rate set by the bank.\n\nArguments\n\nbank: The bank whose interest rate is to be updated\nmodel: Model object\n\nReturns\n\nr: The updated interest rate\n\nr = barr + mu\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.central_bank_equity-Tuple{Any, Any}","page":"API","title":"BeforeIT.central_bank_equity","text":"central_bank_equity(cb, model)\n\nCalculate the equity of the central bank.\n\nArguments\n\ncb: The central bank\nmodel: The model object\n\nReturns\n\nE_CB: The equity of the central bank\n\nThe equity E_CB is calculated as follows:\n\nE_CB = E_CB + Pi_CB\n\nwhere \\Pi_{CB} are the profits of the central bank.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.central_bank_rate-Tuple{AbstractCentralBank, Model}","page":"API","title":"BeforeIT.central_bank_rate","text":"central_bank_rate(cb, model)\n\nUpdate the base interest rate set by the central bank according to the Taylor rule.\n\nArguments\n\ncb: The central bank whose base interest rate is to be updated\nmodel: The model object\n\nReturns\n\nr_bar: The updated base interest rate\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.finance_insolvent_firms!-Tuple{AbstractFirms, AbstractBank, Any}","page":"API","title":"BeforeIT.finance_insolvent_firms!","text":"finance_insolvent_firms!(firms, bank, P_bar_CF, zeta_b, insolvent)\n\nRifinance insolvent firms using bank equity.\n\nArguments\n\nfirms: The Firms object containing the firms of the model\nbank: The Bank object containing the bank of the model\nP_bar_CF: Capital price index\nzeta_b: Parameter of loan-to-capital ratio for new firms after bankruptcy\n\nReturns\n\nThis function does not return a value. It modifies the banks and firms collections in-place.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.taylor_rule-Union{Tuple{T}, NTuple{8, T}} where T","page":"API","title":"BeforeIT.taylor_rule","text":"taylor_rule(rho, r_bar, r_star, pi_star, xi_pi, xi_gamma, gamma_EA, pi_EA)\n\nCalculate the interest rate according to the Taylor rule.\n\nArguments\n\nrho: Parameter for gradual adjustment of the policy rate.\nr_bar: Nominal interest rate.\nr_star: Real equilibrium interest rate.\npi_star: The target inflation rate.\nxi_pi: Weight the CB puts on inflation targeting.\nxi_gamma: Weight placed on economic growth.\ngamma_EA: The output growth rate.\npi_EA: The inflation rate.\n\nReturns\n\nrate: The calculated interest rate.\n\nThe Taylor rule is given by the following equation:\n\nr_t = ρ * r_t-1 + (1 - ρ) * (r^* + π^* + ξ_π * (π_t - π^*) + ξ_γ * γ_t)\n\n\n\n\n\n","category":"method"},{"location":"api.html#Rest-Of-The-World-actions","page":"API","title":"Rest Of The World actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"rotw.jl\"]","category":"page"},{"location":"api.html#BeforeIT.rotw_deposits-Tuple{Any, Any}","page":"API","title":"BeforeIT.rotw_deposits","text":"rotw_deposits(rotw, tau_EXPORT)\n\nCalculate the deposits of the rest of the world.\n\nArguments\n\nrotw: The rest of the world object.\ntau_EXPORT: The export tax.\n\nReturns\n\nD_RoW: The deposits of the rest of the world.\n\nThe deposits D_RoW are calculated as follows:\n\nD_RoW = D_RoW + left( sum_m P_m cdot Q_m right) - (1 + tau_EXPORT) cdot C_l\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.rotw_import_export-Tuple{Any, Any}","page":"API","title":"BeforeIT.rotw_import_export","text":"rotw_import_export(rotw, model, pi_e, epsilon_E, epsilon_I)\n\nCalculate the demand for exports and supply of imports of the rest of the world.\n\nArguments\n\nrotw: The rest of the world object.\nmodel: The model object.\n\nReturns\n\nC_E: Total demand for exports.\nY_I: Supply of imports (in real terms).\nC_d_l: TDemand for exports of specific product.\nY_m: Supply of imports per sector.\nP_m: Price of imports per sector.\n\n\n\n\n\n","category":"method"},{"location":"api.html#Markets","page":"API","title":"Markets","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"search_and_matching_credit.jl\", \"search_and_matching_labour.jl\", \"search_and_matching.jl\"]","category":"page"},{"location":"api.html#BeforeIT.search_and_matching_credit-Tuple{AbstractFirms, Any}","page":"API","title":"BeforeIT.search_and_matching_credit","text":"search_and_matching_credit(firms::Firms, model)\n\nThis function calculates the credit allocation for each firm in the given firms object.\n\nParameters:\n\nfirms::Firms: The firms object.\nmodel: The model object.\n\nReturns:\n\nDL_i: An array of credit allocations for each firm.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.search_and_matching_labour-Tuple{AbstractFirms, Any}","page":"API","title":"BeforeIT.search_and_matching_labour","text":"search_and_matching_labour(firms::Firms, model)\n\nThis function implements a labor search and matching algorithm. It takes in a Firms object and a Model object as input. The Firms object contains information about the number of desired employees (N_d_i) and the current number of employees (N_i) for each firm. The model object contains information about the current employment status (O_h) of each worker.\n\nThe function performs the following steps:\n\nCalculates the vacancies (V_i) for each firm as the difference between desired and current employees.\nIdentifies employed workers and shuffles them randomly.\nFires workers from firms with negative vacancies to adjust the workforce.\nIdentifies unemployed workers and firms with positive vacancies.\nRandomly matches unemployed workers to firms with vacancies until all vacancies are filled or there are no more unemployed workers.\n\nThe function returns:\n\nN_i: An updated array of the number of employed workers for each firm.\nO_h: An updated array where each element represents the firm a worker is employed with (0 if unemployed).\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.perform_firms_market!-NTuple{15, Any}","page":"API","title":"BeforeIT.perform_firms_market!","text":"Perform the firms market exchange process\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.perform_retail_market!-NTuple{31, Any}","page":"API","title":"BeforeIT.perform_retail_market!","text":"Perform the retail market exchange process\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.search_and_matching!","page":"API","title":"BeforeIT.search_and_matching!","text":"search_and_matching!(model, multi_threading::Bool = false)\n\nThis function performs a search and matching algorithm for firms and for retail markets. It takes in a model object and an optional boolean argument for multi-threading. The function loops over all goods and performs the firms market and retail market operations for each good. Finally, it updates the aggregate variables based on the results of markets.\n\nArgs:\n\nmodel: The model object\nmulti_threading: A boolean indicating whether to use multi-threading for the algorithm. Default is false.\n\nThis function updates the model in-place and does not return any value.\n\n\n\n\n\n","category":"function"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"EditURL = \"../../../examples/basic_example.jl\"","category":"page"},{"location":"examples/basic_example.html#Essential-use-of-BeforeIT","page":"Essentials","title":"Essential use of BeforeIT","text":"","category":"section"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We start by importing the BeforeIT library and other useful libraries.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"import BeforeIT as Bit\nusing FileIO, Plots","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We then initialise the model loading some precomputed set of parameters and by specifying a number of epochs. In another tutorial we will illustrate how to compute parameters and initial conditions.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"parameters = Bit.AUSTRIA2010Q1.parameters\ninitial_conditions = Bit.AUSTRIA2010Q1.initial_conditions","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can now initialise the model, by specifying in advance the maximum number of epochs.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"T = 16\nmodel = Bit.init_model(parameters, initial_conditions, T)","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Note that the it is very simple to inspect the model by typing","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"fieldnames(typeof(model))","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"and to inspect the specific attributes of one agent type by typing","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"fieldnames(typeof(model.bank))","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can now define a data tracker, which will store the time series of the model.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"data = Bit.init_data(model);\nnothing #hide","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can run now the model for a number of epochs and progressively update the data tracker.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"for t in 1:T\n Bit.run_one_epoch!(model; multi_threading = true)\n Bit.update_data!(data, model)\nend","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Note that we can equivalently run the model for a number of epochs in the single command data = BeforeIT.run_one_sim!(model), but writing the loop explicitely is more instructive.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can then plot any time series stored in the data tracker, for example","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"plot(data.real_gdp, title = \"gdp\", titlefont = 10)","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Or we can plot multiple time series at once using the function plot_data","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"ps = Bit.plot_data(data, quantities = [:real_gdp, :real_household_consumption, :real_government_consumption, :real_capitalformation, :real_exports, :real_imports, :wages, :euribor, :gdp_deflator])\nplot(ps..., layout = (3, 3))","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"To run multiple monte-carlo repetitions in parallel we can use","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"model = Bit.init_model(parameters, initial_conditions, T)\ndata_vector = Bit.run_n_sims(model, 4)","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Note that this will use the number of threads specified when activating the Julia environment. To discover the number of threads available, you can use the command","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Threads.nthreads()","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"To activate Julia with a specific number of threads, say 8, you can use the command julia -t 8 in the terminal.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can then plot the results of the monte-carlo repetitions using the function plot_data_vector","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"ps = Bit.plot_data_vector(data_vector)\nplot(ps..., layout = (3, 3))","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"EditURL = \"../../../examples/change_expectations.jl\"","category":"page"},{"location":"examples/change_expectations.html#Changing-expectations-via-function-overloading","page":"Experimentations (advanced)","title":"Changing expectations via function overloading","text":"","category":"section"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"In this tutorial we will illustrate how to experiment with different expectations of the agents in the model.","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"import BeforeIT as Bit\nusing Random, Plots","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Import standard parameters and initial conditions","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"par = Bit.AUSTRIA2010Q1.parameters\ninit = Bit.AUSTRIA2010Q1.initial_conditions","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Set the seed, initialise the model and run one simulation","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Random.seed!(1234)\nT = 40\nmodel = Bit.init_model(par, init, T)\ndata = Bit.run_one_sim!(model)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Now we can experiment with changing expectations of the agents in the model. We will change the function estimate_next_value to make the agents expect the last value of the time series (so to represent backward looking expectations)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"import BeforeIT: estimate_next_value\nfunction estimate_next_value(data)\n return data[end]\nend","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Run the model again, with the same seed","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Random.seed!(1234)\nmodel = Bit.init_model(par, init, T)\ndata_back = Bit.run_one_sim!(model)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Plot the results, comparing the two cases as different lines","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"p1 = plot(data.real_gdp, title = \"gdp\", titlefont = 10, label = \"forward looking\")\nplot!(p1, data_back.real_gdp, titlefont = 10, label = \"backward looking\")\n\np2 = plot(data.real_household_consumption, title = \"consumption\", titlefont = 10)\nplot!(p2, data_back.real_household_consumption, titlefont = 10, label = \"backward looking\")\n\nplot(p1, p2, layout = (2, 1), legend = true)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Plot all time series","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"p1 = plot(data.real_gdp, title = \"gdp\", titlefont = 10)\nplot!(p1, data_back.real_gdp, titlefont = 10)\np2 = plot(data.real_household_consumption, title = \"household cons.\", titlefont = 10)\nplot!(p2, data_back.real_household_consumption, titlefont = 10)\np3 = plot(data.real_government_consumption, title = \"gov. cons.\", titlefont = 10)\nplot!(p3, data_back.real_government_consumption, titlefont = 10)\np4 = plot(data.real_capitalformation, title = \"capital form.\", titlefont = 10)\nplot!(p4, data_back.real_capitalformation, titlefont = 10)\np5 = plot(data.real_exports, title = \"exports\", titlefont = 10)\nplot!(p5, data_back.real_exports, titlefont = 10)\np6 = plot(data.real_imports, title = \"imports\", titlefont = 10)\nplot!(p6, data_back.real_imports, titlefont = 10)\np7 = plot(data.wages, title = \"wages\", titlefont = 10)\nplot!(p7, data_back.wages, titlefont = 10)\np8 = plot(data.euribor, title = \"euribor\", titlefont = 10)\nplot!(p8, data_back.euribor, titlefont = 10)\np9 = plot(data.nominal_gdp ./ data.real_gdp, title = \"gdp deflator\", titlefont = 10)\nplot!(p9, data_back.nominal_gdp ./ data_back.real_gdp, titlefont = 10)\n\nplot(p1, p2, p3, p4, p5, p6, p7, p8, p9, layout = (3, 3), legend = false)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Note that, importantly, once the function estimate_next_value has been changed, the model will use the new expectations in all the simulations, unless the function is changed again. To restore the original expectations you could close the Julia session.","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"EditURL = \"../../../examples/scenario_analysis_via_overload.jl\"","category":"page"},{"location":"examples/scenario_analysis_via_overload.html#Scenario-analysis-via-function-overloading","page":"Shocked simulations (advanced)","title":"Scenario analysis via function overloading","text":"","category":"section"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"In this tutorial we will illustrate how to perform a scenario analysis by running the model multiple times under a specific shock and comparing the results with the unshocked model.","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"import BeforeIT as Bit\nusing Plots, StatsPlots\n\nparameters = Bit.AUSTRIA2010Q1.parameters\ninitial_conditions = Bit.AUSTRIA2010Q1.initial_conditions","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Initialise the model and the data collector","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"T = 20\nmodel = Bit.init_model(parameters, initial_conditions, T);\ndata = Bit.init_data(model);\nnothing #hide","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Simulate the model for T quarters","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"data_vec_baseline = Bit.run_n_sims(model, 4)","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Now, apply a shock to the model and simulate it again Here, we do this by overloading the centralbankrate function with the wanted behaviour","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"import BeforeIT: central_bank_rate\n\nfunction central_bank_rate(cb::Bit.CentralBank, model::Bit.Model)\n gamma_EA = model.rotw.gamma_EA\n pi_EA = model.rotw.pi_EA\n taylor_rate = Bit.taylor_rule(cb.rho, cb.r_bar, cb.r_star, cb.pi_star, cb.xi_pi, cb.xi_gamma, gamma_EA, pi_EA)\n if model.agg.t < 10\n return 0.01\n else\n return taylor_rate\n end\nend\n\ndata_vec_shocked = Bit.run_n_sims(model, 4)","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Finally, we can plot baseline and shocked simulations","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Te = T + 1\nStatsPlots.errorline(\n 1:Te,\n data_vec_baseline.real_gdp,\n errortype = :sem,\n label = \"baseline\",\n titlefont = 10,\n xlabel = \"quarters\",\n ylabel = \"GDP\",\n)\nStatsPlots.errorline!(\n 1:Te,\n data_vec_shocked.real_gdp,\n errortype = :sem,\n label = \"shock\",\n titlefont = 10,\n xlabel = \"quarters\",\n ylabel = \"GDP\",\n)","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Note that, importantly, once the function central_bank_rate has been changed, the model will use the new interest rate in all the simulations, unless the function is changed again. To restore the original interest rate, you could close and restart the Julia session.","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"EditURL = \"../../../examples/get_parameters_and_initial_conditions.jl\"","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"In this tutorial we illustrate how to calibrate the model to the Italian data for a specific quarter","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"import BeforeIT as Bit\nusing Dates, FileIO","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"We start from loading the calibration object for italy, which contains 4 datasets: calibration_data, figaro, data, and ea. These are saved within BeforeIT.jl for the Italian case, and would need to be appropriately generated for other countries.","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"cal = Bit.ITALY_CALIBRATION\nfieldnames(typeof(cal))","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"These are essentially 4 dictionaries with well defined keys, such as","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"println(keys(cal.calibration))\nprintln(keys(cal.figaro))\nprintln(keys(cal.data))\nprintln(keys(cal.ea))","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"The object also contains two time variables related to the data","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"println(cal.max_calibration_date)\nprintln(cal.estimation_date)","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"We can calibrate the model on a specific quarter as follows","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"calibration_date = DateTime(2010, 03, 31)\nparameters, initial_conditions = Bit.get_params_and_initial_conditions(cal, calibration_date; scale = 0.01)","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"In general, we might want to repeat this operation for multiple quarters. In the following, we loop over all quarters from 2010Q1 to 2019Q4 and save the parameters and initial conditions in separate files. We can then load these files later to run the model for each quarter.","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"start_calibration_date = DateTime(2010, 03, 31)\nend_calibration_date = DateTime(2019, 12, 31)\n\nfor calibration_date in collect(start_calibration_date:Dates.Month(3):end_calibration_date)\n params, init_conds = Bit.get_params_and_initial_conditions(cal, calibration_date; scale = 0.0005)\n save(\n \"data/italy/parameters/\" *\n string(year(calibration_date)) *\n \"Q\" *\n string(Dates.quarterofyear(calibration_date)) *\n \".jld2\",\n params,\n )\n save(\n \"data/italy/initial_conditions/\" *\n string(year(calibration_date)) *\n \"Q\" *\n string(Dates.quarterofyear(calibration_date)) *\n \".jld2\",\n init_conds,\n )\nend","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"CurrentModule = BeforeIT ","category":"page"},{"location":"index.html#Behavioural-agent-based-economic-forecasting-in-Julia","page":"Home","title":"Behavioural agent-based economic forecasting in Julia","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"Welcome to BeforeIT.jl, a Julia implementation of the agent-based model presented in Economic forecasting with an agent-based model, the first ABM matching the performance of traditional economic forecasting tools.","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"With BeforeIT.jl, you can perform economic forecasting and explore different counterfactual scenarios. Thanks to its modular design, the package is also a great starting point for anyone looking to extend its capabilities or integrate it with other tools.","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"Developed in Julia, a language known for its efficiency, BeforeIT.jl is both fast and user-friendly, making it accessible whether you’re an expert programmer or just starting out.","category":"page"},{"location":"index.html#Julia-installation","page":"Home","title":"Julia installation","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"To run this software, you will need a working Julia installation on your machine. If you don't have it installed already, simply follow the short instructions available here.","category":"page"},{"location":"index.html#BeforeIT.jl-Installation","page":"Home","title":"BeforeIT.jl Installation","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"To install BeforeIT.jl, simply open a Julia REPL by writing julia in your terminal, and then execute the following","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using Pkg\nPkg.add(\"BeforeIT\")","category":"page"},{"location":"index.html#Quick-example","page":"Home","title":"Quick example","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"To check that the installation worked, try running the model in your terminal with","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using BeforeIT\n\nparameters = BeforeIT.AUSTRIA2010Q1.parameters\ninitial_conditions = BeforeIT.AUSTRIA2010Q1.initial_conditions\n\nT = 20\nmodel = BeforeIT.initialise_model(parameters, initial_conditions, T)\ndata = BeforeIT.run_one_sim!(model)","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"To plot the results of the simulation, you can use the Plots package","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using Plots\n\nplot(data.real_gdp)","category":"page"},{"location":"index.html#License","page":"Home","title":"License","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"BeforeIT.jl is released under the GNU Affero General Public License v3 or later (AGPLv3+).","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"Copyright 2024 - Banca d'Italia and the authors.","category":"page"},{"location":"index.html#Main-developers-and-maintainers","page":"Home","title":"Main developers and maintainers","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"Aldo Glielmo \nMitja Devetak \nAdriano Meligrana ","category":"page"},{"location":"index.html#Other-collaborators-and-contributors","page":"Home","title":"Other collaborators and contributors","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"Sebastian Poledna \nMarco Benedetti\nSara Corbo for the logo design\nAndrea Gentili for suggesting the name of the pakege\nArnau Quera-Bofarull for help in the deployment of the documentation\nSteven Hoekstra for fixing a bug in a script\nPeter Reschenhofer for fixing a bug in a script","category":"page"},{"location":"index.html#Disclaimer","page":"Home","title":"Disclaimer","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"This package is an outcome of a research project. All errors are those of the authors. All views expressed are personal views, not those of Bank of Italy.","category":"page"},{"location":"index.html#Reproducibility","page":"Home","title":"Reproducibility","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"
The documentation of BeforeIT.jl was built using these direct dependencies,","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using Pkg # hide\nPkg.status() # hide","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
and using this machine and Julia version.","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using InteractiveUtils # hide\nversioninfo() # hide","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
A more complete overview of all dependencies and their versions is also provided.","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using Pkg # hide\nPkg.status(; mode = PKGMODE_MANIFEST) # hide","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using TOML\nusing Markdown\nversion = TOML.parse(read(\"../../Project.toml\", String))[\"version\"]\nname = TOML.parse(read(\"../../Project.toml\", String))[\"name\"]\nlink_manifest = \"https://github.com/BeforeIT/\" * name * \".jl/tree/gh-pages/v\" * version *\n \"/assets/Manifest.toml\"\nlink_project = \"https://github.com/BeforeIT/\" * name * \".jl/tree/gh-pages/v\" * version *\n \"/assets/Project.toml\"\nMarkdown.parse(\"\"\"You can also download the\n[manifest]($link_manifest)\nfile and the\n[project]($link_project)\nfile.\n\"\"\")","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"EditURL = \"../../../examples/multithreading_speedup.jl\"","category":"page"},{"location":"examples/multithreading_speedup.html#Multithreading-speedup-for-large-models","page":"Multithreading within the model","title":"Multithreading speedup for large models","text":"","category":"section"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"In this tutorial we illustrate how to make use of multi threading in BeforeIT.jl to allow for faster executions of single simulation runs.","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"import BeforeIT as Bit\nusing FileIO, Plots, StatsPlots","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"First, we initialise the model, this time we use the Italy 2010Q1 scenario, and we want to simulate the model for a large number of epochs","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"parameters = Bit.ITALY2010Q1.parameters\ninitial_conditions = Bit.ITALY2010Q1.initial_conditions\nT = 50\nmodel = Bit.init_model(parameters, initial_conditions, T);\nnothing #hide","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"The model is in scale 1:2000, so it has around 30,000 households","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"model.prop.H","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Note that the households number is actually the sum of active and inactive households, the owners of firms and of the bank","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"length(model.w_act) + length(model.w_inact) + length(model.firms) + 1","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Let's fist check how many threads we have available in this Julia session","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Threads.nthreads()","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Then we need to first compile the code not to count compilation time, we can do that just by executing the function one time","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Bit.run_one_sim!(model; multi_threading = false);\nnothing #hide","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Let's now compare the performance of single threading and multi threading","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"model = Bit.init_model(parameters, initial_conditions, T);\n@time data = Bit.run_one_sim!(model; multi_threading = false);\n\nmodel = Bit.init_model(parameters, initial_conditions, T);\n@time data = Bit.run_one_sim!(model; multi_threading = true);\nnothing #hide","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Is the speedup in line to what we would expect? Yes!","category":"page"}] +[{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"EditURL = \"../../../examples/scenario_analysis_via_shock.jl\"","category":"page"},{"location":"examples/scenario_analysis_via_shock.html#Scenario-analysis-via-custom-shocks","page":"Shocked simulations","title":"Scenario analysis via custom shocks","text":"","category":"section"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"In this tutorial we will illustrate how to perform a scenario analysis by running the model multiple times under a specific shock and comparing the results with the unshocked model.","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"import BeforeIT as Bit\nusing Plots, StatsPlots\n\nparameters = Bit.AUSTRIA2010Q1.parameters\ninitial_conditions = Bit.AUSTRIA2010Q1.initial_conditions","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Initialise the model and the data collector","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"T = 20\nmodel = Bit.init_model(parameters, initial_conditions, T);\nnothing #hide","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Simulate the model for T quarters","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"data_vec_baseline = Bit.ensemblerun(model, 4)","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Now, apply a shock to the model and simulate it again. A shock is simply a function that takes the model and changes some of its parameters for a specific time period.","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"In this case, let's define an interest rate shock that sets the interest rate for a number of epochs.","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"We do this by first defining a \"struct\" with some useful attributes","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"struct CustomShock\n rate::Float64 # target rate for the first 10 epochs\n final_time::Int # number of epochs for the shock\nend","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"and then by making the struct a callable function that changes the interest rate in the model, this is done in Julia using the syntax below","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"function (s::CustomShock)(model::Bit.Model)\n if model.agg.t <= s.final_time\n model.cb.r_bar = s.rate\n end\nend","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Now we define a specific shock with a rate of 0.01 for the first 10 epochs, and run a shocked simulation","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"custom_shock = CustomShock(0.0, 10)\ndata_vec_shocked = Bit.ensemblerun(model, 4; shock = custom_shock)","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Finally, we can plot baseline and shocked simulations","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Te = T + 1\nStatsPlots.errorline(\n 1:Te,\n data_vec_baseline.real_gdp,\n errortype = :sem,\n label = \"baseline\",\n titlefont = 10,\n xlabel = \"quarters\",\n ylabel = \"GDP\",\n)\nStatsPlots.errorline!(\n 1:Te,\n data_vec_shocked.real_gdp,\n errortype = :sem,\n label = \"shock\",\n titlefont = 10,\n xlabel = \"quarters\",\n ylabel = \"GDP\",\n)","category":"page"},{"location":"examples/scenario_analysis_via_shock.html","page":"Shocked simulations","title":"Shocked simulations","text":"Note that, importantly, once the function central_bank_rate has been changed, the model will use the new interest rate in all the simulations, unless the function is changed again. To restore the original interest rate, we can simply re-import the function central_bank_rate.","category":"page"},{"location":"api.html","page":"API","title":"API","text":"CurrentModule = BeforeIT ","category":"page"},{"location":"api.html","page":"API","title":"API","text":"Pages = [\"api.md\"]","category":"page"},{"location":"api.html#Code-reference","page":"API","title":"Code reference","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"In this page we document the functions which constitute the bulk of BeforeIT.jl functionality.","category":"page"},{"location":"api.html#Agent-types","page":"API","title":"Agent types","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"agents.jl\"]","category":"page"},{"location":"api.html#BeforeIT.Aggregates","page":"API","title":"BeforeIT.Aggregates","text":"This is a Aggregates type. It is used to store the aggregate variables of the economy. Note that t is an integer, while the rest are floats or vectors of floats.\n\nFields\n\nY [vector]: GDP data + predictions\npi_ [vector]: inflation data + predictions\nP_bar: Global price index\nP_bar_g [vector]: Producer price index for principal good g\nP_bar_HH: Consumer price index\nP_bar_CF: Capital price index\nP_bar_h: CPI_h\nP_bar_CF_h: Capital price index _h\nY_e: Expected GDP\ngamma_e: Expected growth\npi_e: Expected inflation\nt: Time index\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Bank","page":"API","title":"BeforeIT.Bank","text":"This is a Bank type. It represents the bank of the model.\n\nFields\n\nE_k: equity capital (common equity) of the bank\nPi_k: Profits of the bank\nPi_e_k: Expected profits of the bank\nD_k: Residual and balancing item on the bank’s balance sheet\nr: Rate for loans and morgages\n\nHousehold fields (bank' owner)\n\nY_h: Net disposable income of bank owner (investor)\nC_d_h: Consumption budget\nI_d_h: Investment budget\nC_h: Realised consumption\nI_h: Realised investment\nK_h: Capital stock\nD_h: Deposits\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.CentralBank","page":"API","title":"BeforeIT.CentralBank","text":"This is a CentralBank type. It represents the central bank of the model.\n\nFields\n\nr_bar: Nominal interest rate\nr_G: Interest rate on government bonds\nrho: Parameter for gradual adjustment of the policy rate\nr_star: Real equilibrium interest rate\npi_star: Inflation target by CB\nxi_pi: Weight the CB puts on inflation targeting\nxi_gamma: Weight placed on economic\nE_CB: Central bank equity\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Firms","page":"API","title":"BeforeIT.Firms","text":"This is a Firms type. Each field is an array which stores the values for all the firms in the economy. Note that the G_i, N_i and V_i fields are integers, while the rest are floats.\n\nFor all fields the entry at index i corresponds to the ith firm.\n\nFields\n\nG_i: Principal product\nalpha_bar_i: Average productivity of labor\nbeta_i: Productivity of intermediate consumption\nkappa_i: Productivity of capital\nw_i: Wages\nw_bar_i: Average wage rate\ndelta_i: Depreciation rate for capital\ntau_Y_i: Net tax rate on products\ntau_K_i: Net tax rate on production\nN_i: Number of persons employed\nY_i: Production of goods\nQ_i: Sales of goods\nQ_d_i: Demand for goods\nP_i: Price\nS_i: Inventories\nK_i: Capital, in real terms\nM_i: Intermediate goods/services and raw materials, in real terms\nL_i: Outstanding loans\npi_bar_i: Operating margin\nD_i: Deposits of the firm\nPi_i: Profits\nV_i: Vacancies\nI_i: Investments\nE_i: Equity\nP_bar_i: Price index\nP_CF_i: Price index\nDS_i: Differnece in stock of final goods\nDM_i: Difference in stock of intermediate goods\nDL_i: Obtained loans\nDL_d_i: Target loans\nK_e_i: Expected capital \nL_e_i: Expected loans\nQ_s_i: Expected sales\nI_d_i: Desired investments\nDM_d_i: Desired materials\nN_d_i: Desired employment\nPi_e_i: Expected profits\n\nHousehold fields (firms' owners)\n\nY_h: Net disposable income of firm owner (investor)\nC_d_h: Consumption budget\nI_d_h: Investment budget\nC_h: Realised consumption\nI_h: Realised investment\nK_h: Capital stock\nD_h: Deposits of the owner of the firms\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Government","page":"API","title":"BeforeIT.Government","text":"This is a Government type. It represents the government of the model.\n\nFields\n\nalpha_G: Autoregressive coefficient for government consumption\nbeta_G: Scalar constant for government consumption\nsigma_G: Variance coefficient for government consumption\nY_G: Government revenues\nC_G: Consumption demand of the general government\nL_G: Loans taken out by the government\nsb_inact: Social benefits for inactive persons\nsb_other: Social benefits for all\nC_d_j [vector]: Local governments consumption demand\nC_j: Realised government consumption\nP_j: Price inflation of government goods <- ??\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Model","page":"API","title":"BeforeIT.Model","text":"This is a Model type. It is used to store all the agents of the economy.\n\nFields\n\nw_act: Workers that are active\nw_inact: Workers that are inactive\nfirms: Firms\nbank: Bank\ncb: CentralBank\ngov: Government\nrotw: RestOfTheWorld\nagg: Aggregates\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.RestOfTheWorld","page":"API","title":"BeforeIT.RestOfTheWorld","text":"This is a RestOfTheWorld type. It represents the rest of the world of the model.\n\nFields\n\nalpha_E: Autoregressive coefficient for exports\nbeta_E: Scalar constant for exports\nsigma_E: Variance coefficient for exports\nalpha_I: Autoregressive coefficient for imports\nbeta_I: Scalar constant for imports\nsigma_I: Variance coefficient for imports\nY_EA: GDP euro area\ngamma_EA: Growth euro area\npi_EA: Inflation euro area\nalpha_pi_EA: Autoregressive coefficient for euro area inflation\nbeta_pi_EA: Autoregressive coefficient for euro area inflation Scalar constant for euro area inflation\nsigma_pi_EA: Variance coefficient for euro area inflation\nalpha_Y_EA: Autoregressive coefficient for euro area GDP\nbeta_Y_EA: Autoregressive coefficient for euro area GDP Scalar constant for euro area GDP\nsigma_Y_EA: Variance coefficient for euro area GDP\nD_RoW: Net creditor/debtor position of the national economy to the rest of the world\nY_I: Supply of imports (in real terms)\nC_E: Total demand for exports\nC_d_l [vector]: Demand for exports of specific product\nC_l: Realised consumption by foreign consumers\nY_m [vector]: Supply of imports per sector\nQ_m [vector]: Sales for imports per sector\nQ_d_m [vector]: Demand for goods\nP_m [vector]: Price of imports per sector\nP_l: Price inflation of exports <- ??\n\n\n\n\n\n","category":"type"},{"location":"api.html#BeforeIT.Workers","page":"API","title":"BeforeIT.Workers","text":"This is a Workers. Each field is an array which stores the values for all the workers in the economy. Note that the O_h field is an integer, while the rest are floats.\n\nFor all fields the entry at index i corresponds to the ith worker.\n\nFields\n\nY_h: Net disposable income of worker owner (investor)\nD_h: Deposits\nK_h: Capital stock\nw_h: Wages (0 if inactive or unemployed)\nO_h: Occupation (0 if unemployed, -1 if inactive)\nC_d_h: Consumption budget\nI_d_h: Investment budget\nC_h: Realised consumption\nI_h: Realised investment\n\n\n\n\n\n","category":"type"},{"location":"api.html#Initialisation-function","page":"API","title":"Initialisation function","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"init.jl\"]","category":"page"},{"location":"api.html#BeforeIT.init_model","page":"API","title":"BeforeIT.init_model","text":"init_model(parameters, initial_conditions, T, typeInt = Int64, typeFloat = Float64)\n\nInitializes the model with given parameters and initial conditions.\n\nParameters:\n\nparameters: A dictionary containing the model parameters.\ninitial_conditions: A dictionary containing the initial conditions.\nT (integer): The time horizon of the model.\ntypeInt: (optional, default: Int64): The data type to be used for integer values.\ntypeFloat: (optional, default: Float64): The data type to be used for floating-point values.\n\nReturns:\n\nmodel::Model: The initialized model.\n\n\n\n\n\n","category":"function"},{"location":"api.html#BeforeIT.update_variables_with_totals!-Tuple{Model}","page":"API","title":"BeforeIT.update_variables_with_totals!","text":"update_variables_with_totals!(model::Model)\n\nUpdate the variables in the given model with some global quantities obtained from all agents. This is the last step in the initialization process and it must be performed after all agents have been initialized.\n\nArguments\n\nmodel::Model: The model object to update.\n\nReturns\n\nNothing\n\n\n\n\n\n","category":"method"},{"location":"api.html#Functions-to-run-an-entire-simulation","page":"API","title":"Functions to run an entire simulation","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"one_epoch.jl\", \"one_simulation.jl\"]","category":"page"},{"location":"api.html#CommonSolve.step!-Tuple{BeforeIT.AbstractModel}","page":"API","title":"CommonSolve.step!","text":"step!(model; multi_threading = false)\n\nThis function simulates a single epoch the economic model, updating various components of the model based the interactions between different economic agents. It accepts a model object, which encapsulates the state for the simulation, and an optional boolean parameter multi_threading to enable or disable multi-threading.\n\nKey operations performed include:\n\nFinancial adjustments for firms and banks, including insolvency checks and profit calculations.\nEconomic expectations and adjustments, such as growth, inflation, and central bank rates.\nLabor and credit market operations, including wage updates and loan processing.\nHousehold economic activities, including consumption and investment budgeting.\nGovernment and international trade financial activities, including budgeting and trade balances.\nGeneral market matching and accounting updates to reflect changes in economic indicators and positions.\n\nThe function updates the model in-place and does not return any value.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.ensemblerun-Tuple{BeforeIT.AbstractModel, Any}","page":"API","title":"BeforeIT.ensemblerun","text":"ensemblerun(model, n_sims; shock = NoShock(), multi_threading = true)\n\nA function that runs n_sims simulations in parallel with multiple threading and returns a vector of data objects of dimension n_sims.\n\nArguments\n\nmodel: The model configuration used to simulate.\nn_sims: The number of simulations to run in parallel.\n\nReturns\n\ndata_vector: A vector containing the data objects collected during each simulation.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.run!-Tuple{BeforeIT.AbstractModel}","page":"API","title":"BeforeIT.run!","text":"run!(model; shock = NoShock())\n\nRun a single simulation based on the provided model. The simulation runs for a number of epochs specified by model.prop.T.\n\nArguments\n\nmodel::Model: The model configuration used for the simulation.\n\nReturns\n\ndata::Data: The data collected during the simulation.\n\nDetails\n\nThe function initializes the data using BeforeIT.init_data(model), then iteratively updates the model and data for each epoch using BeforeIT.step!(model) and BeforeIT.update_data!(data, model) respectively.\n\nExample\n\n```julia model = BeforeIT.initmodel(parameters, initialconditions, T) data = run!(model)\n\n\n\n\n\n","category":"method"},{"location":"api.html#Firms-actions","page":"API","title":"Firms actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"firms.jl\"]","category":"page"},{"location":"api.html#BeforeIT.firms_deposits-Tuple{Any, Any}","page":"API","title":"BeforeIT.firms_deposits","text":"firms_deposits(firms, model)\n\nCalculate the new deposits of firms.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nDD_i: Vector of new deposits\n\nThe new deposits DD_i are calculated as follows:\n\nDD_i = sales + labour_cost + material_cost + taxes_products + taxes_production + corporate_tax + dividend_payments + interest_payments + interest_received + investment_cost + new_credit + debt_installment\n\nwhere:\n\nsales = P_i * Q_i\nlabour_cost = (1 + tau_SIF) * w_i * N_i * P_bar_HH\nmaterial_cost = -DM_i * P_bar_i\ntaxes_products = -tau_Y_i * P_i * Y_i\ntaxes_production = -tau_K_i * P_i * Y_i\ncorporate_tax = -tau_FIRM * pos(Pi_i)\ndividend_payments = -theta_DIV * (1 - tau_FIRM) * pos(Pi_i)\ninterest_payments = -r * (L_i + pos(-D_i))\ninterest_received = r_bar * pos(D_i)\ninvestment_cost = -P_CF_i * I_i\nnew_credit = DL_i\ndebt_installment = -theta * L_i\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_equity-Tuple{Any, Any}","page":"API","title":"BeforeIT.firms_equity","text":"firms_equity(firms, model)\n\nCalculate the equity of firms.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nE_i: Vector of equity\n\nThe equity E_i is calculated as follows:\n\nE_i = D_i + M_i * sum(a_sg G_i * barP_g) + P_i * S_i + barP_CF * K_i - L_i\n\nwhere:\n\nD_i: Deposits\nM_i: Intermediate goods\na_sg: Technology coefficient of the gth product in the sth industry\nG_i: Vector of goods\nP_bar_g: Producer price index for principal good g\nP_i: Price\nS_i: Stock\nP_bar_CF: Capital price index\nK_i: Capital stock\nL_i: Loans\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_expectations_and_decisions-Tuple{Any, Any}","page":"API","title":"BeforeIT.firms_expectations_and_decisions","text":"firms_expectations_and_decisions(firms, model)\n\nCalculate the expectations and decisions of firms. That is: compute firm quantity, price, investment and intermediate-goods, employment decisions, expected profits, and desired/expected loans and capital.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nQ_s_i: Vector of desired quantities\nI_d_i: Vector of desired investments\nDM_d_i: Vector of desired intermediate goods\nN_d_i: Vector of desired employment\nPi_e_i: Vector of expected profits\nDL_d_i: Vector of desired new loans\nK_e_i: Vector of expected capital\nL_e_i: Vector of expected loans\nP_i: Vector of prices\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_loans-Tuple{Any, Any}","page":"API","title":"BeforeIT.firms_loans","text":"firms_loans(firms, model)\n\nCalculate the new loans of firms.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nL_i: Vector of new loans\n\nThe new loans L_i are calculated as follows:\n\nL_i = (1 - theta) * L_i + DL_i\n\nwhere:\n\ntheta: Rate of repayment\nL_i: Loans\nDL_i: Acquired new loans\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_production-Tuple{AbstractFirms}","page":"API","title":"BeforeIT.firms_production","text":"firms_production(firms)\n\nCalculate the production of firms.\n\nArguments\n\nfirms: Firms object\n\nReturns\n\nY_i: Vector of production\n\nThe production Y_i is computed using a Leontief technology.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_profits-Tuple{AbstractFirms, Model}","page":"API","title":"BeforeIT.firms_profits","text":"firms_profits(firms, model)\n\nCalculate the profits of firms.\n\nArguments\n\nfirms: Firms object\nmodel: Model object\n\nReturns\n\nPi_i: Vector of profits\n\nThe profits Pi_i are calculated as follows:\n\nPi_i = in_sales + in_deposits - out_wages - out_expenses - out_depreciation - out_taxes_prods - out_taxes_capital - out_loans\n\nwhere:\n\nin_sales = P_i * Q_i + P_i * DS_i\nin_deposits = r_bar * pos(D_i)\nout_wages = (1 + tau_SIF) * w_i * N_i * P_bar_HH\nout_expenses = 1 / beta_i * P_bar_i * Y_i\nout_depreciation = delta_i / kappa_i * P_CF_i * Y_i\nout_taxes_prods = tau_Y_i * P_i * Y_i\nout_taxes_capital = tau_K_i * P_i * Y_i\nout_loans = r * (L_i + pos(-D_i))\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_stocks-Tuple{Any}","page":"API","title":"BeforeIT.firms_stocks","text":"firms_stocks(firms)\n\nCalculate the stocks of firms.\n\nArguments\n\nfirms: Firms object\n\nReturns\n\nK_i: Vector of capital stock\nM_i: Vector of intermediate goods\nDS_i: Vector of differneces in stock of final goods\nS_i: Vector of stock of final goods\n\nThe stocks are calculated as follows:\n\nK_i = K_i - delta_i / kappa_i * Y_i + I_i\nM_i = M_i - Y_i / beta_i + DM_i\nDS_i = Y_i - Q_i\nS_i = S_i + DS_i\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.firms_wages-Tuple{AbstractFirms}","page":"API","title":"BeforeIT.firms_wages","text":"firms_wages(firms)\n\nCalculate the wages set by firms.\n\nArguments\n\nfirms: Firms object\n\nReturns\n\nw_i: Vector of wages\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.init_firms-Tuple{Any, Any}","page":"API","title":"BeforeIT.init_firms","text":"init_firms(parameters, initial_conditions; typeInt = Int64, typeFloat = Float64)\n\nInitialize firms with given parameters and initial conditions.\n\nArguments\n\nparameters: The parameters for initializing the firms.\ninitial_conditions: The initial conditions for the firms.\ntypeInt: (optional) The integer type to be used. Default is Int64.\ntypeFloat: (optional) The floating-point type to be used. Default is Float64.\n\nReturns\n\nfirms::Firms: The initialized firms.\nfirms_args::Tuple: The arguments used to initialize the firms.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.leontief_production-NTuple{7, Any}","page":"API","title":"BeforeIT.leontief_production","text":"leontief_production(Q_s_i, N_i, alpha_i, K_i, kappa_i, M_i, beta_i)\n\nCalculate the production function of firms.\n\nArguments\n\nQ_s_i: Vector of desired quantities\nN_i: Vector of employment\nalpha_i: Vector of labour productivity\nK_i: Vector of capital stock\nkappa_i: Vector of capital productivity\nM_i: Vector of intermediate goods\nbeta_i: Vector of intermediate goods productivity\n\nReturns\n\nY_i: Vector of production\n\nThe Leontief production function Y_i is calculated as follows:\n\nY_i = min(Q_s_i min(N_i cdot alpha_i min(K_i cdot kappa_i M_i cdot beta_i)))\n\n\n\n\n\n","category":"method"},{"location":"api.html#Households-actions","page":"API","title":"Households actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"households.jl\"]","category":"page"},{"location":"api.html#Government-actions","page":"API","title":"Government actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"government.jl\"]","category":"page"},{"location":"api.html#BeforeIT.gov_expenditure-Tuple{Any, Any}","page":"API","title":"BeforeIT.gov_expenditure","text":"gov_expenditure(gov::AbstractGovernment, model)\n\nComputes government expenditure on consumption and transfers to households.\n\nArguments\n\ngov: government object\nmodel: model object\n\nReturns\n\nC_G: government consumption\nC_d_j: local government consumptions\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.gov_loans-Tuple{Any, Any}","page":"API","title":"BeforeIT.gov_loans","text":"gov_loans(gov::AbstractGovernment, model, Y_G)\n\nComputes government new government debt.\n\nArguments\n\ngov::AbstractGovernment: government object\nmodel: model object\n\nReturns\n\nL_G: new government debt\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.gov_revenues-Tuple{Model}","page":"API","title":"BeforeIT.gov_revenues","text":"gov_revenues(model)\n\nComputes government revenues from taxes and social security contributions. The government collects taxes on labour income, capital income, value added, and corporate income. It also collects social security contributions from workers and firms. The government also collects taxes on consumption and capital formation. Finally, the government collects taxes on exports and imports.\n\nArguments\n\nmodel: model object\n\nReturns\n\nY_G: government revenues\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.gov_social_benefits-Tuple{AbstractGovernment, Any}","page":"API","title":"BeforeIT.gov_social_benefits","text":"gov_social_benefits(gov::AbstractGovernment, model)\n\nComputes social benefits paid by the government households.\n\nArguments\n\ngov: government object\nmodel: model object\n\nReturns\n\nsb_other: social benefits for other households\nsb_inact: social benefits for inactive households\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.init_government-Tuple{Any, Any}","page":"API","title":"BeforeIT.init_government","text":"init_government(parameters, initial_conditions; typeInt = Int64, typeFloat = Float64)\n\nInitialize the government agent.\n\nArguments\n\nparameters: The parameters.\ninitial_conditions: The initial conditions.\ntypeInt: The integer type to be used (default: Int64).\ntypeFloat: The floating-point type to be used (default: Float64).\n\nReturns\n\nThe initialized government model.\nThe arguments used to initialize the government model.\n\n\n\n\n\n","category":"method"},{"location":"api.html#Bank-and-Central-Bank-actions","page":"API","title":"Bank and Central Bank actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"bank.jl\"]","category":"page"},{"location":"api.html#BeforeIT._bank_deposits-NTuple{7, Any}","page":"API","title":"BeforeIT._bank_deposits","text":"_deposit_bank(waD_h, wiD_h, fD_h, bD_h, fD_i, bE_k, fL_i)\n\nHelper function to calculate the new deposits of a bank.\n\nArguments\n\nwaD_h: Array of deposits from active workers\nwiD_h: Array of deposits from inactive workers\nfD_h: Array of deposits from firms\nbD_h: Deposits from the bank owner\nfD_i: Array of deposits from firms\nbE_k: Bank equity\nfL_i: Array of loans to firms\n\nReturns\n\nD_k: New deposits of the bank\n\nThe new deposits D_k are calculated as the sum of the deposits of the active workers, the inactive workers, the firms, and the bank owner itself, plus the bank's equity, minus the loans of the firms.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT._bank_profits-Union{Tuple{T}, Tuple{AbstractVector{T}, AbstractVector{T}, AbstractVector{T}, T, T, T}} where T","page":"API","title":"BeforeIT._bank_profits","text":"_bank_profits(L_i, D_i, D_h, D_k, r_bar, r)\n\nHelper function to calculate the total profits of a bank.\n\nArguments\n\nL_i: Array of loans provided by the bank\nD_i: Array of deposits from firms\nD_h: Array of deposits from households\nD_k: Residual and balancing item on the bank’s balance sheet\nr_bar: Base interest rate\nr: Interest rate set by the bank\n\nReturns\n\nPi_k: Total profits of the bank\n\nThe total profits Pi_k are calculated as follows:\n\nPi_k = r cdot sum_i(L_i + max(0 -D_i)) + r cdot sum_h(max(0 -D_h)) + r_bar \ncdot max(0 D_k) - r_bar cdot sum_i(max(0 D_i)) - r_bar cdot \nsum_h(max(0 D_h)) - r_bar cdot max(0 -D_k)\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT._central_bank_profits-NTuple{4, Any}","page":"API","title":"BeforeIT._central_bank_profits","text":"_central_bank_profits(r_bar, D_k, L_G, r_G)\n\nHelper function to calculate the profits of a central bank.\n\nArguments\n\nr_bar: The base interest rate\nD_k: Deposits from commercial banks\nL_G: Loans provided to the government\nr_G: Interest rate on government loans\n\nReturns\n\nPi_CB: Profits of the central bank\n\nThe profits Pi_CB are calculated as follows:\n\nPi_CB = r_G cdot L_G - r_bar cdot D_k\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_deposits-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_deposits","text":"deposits_bank(bank, w_act, w_inact, firms)\n\nCalculate the new deposits of a bank.\n\nArguments\n\nbank: The Bank object containing the bank of the model\nw_act: The Workers object containing the active workers of the model\nw_inact: The Workers object containing the inactive workers of the model\nfirms: The Firms object containing the firms of the model\n\nReturns\n\nD_k: New deposits of the bank\n\nThe new deposits D_k are calculated as the sum of the deposits of the active workers, the inactive workers, the firms, and the bank owner itself, plus the bank's equity, minus the loans of the firms.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_equity-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_equity","text":"bank_equity(bank, model)\n\nCalculate the net profits of a bank.\n\nArguments\n\nbank: The bank object.\nmodel: The model object.\n\nReturns\n\nE_k: The updated equity of the bank.\n\nThe net profits DE_k are calculated as:\n\nDE_k = Pi_k - theta_DIV cdot (1 - tau_FIRM) cdot max(0 Pi_k) - tau_FIRM cdot max(0 Pi_k)\n\nand the equity E_k is updated as:\n\nE_k = E_k + DE_k\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_expected_profits-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_expected_profits","text":"bank_expected_profits(Pi_k, pi_e, gamma_e)\n\nCalculate the expected profits of a bank.\n\nArguments\n\nPi_k: Past profits of the bank\npi_e: Expected inflation rate\ngamma_e: Expected growth rate\n\nReturns\n\nE_Pi_k: Expected profits of the bank\n\nThe expected profits E_Pi_k are calculated as follows:\n\nE_Pi_k = Pi_k cdot (1 + pi_e) cdot (1 + gamma_e)\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_profits-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_profits","text":"bank_profits(bank, model)\n\nCalculate the total profits of a bank.\n\nArguments\n\nbank: The bank object.\nmodel: The model object.\n\nReturns\n\nPi_k: The total profits of the bank.\n\nThe total profits Pi_k are calculated as:\n\nPi_k = r cdot sum_i(L_i + max(0 -D_i)) + r cdot sum_h(max(0 -D_h)) + r_bar\ncdot max(0 D_k) - r_bar cdot sum_i(max(0 D_i)) - r_bar cdot\nsum_h(max(0 D_h)) - r_bar cdot max(0 -D_k)\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.bank_rate-Tuple{Any, Any}","page":"API","title":"BeforeIT.bank_rate","text":"bank_rate(bank, model)\n\nUpdate the interest rate set by the bank.\n\nArguments\n\nbank: The bank whose interest rate is to be updated\nmodel: Model object\n\nReturns\n\nr: The updated interest rate\n\nr = barr + mu\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.central_bank_equity-Tuple{Any, Any}","page":"API","title":"BeforeIT.central_bank_equity","text":"central_bank_equity(cb, model)\n\nCalculate the equity of the central bank.\n\nArguments\n\ncb: The central bank\nmodel: The model object\n\nReturns\n\nE_CB: The equity of the central bank\n\nThe equity E_CB is calculated as follows:\n\nE_CB = E_CB + Pi_CB\n\nwhere \\Pi_{CB} are the profits of the central bank.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.central_bank_rate-Tuple{AbstractCentralBank, Model}","page":"API","title":"BeforeIT.central_bank_rate","text":"central_bank_rate(cb, model)\n\nUpdate the base interest rate set by the central bank according to the Taylor rule.\n\nArguments\n\ncb: The central bank whose base interest rate is to be updated\nmodel: The model object\n\nReturns\n\nr_bar: The updated base interest rate\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.finance_insolvent_firms!-Tuple{AbstractFirms, AbstractBank, Any}","page":"API","title":"BeforeIT.finance_insolvent_firms!","text":"finance_insolvent_firms!(firms, bank, P_bar_CF, zeta_b, insolvent)\n\nRifinance insolvent firms using bank equity.\n\nArguments\n\nfirms: The Firms object containing the firms of the model\nbank: The Bank object containing the bank of the model\nP_bar_CF: Capital price index\nzeta_b: Parameter of loan-to-capital ratio for new firms after bankruptcy\n\nReturns\n\nThis function does not return a value. It modifies the banks and firms collections in-place.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.taylor_rule-Union{Tuple{T}, NTuple{8, T}} where T","page":"API","title":"BeforeIT.taylor_rule","text":"taylor_rule(rho, r_bar, r_star, pi_star, xi_pi, xi_gamma, gamma_EA, pi_EA)\n\nCalculate the interest rate according to the Taylor rule.\n\nArguments\n\nrho: Parameter for gradual adjustment of the policy rate.\nr_bar: Nominal interest rate.\nr_star: Real equilibrium interest rate.\npi_star: The target inflation rate.\nxi_pi: Weight the CB puts on inflation targeting.\nxi_gamma: Weight placed on economic growth.\ngamma_EA: The output growth rate.\npi_EA: The inflation rate.\n\nReturns\n\nrate: The calculated interest rate.\n\nThe Taylor rule is given by the following equation:\n\nr_t = ρ * r_t-1 + (1 - ρ) * (r^* + π^* + ξ_π * (π_t - π^*) + ξ_γ * γ_t)\n\n\n\n\n\n","category":"method"},{"location":"api.html#Rest-Of-The-World-actions","page":"API","title":"Rest Of The World actions","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"rotw.jl\"]","category":"page"},{"location":"api.html#BeforeIT.rotw_deposits-Tuple{Any, Any}","page":"API","title":"BeforeIT.rotw_deposits","text":"rotw_deposits(rotw, tau_EXPORT)\n\nCalculate the deposits of the rest of the world.\n\nArguments\n\nrotw: The rest of the world object.\ntau_EXPORT: The export tax.\n\nReturns\n\nD_RoW: The deposits of the rest of the world.\n\nThe deposits D_RoW are calculated as follows:\n\nD_RoW = D_RoW + left( sum_m P_m cdot Q_m right) - (1 + tau_EXPORT) cdot C_l\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.rotw_import_export-Tuple{Any, Any}","page":"API","title":"BeforeIT.rotw_import_export","text":"rotw_import_export(rotw, model, pi_e, epsilon_E, epsilon_I)\n\nCalculate the demand for exports and supply of imports of the rest of the world.\n\nArguments\n\nrotw: The rest of the world object.\nmodel: The model object.\n\nReturns\n\nC_E: Total demand for exports.\nY_I: Supply of imports (in real terms).\nC_d_l: TDemand for exports of specific product.\nY_m: Supply of imports per sector.\nP_m: Price of imports per sector.\n\n\n\n\n\n","category":"method"},{"location":"api.html#Markets","page":"API","title":"Markets","text":"","category":"section"},{"location":"api.html","page":"API","title":"API","text":"Modules = [BeforeIT]\nOrder = [:type, :function]\nPages = [\"search_and_matching_credit.jl\", \"search_and_matching_labour.jl\", \"search_and_matching.jl\"]","category":"page"},{"location":"api.html#BeforeIT.search_and_matching_credit-Tuple{AbstractFirms, Any}","page":"API","title":"BeforeIT.search_and_matching_credit","text":"search_and_matching_credit(firms::Firms, model)\n\nThis function calculates the credit allocation for each firm in the given firms object.\n\nParameters:\n\nfirms::Firms: The firms object.\nmodel: The model object.\n\nReturns:\n\nDL_i: An array of credit allocations for each firm.\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.search_and_matching_labour-Tuple{AbstractFirms, Any}","page":"API","title":"BeforeIT.search_and_matching_labour","text":"search_and_matching_labour(firms::Firms, model)\n\nThis function implements a labor search and matching algorithm. It takes in a Firms object and a Model object as input. The Firms object contains information about the number of desired employees (N_d_i) and the current number of employees (N_i) for each firm. The model object contains information about the current employment status (O_h) of each worker.\n\nThe function performs the following steps:\n\nCalculates the vacancies (V_i) for each firm as the difference between desired and current employees.\nIdentifies employed workers and shuffles them randomly.\nFires workers from firms with negative vacancies to adjust the workforce.\nIdentifies unemployed workers and firms with positive vacancies.\nRandomly matches unemployed workers to firms with vacancies until all vacancies are filled or there are no more unemployed workers.\n\nThe function returns:\n\nN_i: An updated array of the number of employed workers for each firm.\nO_h: An updated array where each element represents the firm a worker is employed with (0 if unemployed).\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.perform_firms_market!-NTuple{15, Any}","page":"API","title":"BeforeIT.perform_firms_market!","text":"Perform the firms market exchange process\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.perform_retail_market!-NTuple{31, Any}","page":"API","title":"BeforeIT.perform_retail_market!","text":"Perform the retail market exchange process\n\n\n\n\n\n","category":"method"},{"location":"api.html#BeforeIT.search_and_matching!","page":"API","title":"BeforeIT.search_and_matching!","text":"search_and_matching!(model, multi_threading::Bool = false)\n\nThis function performs a search and matching algorithm for firms and for retail markets. It takes in a model object and an optional boolean argument for multi-threading. The function loops over all goods and performs the firms market and retail market operations for each good. Finally, it updates the aggregate variables based on the results of markets.\n\nArgs:\n\nmodel: The model object\nmulti_threading: A boolean indicating whether to use multi-threading for the algorithm. Default is false.\n\nThis function updates the model in-place and does not return any value.\n\n\n\n\n\n","category":"function"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"EditURL = \"../../../examples/basic_example.jl\"","category":"page"},{"location":"examples/basic_example.html#Essential-use-of-BeforeIT","page":"Essentials","title":"Essential use of BeforeIT","text":"","category":"section"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We start by importing the BeforeIT library and other useful libraries.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"import BeforeIT as Bit\nusing FileIO, Plots","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We then initialise the model loading some precomputed set of parameters and by specifying a number of epochs. In another tutorial we will illustrate how to compute parameters and initial conditions.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"parameters = Bit.AUSTRIA2010Q1.parameters\ninitial_conditions = Bit.AUSTRIA2010Q1.initial_conditions","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can now initialise the model, by specifying in advance the maximum number of epochs.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"T = 16\nmodel = Bit.init_model(parameters, initial_conditions, T)","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Note that the it is very simple to inspect the model by typing","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"fieldnames(typeof(model))","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"and to inspect the specific attributes of one agent type by typing","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"fieldnames(typeof(model.bank))","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can now define a data tracker, which will store the time series of the model.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"data = Bit.init_data(model);\nnothing #hide","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can run now the model for a number of epochs and progressively update the data tracker.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"for t in 1:T\n Bit.step!(model; multi_threading = true)\n Bit.update_data!(data, model)\nend","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Note that we can equivalently run the model for a number of epochs in the single command data = BeforeIT.run!(model), but writing the loop explicitely is more instructive.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can then plot any time series stored in the data tracker, for example","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"plot(data.real_gdp, title = \"gdp\", titlefont = 10)","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Or we can plot multiple time series at once using the function plot_data","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"ps = Bit.plot_data(data, quantities = [:real_gdp, :real_household_consumption, :real_government_consumption, :real_capitalformation, :real_exports, :real_imports, :wages, :euribor, :gdp_deflator])\nplot(ps..., layout = (3, 3))","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"To run multiple monte-carlo repetitions in parallel we can use","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"model = Bit.init_model(parameters, initial_conditions, T)\ndata_vector = Bit.ensemblerun(model, 4)","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Note that this will use the number of threads specified when activating the Julia environment. To discover the number of threads available, you can use the command","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"Threads.nthreads()","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"To activate Julia with a specific number of threads, say 8, you can use the command julia -t 8 in the terminal.","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"We can then plot the results of the monte-carlo repetitions using the function plot_data_vector","category":"page"},{"location":"examples/basic_example.html","page":"Essentials","title":"Essentials","text":"ps = Bit.plot_data_vector(data_vector)\nplot(ps..., layout = (3, 3))","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"EditURL = \"../../../examples/change_expectations.jl\"","category":"page"},{"location":"examples/change_expectations.html#Changing-expectations-via-function-overloading","page":"Experimentations (advanced)","title":"Changing expectations via function overloading","text":"","category":"section"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"In this tutorial we will illustrate how to experiment with different expectations of the agents in the model.","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"import BeforeIT as Bit\nusing Random, Plots","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Import standard parameters and initial conditions","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"par = Bit.AUSTRIA2010Q1.parameters\ninit = Bit.AUSTRIA2010Q1.initial_conditions","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Set the seed, initialise the model and run one simulation","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Random.seed!(1234)\nT = 40\nmodel = Bit.init_model(par, init, T)\ndata = Bit.run!(model)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Now we can experiment with changing expectations of the agents in the model. We will change the function estimate_next_value to make the agents expect the last value of the time series (so to represent backward looking expectations)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"import BeforeIT: estimate_next_value\nfunction estimate_next_value(data)\n return data[end]\nend","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Run the model again, with the same seed","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Random.seed!(1234)\nmodel = Bit.init_model(par, init, T)\ndata_back = Bit.run!(model)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Plot the results, comparing the two cases as different lines","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"p1 = plot(data.real_gdp, title = \"gdp\", titlefont = 10, label = \"forward looking\")\nplot!(p1, data_back.real_gdp, titlefont = 10, label = \"backward looking\")\n\np2 = plot(data.real_household_consumption, title = \"consumption\", titlefont = 10)\nplot!(p2, data_back.real_household_consumption, titlefont = 10, label = \"backward looking\")\n\nplot(p1, p2, layout = (2, 1), legend = true)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Plot all time series","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"p1 = plot(data.real_gdp, title = \"gdp\", titlefont = 10)\nplot!(p1, data_back.real_gdp, titlefont = 10)\np2 = plot(data.real_household_consumption, title = \"household cons.\", titlefont = 10)\nplot!(p2, data_back.real_household_consumption, titlefont = 10)\np3 = plot(data.real_government_consumption, title = \"gov. cons.\", titlefont = 10)\nplot!(p3, data_back.real_government_consumption, titlefont = 10)\np4 = plot(data.real_capitalformation, title = \"capital form.\", titlefont = 10)\nplot!(p4, data_back.real_capitalformation, titlefont = 10)\np5 = plot(data.real_exports, title = \"exports\", titlefont = 10)\nplot!(p5, data_back.real_exports, titlefont = 10)\np6 = plot(data.real_imports, title = \"imports\", titlefont = 10)\nplot!(p6, data_back.real_imports, titlefont = 10)\np7 = plot(data.wages, title = \"wages\", titlefont = 10)\nplot!(p7, data_back.wages, titlefont = 10)\np8 = plot(data.euribor, title = \"euribor\", titlefont = 10)\nplot!(p8, data_back.euribor, titlefont = 10)\np9 = plot(data.nominal_gdp ./ data.real_gdp, title = \"gdp deflator\", titlefont = 10)\nplot!(p9, data_back.nominal_gdp ./ data_back.real_gdp, titlefont = 10)\n\nplot(p1, p2, p3, p4, p5, p6, p7, p8, p9, layout = (3, 3), legend = false)","category":"page"},{"location":"examples/change_expectations.html","page":"Experimentations (advanced)","title":"Experimentations (advanced)","text":"Note that, importantly, once the function estimate_next_value has been changed, the model will use the new expectations in all the simulations, unless the function is changed again. To restore the original expectations you could close the Julia session.","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"EditURL = \"../../../examples/scenario_analysis_via_overload.jl\"","category":"page"},{"location":"examples/scenario_analysis_via_overload.html#Scenario-analysis-via-function-overloading","page":"Shocked simulations (advanced)","title":"Scenario analysis via function overloading","text":"","category":"section"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"In this tutorial we will illustrate how to perform a scenario analysis by running the model multiple times under a specific shock and comparing the results with the unshocked model.","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"import BeforeIT as Bit\nusing Plots, StatsPlots\n\nparameters = Bit.AUSTRIA2010Q1.parameters\ninitial_conditions = Bit.AUSTRIA2010Q1.initial_conditions","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Initialise the model and the data collector","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"T = 20\nmodel = Bit.init_model(parameters, initial_conditions, T);\ndata = Bit.init_data(model);\nnothing #hide","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Simulate the model for T quarters","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"data_vec_baseline = Bit.ensemblerun(model, 4)","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Now, apply a shock to the model and simulate it again Here, we do this by overloading the centralbankrate function with the wanted behaviour","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"import BeforeIT: central_bank_rate\n\nfunction central_bank_rate(cb::Bit.CentralBank, model::Bit.Model)\n gamma_EA = model.rotw.gamma_EA\n pi_EA = model.rotw.pi_EA\n taylor_rate = Bit.taylor_rule(cb.rho, cb.r_bar, cb.r_star, cb.pi_star, cb.xi_pi, cb.xi_gamma, gamma_EA, pi_EA)\n if model.agg.t < 10\n return 0.01\n else\n return taylor_rate\n end\nend\n\ndata_vec_shocked = Bit.ensemblerun(model, 4)","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Finally, we can plot baseline and shocked simulations","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Te = T + 1\nStatsPlots.errorline(\n 1:Te,\n data_vec_baseline.real_gdp,\n errortype = :sem,\n label = \"baseline\",\n titlefont = 10,\n xlabel = \"quarters\",\n ylabel = \"GDP\",\n)\nStatsPlots.errorline!(\n 1:Te,\n data_vec_shocked.real_gdp,\n errortype = :sem,\n label = \"shock\",\n titlefont = 10,\n xlabel = \"quarters\",\n ylabel = \"GDP\",\n)","category":"page"},{"location":"examples/scenario_analysis_via_overload.html","page":"Shocked simulations (advanced)","title":"Shocked simulations (advanced)","text":"Note that, importantly, once the function central_bank_rate has been changed, the model will use the new interest rate in all the simulations, unless the function is changed again. To restore the original interest rate, you could close and restart the Julia session.","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"EditURL = \"../../../examples/get_parameters_and_initial_conditions.jl\"","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"In this tutorial we illustrate how to calibrate the model to the Italian data for a specific quarter","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"import BeforeIT as Bit\nusing Dates, FileIO","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"We start from loading the calibration object for italy, which contains 4 datasets: calibration_data, figaro, data, and ea. These are saved within BeforeIT.jl for the Italian case, and would need to be appropriately generated for other countries.","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"cal = Bit.ITALY_CALIBRATION\nfieldnames(typeof(cal))","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"These are essentially 4 dictionaries with well defined keys, such as","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"println(keys(cal.calibration))\nprintln(keys(cal.figaro))\nprintln(keys(cal.data))\nprintln(keys(cal.ea))","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"The object also contains two time variables related to the data","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"println(cal.max_calibration_date)\nprintln(cal.estimation_date)","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"We can calibrate the model on a specific quarter as follows","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"calibration_date = DateTime(2010, 03, 31)\nparameters, initial_conditions = Bit.get_params_and_initial_conditions(cal, calibration_date; scale = 0.01)","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"In general, we might want to repeat this operation for multiple quarters. In the following, we loop over all quarters from 2010Q1 to 2019Q4 and save the parameters and initial conditions in separate files. We can then load these files later to run the model for each quarter.","category":"page"},{"location":"examples/get_parameters_and_initial_conditions.html","page":"Calibration","title":"Calibration","text":"start_calibration_date = DateTime(2010, 03, 31)\nend_calibration_date = DateTime(2019, 12, 31)\n\nfor calibration_date in collect(start_calibration_date:Dates.Month(3):end_calibration_date)\n params, init_conds = Bit.get_params_and_initial_conditions(cal, calibration_date; scale = 0.0005)\n save(\n \"data/italy/parameters/\" *\n string(year(calibration_date)) *\n \"Q\" *\n string(Dates.quarterofyear(calibration_date)) *\n \".jld2\",\n params,\n )\n save(\n \"data/italy/initial_conditions/\" *\n string(year(calibration_date)) *\n \"Q\" *\n string(Dates.quarterofyear(calibration_date)) *\n \".jld2\",\n init_conds,\n )\nend","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"CurrentModule = BeforeIT ","category":"page"},{"location":"index.html#Behavioural-agent-based-economic-forecasting-in-Julia","page":"Home","title":"Behavioural agent-based economic forecasting in Julia","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"Welcome to BeforeIT.jl, a Julia implementation of the agent-based model presented in Economic forecasting with an agent-based model, the first ABM matching the performance of traditional economic forecasting tools.","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"With BeforeIT.jl, you can perform economic forecasting and explore different counterfactual scenarios. Thanks to its modular design, the package is also a great starting point for anyone looking to extend its capabilities or integrate it with other tools.","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"Developed in Julia, a language known for its efficiency, BeforeIT.jl is both fast and user-friendly, making it accessible whether you’re an expert programmer or just starting out.","category":"page"},{"location":"index.html#Julia-installation","page":"Home","title":"Julia installation","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"To run this software, you will need a working Julia installation on your machine. If you don't have it installed already, simply follow the short instructions available here.","category":"page"},{"location":"index.html#BeforeIT.jl-Installation","page":"Home","title":"BeforeIT.jl Installation","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"To install BeforeIT.jl, simply open a Julia REPL by writing julia in your terminal, and then execute the following","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using Pkg\nPkg.add(\"BeforeIT\")","category":"page"},{"location":"index.html#Quick-example","page":"Home","title":"Quick example","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"To check that the installation worked, try running the model in your terminal with","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using BeforeIT\n\nparameters = BeforeIT.AUSTRIA2010Q1.parameters\ninitial_conditions = BeforeIT.AUSTRIA2010Q1.initial_conditions\n\nT = 20\nmodel = BeforeIT.initialise_model(parameters, initial_conditions, T)\ndata = BeforeIT.run!(model)","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"To plot the results of the simulation, you can use the Plots package","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using Plots\n\nplot(data.real_gdp)","category":"page"},{"location":"index.html#License","page":"Home","title":"License","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"BeforeIT.jl is released under the GNU Affero General Public License v3 or later (AGPLv3+).","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"Copyright 2024 - Banca d'Italia and the authors.","category":"page"},{"location":"index.html#Main-developers-and-maintainers","page":"Home","title":"Main developers and maintainers","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"Aldo Glielmo \nMitja Devetak \nAdriano Meligrana ","category":"page"},{"location":"index.html#Other-collaborators-and-contributors","page":"Home","title":"Other collaborators and contributors","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"Sebastian Poledna \nMarco Benedetti\nSara Corbo for the logo design\nAndrea Gentili for suggesting the name of the pakege\nArnau Quera-Bofarull for help in the deployment of the documentation\nSteven Hoekstra for fixing a bug in a script\nPeter Reschenhofer for fixing a bug in a script","category":"page"},{"location":"index.html#Disclaimer","page":"Home","title":"Disclaimer","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"This package is an outcome of a research project. All errors are those of the authors. All views expressed are personal views, not those of Bank of Italy.","category":"page"},{"location":"index.html#Reproducibility","page":"Home","title":"Reproducibility","text":"","category":"section"},{"location":"index.html","page":"Home","title":"Home","text":"
The documentation of BeforeIT.jl was built using these direct dependencies,","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using Pkg # hide\nPkg.status() # hide","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
and using this machine and Julia version.","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using InteractiveUtils # hide\nversioninfo() # hide","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
A more complete overview of all dependencies and their versions is also provided.","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using Pkg # hide\nPkg.status(; mode = PKGMODE_MANIFEST) # hide","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"
","category":"page"},{"location":"index.html","page":"Home","title":"Home","text":"using TOML\nusing Markdown\nversion = TOML.parse(read(\"../../Project.toml\", String))[\"version\"]\nname = TOML.parse(read(\"../../Project.toml\", String))[\"name\"]\nlink_manifest = \"https://github.com/BeforeIT/\" * name * \".jl/tree/gh-pages/v\" * version *\n \"/assets/Manifest.toml\"\nlink_project = \"https://github.com/BeforeIT/\" * name * \".jl/tree/gh-pages/v\" * version *\n \"/assets/Project.toml\"\nMarkdown.parse(\"\"\"You can also download the\n[manifest]($link_manifest)\nfile and the\n[project]($link_project)\nfile.\n\"\"\")","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"EditURL = \"../../../examples/multithreading_speedup.jl\"","category":"page"},{"location":"examples/multithreading_speedup.html#Multithreading-speedup-for-large-models","page":"Multithreading within the model","title":"Multithreading speedup for large models","text":"","category":"section"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"In this tutorial we illustrate how to make use of multi threading in BeforeIT.jl to allow for faster executions of single simulation runs.","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"import BeforeIT as Bit\nusing FileIO, Plots, StatsPlots","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"First, we initialise the model, this time we use the Italy 2010Q1 scenario, and we want to simulate the model for a large number of epochs","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"parameters = Bit.ITALY2010Q1.parameters\ninitial_conditions = Bit.ITALY2010Q1.initial_conditions\nT = 50\nmodel = Bit.init_model(parameters, initial_conditions, T);\nnothing #hide","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"The model is in scale 1:2000, so it has around 30,000 households","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"model.prop.H","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Note that the households number is actually the sum of active and inactive households, the owners of firms and of the bank","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"length(model.w_act) + length(model.w_inact) + length(model.firms) + 1","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Let's fist check how many threads we have available in this Julia session","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Threads.nthreads()","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Then we need to first compile the code not to count compilation time, we can do that just by executing the function one time","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Bit.run!(model; multi_threading = false);\nnothing #hide","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Let's now compare the performance of single threading and multi threading","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"model = Bit.init_model(parameters, initial_conditions, T);\n@time data = Bit.run!(model; multi_threading = false);\n\nmodel = Bit.init_model(parameters, initial_conditions, T);\n@time data = Bit.run!(model; multi_threading = true);\nnothing #hide","category":"page"},{"location":"examples/multithreading_speedup.html","page":"Multithreading within the model","title":"Multithreading within the model","text":"Is the speedup in line to what we would expect? Yes!","category":"page"}] }