From 414d93a08f6866f6c068f87bcb40a2f55df74d93 Mon Sep 17 00:00:00 2001 From: "Documenter.jl" Date: Fri, 29 Nov 2024 11:36:29 +0000 Subject: [PATCH] build based on 9b90392 --- dev/.documenter-siteinfo.json | 2 +- dev/api.html | 8 +- dev/examples/basic_example-247adbd8.svg | 44 -- dev/examples/basic_example-43610af4.svg | 298 +++++++++++ dev/examples/basic_example-6480309a.svg | 284 ----------- dev/examples/basic_example-72370200.svg | 275 ++++++++++ dev/examples/basic_example-8a36a475.svg | 277 ---------- dev/examples/basic_example-a11a0cd2.svg | 48 ++ dev/examples/basic_example.html | 10 +- ...c.svg => change_expectations-241dcfb5.svg} | 128 ++--- ...7.svg => change_expectations-7b517dba.svg} | 474 +++++++++--------- dev/examples/change_expectations.html | 4 +- ...get_parameters_and_initial_conditions.html | 2 +- dev/examples/multithreading_speedup.html | 4 +- ...enario_analysis_via_overload-9dd7bccc.svg} | 64 +-- .../scenario_analysis_via_overload.html | 2 +- ... scenario_analysis_via_shock-d21c54e5.svg} | 68 +-- dev/examples/scenario_analysis_via_shock.html | 2 +- dev/index.html | 10 +- dev/objects.inv | Bin 1722 -> 1722 bytes 20 files changed, 1010 insertions(+), 994 deletions(-) delete mode 100644 dev/examples/basic_example-247adbd8.svg create mode 100644 dev/examples/basic_example-43610af4.svg delete mode 100644 dev/examples/basic_example-6480309a.svg create mode 100644 dev/examples/basic_example-72370200.svg delete mode 100644 dev/examples/basic_example-8a36a475.svg create mode 100644 dev/examples/basic_example-a11a0cd2.svg rename dev/examples/{change_expectations-a1ccf62c.svg => change_expectations-241dcfb5.svg} (86%) rename dev/examples/{change_expectations-9257ac87.svg => change_expectations-7b517dba.svg} (85%) rename dev/examples/{scenario_analysis_via_overload-4ee7c877.svg => scenario_analysis_via_overload-9dd7bccc.svg} (86%) rename dev/examples/{scenario_analysis_via_shock-96777e2e.svg => scenario_analysis_via_shock-d21c54e5.svg} (86%) diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index 08cd94a..ed7ab7b 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-11-28T23:14:25","documenter_version":"1.8.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-11-29T11:36:25","documenter_version":"1.8.0"}} \ No newline at end of file diff --git a/dev/api.html b/dev/api.html index da81d43..52073d7 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.initializemodel(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

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.initializemodel(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
 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-247adbd8.svg b/dev/examples/basic_example-247adbd8.svg deleted file mode 100644 index 192d9fa..0000000 --- a/dev/examples/basic_example-247adbd8.svg +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/examples/basic_example-43610af4.svg b/dev/examples/basic_example-43610af4.svg new file mode 100644 index 0000000..ab3fd67 --- /dev/null +++ b/dev/examples/basic_example-43610af4.svg @@ -0,0 +1,298 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/basic_example-6480309a.svg b/dev/examples/basic_example-6480309a.svg deleted file mode 100644 index afc5f0d..0000000 --- a/dev/examples/basic_example-6480309a.svg +++ /dev/null @@ -1,284 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/examples/basic_example-72370200.svg b/dev/examples/basic_example-72370200.svg new file mode 100644 index 0000000..919fdc4 --- /dev/null +++ b/dev/examples/basic_example-72370200.svg @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/basic_example-8a36a475.svg b/dev/examples/basic_example-8a36a475.svg deleted file mode 100644 index d9ee47a..0000000 --- a/dev/examples/basic_example-8a36a475.svg +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/examples/basic_example-a11a0cd2.svg b/dev/examples/basic_example-a11a0cd2.svg new file mode 100644 index 0000000..cee4c50 --- /dev/null +++ b/dev/examples/basic_example-a11a0cd2.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/basic_example.html b/dev/examples/basic_example.html index 268d86a..92dd23d 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, 3, 4, 5, 6, 6, 6, 6, 6  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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, 8, 1, 1, 1, 1  …  1, 1, 1, 20, 4, 1, 1, 1, 2, 1], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 86.57621327445297, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  11.988103388298951, 11.988103388298951, 11.988103388298951, 239.76206776597903, 47.952413553195804, 11.988103388298951, 11.988103388298951, 11.988103388298951, 23.976206776597902, 11.988103388298951], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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, 86.57621327445297, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  11.988103388298951, 11.988103388298951, 11.988103388298951, 239.76206776597903, 47.952413553195804, 11.988103388298951, 11.988103388298951, 11.988103388298951, 23.976206776597902, 11.988103388298951], [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, 2385.2292682926827, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534  …  79.20833333333334, 79.20833333333334, 79.20833333333334, 1584.1666666666667, 316.83333333333337, 79.20833333333334, 79.20833333333334, 79.20833333333334, 158.41666666666669, 79.20833333333334], [7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 61.2409140325884, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355  …  4.057486672347064, 4.057486672347064, 4.057486672347064, 81.1497334469413, 16.229946689388257, 4.057486672347064, 4.057486672347064, 4.057486672347064, 8.114973344694128, 4.057486672347064], [94.08074124608001, 94.08074124608001, 94.08074124608001, 94.08074124608001, 94.08074124608001, 752.6459299686401, 94.08074124608001, 94.08074124608001, 94.08074124608001, 94.08074124608001  …  24.99375238071138, 24.99375238071138, 24.99375238071138, 499.8750476142275, 99.97500952284553, 24.99375238071138, 24.99375238071138, 24.99375238071138, 49.98750476142276, 24.99375238071138], [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.384292053067005, 12.384292053067005, 12.384292053067005, 12.384292053067005, 12.384292053067005, 99.07433642453604, 12.384292053067005, 12.384292053067005, 12.384292053067005, 12.384292053067005  …  13.530111496595199, 13.530111496595199, 13.530111496595199, 270.602229931904, 54.120445986380794, 13.530111496595199, 13.530111496595199, 13.530111496595199, 27.060222993190397, 13.530111496595199], [1.254845467476436, 1.254845467476436, 1.254845467476436, 1.254845467476436, 1.254845467476436, 10.038763739811488, 1.254845467476436, 1.254845467476436, 1.254845467476436, 1.254845467476436  …  3.5771064837982873, 3.5771064837982873, 3.5771064837982873, 71.54212967596575, 14.30842593519315, 3.5771064837982873, 3.5771064837982873, 3.5771064837982873, 7.154212967596575, 3.5771064837982873], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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, 1.3061857958470842, 1.3061857958470842, 1.3061857958470842, 1.3061857958470842, 6.317485036273263, 1.3061857958470842, 1.3061857958470842, 1.3061857958470842, 1.3061857958470842  …  2.631055234104207, 2.631055234104207, 2.631055234104207, 41.405672499289174, 8.75336322334394, 2.631055234104207, 2.631055234104207, 2.631055234104207, 4.671824563850785, 2.631055234104207], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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, 11.889212387273576, 11.889212387273576, 11.889212387273576, 11.889212387273576, 57.50324462911912, 11.889212387273576, 11.889212387273576, 11.889212387273576, 11.889212387273576  …  23.948487711601803, 23.948487711601803, 23.948487711601803, 376.8842349588475, 79.67518464537744, 23.948487711601803, 23.948487711601803, 23.948487711601803, 42.52405335619368, 23.948487711601803], [6.44766966354178, 6.44766966354178, 6.44766966354178, 6.44766966354178, 6.44766966354178, 31.184734015456176, 6.44766966354178, 6.44766966354178, 6.44766966354178, 6.44766966354178  …  12.98756660038165, 12.98756660038165, 12.98756660038165, 204.38906878410683, 43.20885641886457, 12.98756660038165, 12.98756660038165, 12.98756660038165, 23.06132987320929, 12.98756660038165]), Bank{Float64}(89460.0, 6476.292527744361, 0.0, 126430.99999999997, 0.028359903595743693, 3695.369633667523, 0.0, 0.0, 0.0, 0.0, 33636.129380554084, 18241.296726948156), 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
+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, 1, 1, 2, 3, 4, 5, 6, 6, 6  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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], [3, 1, 1, 1, 1, 26, 1, 1, 3, 5  …  1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [32.46607997791986, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 281.37269314197215, 10.822026659306621, 10.822026659306621, 32.46607997791986, 54.11013329653311  …  11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [32.46607997791986, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 281.37269314197215, 10.822026659306621, 10.822026659306621, 32.46607997791986, 54.11013329653311  …  11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951], [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], [894.460975609756, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 7751.9951219512195, 298.15365853658534, 298.15365853658534, 894.460975609756, 1490.7682926829268  …  79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334], [22.965342762220647, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 199.03297060591228, 7.65511425407355, 7.65511425407355, 22.965342762220647, 38.27557127036775  …  4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064], [282.2422237382399, 94.08074124607997, 94.08074124607997, 94.08074124607997, 94.08074124607997, 2446.099272398079, 94.08074124607997, 94.08074124607997, 282.2422237382399, 470.4037062303998  …  24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137], [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], [37.15287615920099, 12.384292053067, 12.384292053067, 12.384292053067, 12.384292053067, 321.991593379742, 12.384292053067, 12.384292053067, 37.15287615920099, 61.921460265335  …  13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191], [3.764536402429312, 1.2548454674764373, 1.2548454674764373, 1.2548454674764373, 1.2548454674764373, 32.625982154387394, 1.2548454674764373, 1.2548454674764373, 3.764536402429312, 6.274227337382189  …  3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [2.7379855788259944, 1.3061857958470848, 1.3061857958470848, 1.3061857958470848, 1.3061857958470848, 19.20368308308347, 1.3061857958470848, 1.3061857958470848, 2.7379855788259944, 4.169785361804905  …  2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [24.921793027800895, 11.88921238727358, 11.88921238727358, 11.88921238727358, 11.88921238727358, 174.7964703938651, 11.88921238727358, 11.88921238727358, 24.921793027800895, 37.954373668328216  …  23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181], [13.515402335517333, 6.447669663541784, 6.447669663541784, 6.447669663541784, 6.447669663541784, 94.79432806323621, 6.447669663541784, 6.447669663541784, 13.515402335517333, 20.583135007492885  …  12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651]), Bank{Float64}(89460.0, 6476.292527744357, 0.0, 126431.00000000009, 0.028359903595743693, 3695.3696336675207, 0.0, 0.0, 0.0, 0.0, 33636.12938055406, 18241.296726948145), 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)
     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, 72359.71659768367, 73361.28565764775, 73863.82042955232, 73852.35448633558, 73730.63692935741, 74584.51666838353, 73731.5924233003, 73557.08605879011, 73897.64471572278, 73628.10157511229, 74497.40369539807, 75517.85118073654, 75596.34103937652, 76361.61882241452, 76844.8784182939, 77209.09588493177], [72421.99999999999, 72485.76179390935, 72747.56683714506, 73071.23192475858, 72839.50737975031, 72490.48620841105, 72982.73899015885, 72000.78208808454, 71456.7420902624, 71956.22549718274, 72022.29186450278, 72289.35972784416, 72739.7221546816, 72705.31480115232, 73053.51563735999, 73476.79712557, 73737.38308097003], [64900.920495538005, 64848.469931039086, 65744.6197141433, 66192.82847622025, 66169.2275734934, 66045.46935240367, 66822.29300551175, 66025.70414396013, 65866.43356528769, 66198.89769399479, 65956.96829905306, 66758.96128391504, 67687.51199236767, 67763.11085617733, 68449.05269568681, 68868.73444933686, 69197.26922204808], [64900.920495538005, 64961.43109923765, 65194.61966842905, 65482.55280072805, 65261.75060598256, 64934.58329684036, 65387.21690493296, 64475.78548133063, 63985.687958308175, 64459.73790448199, 64518.464006382485, 64780.27861269304, 65197.443236075975, 65171.650359870226, 65483.73408761535, 65850.24446110672, 66085.80880661463], [40512.94792630535, 40469.74052461798, 41096.23528992571, 41406.16968421026, 41492.383430379276, 41504.01833403844, 41933.08790957095, 41643.999605435805, 41496.061864824645, 41455.57867670511, 41343.924398729614, 41638.43446647094, 42105.94852334845, 42103.73238728173, 42522.95052044939, 42910.633948268674, 43121.463964662646], [40512.94792630535, 40540.23577564265, 40752.436338978536, 40961.864827943835, 40923.336704718546, 40805.9199531925, 41032.53257727293, 40666.42862740777, 40311.1861726884, 40366.46876706914, 40442.224180281635, 40404.30428902209, 40556.9669788083, 40493.56192948929, 40680.7906733441, 41029.87746280223, 41182.50409399134], [14866.888022051655, 14479.948316895398, 14592.996374508244, 14677.924599385875, 14757.682869452961, 14727.342643688822, 14836.639988336527, 15047.094705167274, 15172.181353948723, 15025.527346226841, 15124.373721783533, 15276.210483513047, 15466.910295785803, 15571.277799349893, 15623.49113567809, 15775.364406203385, 15617.071221327382], [14866.888022051655, 14505.171300245214, 14470.915682460965, 14520.42456426656, 14555.288829368656, 14479.628459221747, 14518.008188939926, 14693.872074613548, 14738.955932665662, 14630.780698063967, 14794.515071760457, 14823.435719131705, 14897.918040785415, 14975.786376595028, 14946.657386150036, 15083.93628716576, 14914.848439179172], [15944.236265986641, 16306.843919449026, 16606.592365240627, 16882.713096053074, 16586.779722093426, 16310.624399885042, 16997.203866955308, 15964.033897397088, 15328.02289106655, 16072.02316312171, 15583.272245618688, 16017.119620849548, 16631.7169810113, 16554.930873639336, 16849.71081343693, 16858.011694755987, 17192.134814049143], [15944.236265986641, 16335.249217842831, 16467.666524620472, 16701.554793492447, 16359.300558213858, 16036.279386047952, 16632.17178037125, 15589.286601791167, 14890.347581267382, 15649.783255886003, 15243.405138362636, 15542.38489719379, 16019.874152121785, 15921.821666637488, 16119.755334902515, 16119.131563896006, 16419.089178981434], [15944.236265986641, 15931.009642073373, 16165.700038970954, 16278.313159821939, 16274.634862002757, 16238.828769454742, 16426.358389688703, 16262.042181698112, 16191.418460138588, 16240.16617033507, 16185.90964878448, 16377.643569396023, 16594.27460909707, 16559.796467713917, 16731.442857865703, 16863.616222770495, 16944.276306510896], [15944.236265986641, 15958.760265359708, 16030.462573166224, 16103.640311695826, 16051.43660454218, 15965.691359492335, 16073.585785153264, 15880.299298427586, 15729.08981273297, 15813.508854846055, 15832.899176790268, 15892.223201808274, 15983.809199434836, 15926.501186096011, 16006.61092970317, 16124.490447615815, 16182.375647878009], [3173.2320350842087, 3170.3264725059003, 3218.9188153023956, 3243.194850472859, 3249.9476600118187, 3250.8589797480067, 3284.4664408697295, 3261.823204210714, 3250.895436731438, 3240.9763770180316, 3239.181343235866, 3265.285136068792, 3298.7385951738074, 3259.4388490607926, 3302.590301175174, 3344.6744100918663, 3362.77707339884], [3173.2320350842087, 3175.8489433103155, 3191.9902924321696, 3208.3940651581815, 3205.3762972314285, 3196.1794696375478, 3213.9292132403725, 3185.2536208348033, 3158.069592360773, 3155.8303097870407, 3168.5356421500223, 3168.5046740741727, 3177.3855468900665, 3134.788328877362, 3159.516992060873, 3198.078624624387, 3211.569549352878], [34195.564496956766, 34528.26242440026, 35038.2605952631, 35419.91546331952, 35818.05023450289, 36236.862847391785, 35611.8354741417, 36086.69795666838, 37178.0944585121, 38654.28750744916, 37479.77175325505, 37997.761249416544, 38744.50065473703, 39085.51627596785, 39312.347398588056, 39412.769704403436, 38815.52809405835], [34195.564496956766, 34588.40806644046, 34745.140869072085, 35039.84552280292, 35326.82407393068, 35627.35812240099, 34847.03540985072, 35239.58171064148, 36116.513710263396, 37638.772372499756, 36662.34769715048, 36871.53773899223, 37319.17908922636, 37590.77127198006, 37609.27583401478, 37685.32325555546, 37070.18495369166], [33097.63671130043, 33425.078587678625, 33972.79896729005, 34522.90241341624, 34802.54177009273, 35048.21129564687, 34794.250570620665, 35010.233741368305, 35617.27450956262, 37309.77197777985, 35903.24054427433, 36432.12212485279, 37431.2252741458, 37719.116296862645, 37946.88104573871, 38111.901335337614, 37537.102209165954], [33097.63671130043, 33483.30256626144, 33688.59257798714, 34152.45778374695, 34325.242786481154, 34458.699712452224, 34047.0089662757, 34188.386926369494, 34600.26130662305, 36329.57959633587, 35120.20022305226, 35352.302916496425, 36054.21610626007, 36276.62644355, 36302.96359105212, 36441.471443849485, 35849.243584873795], [29576.147776884867, 29552.245409479907, 30021.863806506564, 30239.212252115554, 30225.17028102308, 30159.025325682127, 30514.634029219465, 30169.370646676398, 30013.453995348485, 30145.373057049288, 30051.28133542469, 30404.114680317114, 30831.72251545505, 30840.667758195203, 31132.935601607587, 31360.565317352448, 31499.137662179393], [34346.710946882755, 34318.953183755664, 34732.20538465064, 34955.48988191981, 34944.494350470384, 34888.0993401782, 35296.01553160328, 34859.452345288824, 34851.02194253707, 35040.80463248066, 34889.77225808494, 35332.71314670681, 35822.10995107515, 35884.113883504775, 36265.04676945267, 36450.17147787985, 36634.57822483799], [28335.329312139667, 28312.42972910853, 28653.354285740304, 28837.55939842786, 28828.488311386565, 28781.963589102044, 29118.486047792732, 28758.330408176826, 28751.375499493595, 28907.942310959526, 28783.34371192873, 29148.7608246276, 29552.503111262602, 29603.655078819495, 29917.91686609368, 30070.64093871916, 30222.772707915927], [978.0617717704337, 977.2713378035111, 990.5505229860905, 998.1263421848284, 999.5629419998569, 998.3446865432962, 1011.6434446889837, 996.8811519949163, 1001.9576274020285, 1012.7200044648122, 1015.914705543476, 1022.1334568911398, 1033.6795258374736, 1038.3292144774582, 1051.0703246265587, 1057.9976541044941, 1063.5533350307176], [0.0019383188997990075, 0.0060798994128938855, 0.003975778616919667, 0.004983541953590187, 0.0037761113274077385, 0.005179107130935723, 0.004059725644024903, 0.003257819876172574, 0.005662219627364573, 0.007640677533085949, 0.004340795658886121, 0.007401280774543828, 0.004541055815761252, 0.005978450652730283, 0.007653302280115293, 0.004166194430743619, 0.0012540721893550266], [2.3548476e6, 2.365601634961327e6, 2.360968759319443e6, 2.3727861087233294e6, 2.3900731875698017e6, 2.4174220546189267e6, 2.4000631373552266e6, 2.3899755643110513e6, 2.4163112160164937e6, 2.4394806201284467e6, 2.4354480261850227e6, 2.45799451787678e6, 2.4713404919340997e6, 2.480355692272717e6, 2.4925929703880493e6, 2.4827543393874345e6, 2.4707850157329473e6], [0.0016459319014481277, 0.002112786768971633, 0.0018549753668456299, 0.0023243288244841416, 0.0029555130652569282, 0.0039810596300945906, 0.0030731934015582334, 0.002507024620096308, 0.003535207567592331, 0.0043919723058096355, 0.004003839225135202, 0.004787847673328124, 0.005071653503914178, 0.005192183816783093, 0.005468694649147395, 0.004771194883633368, 0.003972555013335931], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 517.6647428387892 258.0345635584125 … 136.88651218473714 504.4965839426425; … ; 523.8258850375348 270.18909670795233 … 145.32987009590528 534.3688167341024; 525.7920048021239 271.5733128993819 … 146.1878874295809 536.8194362754704], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 518.5664759737185 258.48404040445325 … 137.12495821659365 505.3753791329526; … ; 500.86679914457756 258.34681312509014 … 138.9601181121806 510.9476382235426; 502.14972775729615 259.36199845772296 … 139.61453807538336 512.6813099449844]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72600.16185195612, 73265.4307439973, 73921.48646700878, 74206.82915391891, 74784.34949793354, 75491.59180633274, 75363.33042592739, 76144.01571060486, 76846.71626598107, 77593.03567708259, 78265.56321384707, 78781.66879980719, 78442.27624173886, 78484.94224514684, 78904.30089592448, 79313.18153314432], [72421.99999999999, 72263.01348696498, 72383.12545325565, 72760.0335574554, 72898.05764760854, 73300.07663046454, 74433.63065851366, 74335.56631629294, 75441.58974803516, 75924.86462100086, 76240.7459291725, 76375.5364704649, 76671.60794542752, 76293.38031574248, 76008.03024183126, 76326.1227842854, 76467.10881966117], [64900.920495538005, 65066.589553453276, 65677.67366141477, 66293.98276805728, 66559.36066692219, 67106.17718104484, 67748.86829241789, 67652.99910316619, 68366.90819589193, 69012.27077115014, 69705.86481163856, 70309.10627993957, 70771.63674185892, 70451.7652243497, 70505.86745080233, 70892.11652200486, 71287.38962916547], [64900.920495538005, 64764.42639397946, 64886.744592048475, 65252.37304330959, 65385.46608454599, 65774.2958623186, 66799.4159263058, 66730.3842984011, 67736.22578639135, 68184.40097494432, 68491.03250701941, 68611.21916694075, 68876.113804044, 68521.76626813252, 68280.76764952333, 68575.73451203207, 68729.31428132151], [40512.94792630535, 40540.02502757513, 40791.054014695, 40937.2870296079, 41052.49964378903, 41159.67409590302, 41538.15604422566, 41339.60482176299, 41719.79657357575, 42009.3016264414, 42277.957184451116, 42679.87131961557, 42982.088384379844, 42913.75411449534, 42761.18292509967, 42896.7507983624, 42882.50423100367], [40512.94792630535, 40351.760941020984, 40299.82421632189, 40294.08119863502, 40328.46464041805, 40342.762697935905, 40956.02823111006, 40775.8377761434, 41334.932865076546, 41505.35889875521, 41541.137860858056, 41649.1996565525, 41830.87105779804, 41738.14835948562, 41411.679641624905, 41495.110295715414, 41343.70925621523], [14866.888022051655, 14913.131454652259, 15162.438577706453, 15286.984294375685, 15454.96117535469, 15400.045923177593, 15345.345590926561, 15431.038553647659, 15300.917278048482, 15382.39918720913, 15579.9433997912, 15636.199612930563, 15598.140196626764, 15797.980103600943, 15971.525265970025, 16044.489148565739, 16328.471652726577], [14866.888022051655, 14843.876266253574, 14979.843598849375, 15046.795504409654, 15182.385011569504, 15094.395469907544, 15130.291449841474, 15220.59844291753, 15159.766835076302, 15197.872239494272, 15308.416483119974, 15258.602695208874, 15180.365027206773, 15365.20052720287, 15467.478737924243, 15520.23951621903, 15742.541083237464], [15944.236265986641, 16140.775431632319, 15959.942968970516, 16291.968668409369, 16144.392484085924, 16542.476498773907, 16727.858964620675, 16390.61715246457, 16923.839257637002, 16860.50274388655, 16936.709014720713, 17256.18550032244, 17433.6274785769, 17104.52905385792, 16864.760124740846, 17294.02362617816, 17340.825087112436], [15944.236265986641, 16065.819179364484, 15767.7439744589, 16035.989584158633, 15859.656953532032, 16214.151799920264, 16493.42987858197, 16167.090830726198, 16767.71741444316, 16658.244495975883, 16641.536416251154, 16839.46771608751, 16966.691255305712, 16635.95707251141, 16332.523932790384, 16728.945770232232, 16718.56724603604], [15944.236265986641, 15974.570866828284, 16101.655417442913, 16194.818472622104, 16267.503509206394, 16377.380069693018, 16561.023007000156, 16533.57491936131, 16689.81360496099, 16876.327640583826, 17031.764675472223, 17166.286146818755, 17306.651851099818, 17256.92641069564, 17238.289524193777, 17292.091285699775, 17353.66496027616], [15944.236265986641, 15900.386453022626, 15907.749838505579, 15940.365810294865, 15980.596693292011, 16052.33210122275, 16328.932008647753, 16308.099017353863, 16535.850640476296, 16673.879557534314, 16734.93544900257, 16751.739332488818, 16843.116498933312, 16784.179562492485, 16694.265090745903, 16727.07656849114, 16730.946373432802], [3173.2320350842087, 3170.9667864413, 3198.273897231016, 3172.8720250904967, 3186.8961256841635, 3193.624537478012, 3233.0364180059796, 3210.235893950546, 3232.6346019162443, 3269.9363386971413, 3288.727433984722, 3302.150239149253, 3340.9922402523425, 3346.2212884859455, 3320.8049786460733, 3311.5166814450135, 3308.1657653067305], [3173.2320350842087, 3156.241113106447, 3159.758407018071, 3123.0199236067574, 3130.689454540525, 3130.239480555198, 3187.72770430831, 3166.456442901667, 3202.813657345665, 3230.7102489007307, 3231.4115633806014, 3222.406965014688, 3251.5082644957893, 3254.552845921249, 3216.003452684737, 3203.313709902429, 3189.455607243231], [34195.564496956766, 35703.374676440275, 35781.8395258465, 36207.71112221862, 36027.663733401394, 35802.20482875174, 36111.07822329336, 36819.23667636786, 36235.89955403021, 37317.23212782641, 37265.96640476742, 37021.90597240596, 36782.12887950086, 36147.660304003766, 37073.320084035804, 37788.66310978902, 37647.802327872625], [34195.564496956766, 35537.57154198763, 35350.93362649496, 35638.816292838535, 35392.250789999576, 35091.62512083634, 35605.007058916424, 36317.11595285104, 35901.62460955452, 36869.57537039157, 36616.49594810353, 36127.867911405345, 35796.96911490377, 35157.40908128056, 35903.32047784271, 36553.92808278122, 36296.8492976605], [33097.63671130043, 34697.14473834373, 34429.844343221266, 34802.46464760237, 34472.68788271297, 34120.05184867239, 34230.84701673326, 34617.1667783156, 34036.43695268654, 34722.71941938222, 34467.540326647926, 34328.599191427915, 34014.316139277056, 33521.64733421844, 34185.846154699364, 35119.62578697091, 34886.42176557055], [33097.63671130043, 34536.01444166141, 34015.219962869516, 34255.64902258611, 33864.699747911436, 33442.858458135226, 33751.125959935984, 34145.07668634507, 33722.45197611531, 34306.18638361588, 33866.840779160404, 33499.60150878979, 33103.2885097867, 32603.33472473735, 33106.97254835089, 33972.10088066256, 33634.55806348767], [29576.147776884867, 29651.645204371896, 29899.09097966068, 30143.229043750707, 30297.567348677017, 30511.051999124244, 30854.095650149153, 30845.972596896114, 31154.317964319158, 31498.342496178855, 31826.267396642947, 32088.910376336225, 32315.124200810784, 32197.7148232186, 32184.2013862198, 32318.715525443484, 32458.6587014991], [34346.710946882755, 34434.385932100326, 34780.70767173821, 35144.62153524565, 35252.66134816379, 35579.12067034985, 35872.65809927285, 35790.476032448365, 36184.74538743583, 36482.66263024281, 36837.85846389621, 37168.24042654769, 37401.68523736323, 37208.090260246056, 37276.015804273644, 37519.16356774731, 37763.711506474654], [28335.329312139667, 28407.6593696645, 28693.367673896846, 28993.589118089374, 29082.719739143362, 29352.041957956844, 29594.20429270951, 29526.405779756544, 29851.66987938262, 30097.445470406612, 30390.47471947893, 30663.033035906905, 30855.620198063367, 30695.90832817648, 30751.94550337222, 30952.53740168211, 31154.284415745868], [978.0617717704337, 980.5584169809301, 997.8750100158385, 1006.1321890609967, 1009.1319700814008, 1016.004511570788, 1022.1145429958513, 1016.5504738216885, 1027.844844136937, 1031.2656447285015, 1041.7389510994562, 1051.955477055679, 1054.8273036849691, 1045.9601408850754, 1045.6502603089186, 1054.2374288140988, 1065.0194211917276], [0.0019383188997990075, 0.008563408334772094, 0.002931162815963617, 0.0050640742877676725, 0.0020561305072588354, -0.0019174306052816004, 0.004600505495561569, 0.000522863360538306, -0.0009872663519755465, 0.0009458420394203859, 0.001681655469256249, 0.004839204856769808, 0.0030812567680242875, 0.0008491607335785467, 0.0030421258906545567, 0.005639637423584309, 0.0009448673697920462], [2.3548476e6, 2.387001312573407e6, 2.368476658849236e6, 2.4002026461084853e6, 2.3899701979183257e6, 2.3771864291125517e6, 2.3930466344044097e6, 2.409619942362219e6, 2.3957941947156247e6, 2.3906155114776823e6, 2.396604070206253e6, 2.3854175115759163e6, 2.383623906927632e6, 2.363205217876348e6, 2.3706821029025186e6, 2.377291863616851e6, 2.380570370619731e6], [0.0016459319014481277, 0.0030636242414227854, 0.002140743135775921, 0.0034160090141421903, 0.002790971175551957, 0.0020142257872454512, 0.0026269204744678275, 0.0031256424785824476, 0.002307222868251015, 0.0019455049994148187, 0.002086458203519179, 0.0015839296416025074, 0.0014634179308005626, 0.0005319885676541722, 0.0008736130637823755, 0.0012125952140961001, 0.0012801533318640913], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 519.4059225206712 258.9024699505447 … 137.34693375494646 506.19347215782756; … ; 577.8724447044366 289.1339186789239 … 147.17342072700183 537.3279420026063; 575.9298647397119 289.2300112588773 … 147.71256745704608 539.4853835186335], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 516.9938499704533 257.70015108224857 … 136.709107433754 503.84275699199736; … ; 558.9906084630704 279.6865408806762 … 142.3645663600659 519.7708871511803; 555.2632083122338 278.8512869780927 … 142.4120524663272 520.1265001694171]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 73271.97089968545, 73516.16897496716, 73381.71600346421, 73954.13804598368, 74968.83173195635, 75056.97358470036, 75716.41246934171, 75489.48951035022, 76696.87497704494, 77639.22291209002, 78502.92729299434, 78964.2139187447, 80446.91800431375, 81206.26754878204, 81907.3789398518, 81807.89122369321], [72421.99999999999, 72308.60372470373, 72597.9852485761, 72215.07558125457, 72343.49035962157, 73017.03740369003, 72743.8077797518, 72741.15989412132, 72748.92342692695, 73241.95875510793, 73539.93964279335, 74027.8352488635, 73927.09408171926, 75060.36795481469, 76007.57103815342, 76789.00038355212, 76704.28043243082], [64900.920495538005, 65686.2889405495, 65894.78484428315, 65764.80603301697, 66279.51597911416, 67204.40321494419, 67277.01699023489, 67903.98120698618, 67707.06816859191, 68788.76821224287, 69625.69413898219, 70429.04025517488, 70967.07229330487, 72281.37165433087, 72962.70607416025, 73582.00401105787, 73464.21786773377], [64900.920495538005, 64822.65699732901, 65071.78876135798, 64719.26110363331, 64836.0139400723, 65454.753793989716, 65203.62010613143, 65235.71565708831, 65249.0346617495, 65690.08353630692, 65949.51820120562, 66414.20350207678, 66440.089374282, 67441.5687666476, 68291.74930046173, 68983.87675641426, 68881.1297392767], [40512.94792630535, 40841.677393030266, 41117.16583114391, 41118.97204086577, 41434.00077173435, 41889.09566287435, 41992.67498253947, 42094.023384439075, 41946.11239301411, 42687.79803345418, 43264.081072011235, 43571.87959424655, 43187.642949025176, 43976.9616615221, 44373.865310068046, 44846.84133915293, 44971.54341034162], [40512.94792630535, 40304.698096738306, 40603.631011962396, 40465.25259254543, 40531.6093810291, 40798.52378864104, 40698.51116019578, 40439.95199632819, 40423.303142330325, 40764.86745839893, 40979.77531716354, 41088.04646287435, 40432.70723552895, 41032.36029093897, 41533.12079965232, 42044.36964491569, 42165.97965829278], [14866.888022051655, 14574.25831667442, 14620.324638567121, 14554.112505975138, 14652.052595015397, 14771.191534447138, 14916.045472547685, 15102.689456321454, 14727.77630208698, 14872.120797608824, 15178.387362059353, 15188.892090458117, 15385.832940538829, 15518.159732351725, 15424.454320475026, 15662.596966032623, 15655.266097088504], [14866.888022051655, 14382.638494120314, 14437.723391183617, 14322.727674935533, 14332.945439741066, 14386.627347002552, 14456.35086078429, 14509.234031899845, 14193.099958670837, 14202.185661221025, 14376.981744712499, 14323.042975055283, 14404.372093050413, 14479.097625958135, 14437.00520755977, 14683.84387339884, 14678.607442305254], [15944.236265986641, 16536.10407669353, 16306.033367427906, 16209.207387367227, 16287.70829423192, 16588.419423045714, 16383.599196980831, 16538.89979947123, 16797.276138052155, 17002.969300221015, 16957.226767055363, 17739.048253063258, 19185.477399200685, 19383.872872777734, 19600.262768339326, 19541.97191067803, 19116.66565152134], [15944.236265986641, 16318.690246084589, 16102.378379841994, 15951.509454149224, 15932.978182119252, 16156.544173067632, 15878.676341522638, 15889.008942061506, 16187.468791672754, 16237.047162271952, 16061.899980251124, 16727.826424207688, 17961.637586272765, 18085.971051644614, 18345.48501858055, 18320.79731969426, 17924.066506711646], [15944.236265986641, 16125.867841653006, 16204.796678305607, 16179.197095517562, 16301.073612855933, 16520.438013095136, 16545.527231754295, 16652.913888133997, 16572.721046880793, 16872.885435775737, 17111.393404171467, 17288.423989751565, 18937.139884782773, 19479.24088420948, 19607.123413673788, 19690.985708643508, 17975.265662139296], [15944.236265986641, 15913.847725966338, 16002.40609121501, 15921.976273240281, 15946.052417376084, 16090.332641709314, 16035.613948691427, 15998.542883027854, 15971.065935610095, 16112.823104417474, 16207.92675335894, 16302.890184580921, 17729.141498724995, 18174.953429177112, 18351.906456277015, 18460.499270082983, 16853.873111410223], [3173.2320350842087, 3200.321215088441, 3221.4359492924154, 3221.4413445300574, 3240.9293207715396, 3278.0896381212347, 3289.334746022245, 3276.9249100937914, 3233.9412359251337, 3314.912154362767, 3371.19708180653, 3392.1618439010253, 2888.6804598415156, 3318.2633610762805, 3446.0734274101724, 3509.4244298002745, 3523.7066968669187], [3173.2320350842087, 3158.2439463844953, 3181.201670146851, 3170.2260841765255, 3170.3450985753657, 3192.7454141894873, 3187.961398655112, 3148.1591780735625, 3116.536419381162, 3165.5873770516705, 3193.200815530155, 3198.7902461338576, 2704.4118028766247, 3096.0796887210727, 3225.461269713287, 3290.1210779052626, 3303.879156340297], [34195.564496956766, 34677.85154771429, 35224.29196725377, 35323.93540808617, 35781.19618007491, 36717.330634274214, 36687.70851808196, 36774.06886552949, 37455.197615701254, 36898.597384973735, 37587.35298598172, 36208.73914356608, 36441.74489662457, 37803.68235693607, 38870.185849653724, 39232.29639021628, 40028.023126433625], [34195.564496956766, 34221.913165414015, 34784.35647947024, 34762.346865830594, 35001.91725984904, 35761.4043376329, 35557.03739249793, 35329.043414306456, 36095.42627668013, 35236.44931557429, 35602.773524038275, 34144.6448982061, 34117.129390371396, 35272.430295047474, 36381.77817320574, 36780.676680769335, 37530.86242805585], [33097.63671130043, 33357.92043442691, 33751.64682942534, 33824.51133882971, 34200.819795072995, 34997.2055226852, 34923.05458545001, 34793.26903641973, 35436.87293850489, 34764.61053921279, 35347.8252750174, 34205.63178833941, 35236.484266645384, 36235.758619274195, 37062.50069975408, 37376.32766622714, 37963.60706169168], [33097.63671130043, 32919.33627765332, 33330.104013881886, 33286.761006205896, 33455.95990311705, 34086.06224265418, 33846.76797524915, 33426.07849047491, 34150.374742427775, 33198.5908423582, 33481.49092337185, 32255.725511479726, 32988.75222350503, 33809.491308774835, 34689.818160844945, 35040.68713522526, 35595.23560293461], [29576.147776884867, 29934.04983761999, 30110.581195273877, 30054.763896854718, 30298.593486482398, 30724.771025469872, 30767.456317453874, 31033.179654372132, 30935.18356513947, 31478.042671470357, 31890.76745692401, 32238.68901985474, 32518.570334860826, 33033.402928087526, 33342.25982613526, 33652.54663882898, 33591.06019583732], [34346.710946882755, 34762.34176939881, 34794.838484108564, 34723.58244929347, 34986.812619310156, 35471.526781768975, 35499.72815863339, 35851.21575778647, 35754.78444090915, 36278.848978355134, 36697.09522848953, 37139.72113740722, 37396.720515780886, 38170.498863765795, 38527.87739414532, 38821.63092194144, 38771.626358155736], [28335.329312139667, 28678.216182631604, 28705.025303140632, 28646.24054162197, 28863.400011821257, 29263.27921529926, 29286.544770529417, 29576.51480249371, 29496.960951647616, 29929.30340424259, 30274.34794866647, 30639.505209595005, 30851.52440498448, 31489.875609519415, 31784.70553844777, 32027.046150321155, 31985.793414821423], [978.0617717704337, 989.8973335306603, 989.3651649006226, 986.4596868688088, 994.1098733216995, 1008.1054077053304, 1009.8325141475516, 1019.5857948276215, 1017.1001625433531, 1031.876562417317, 1037.8314535686604, 1050.630097912999, 1051.7814426631257, 1077.4698624775833, 1092.5688538796364, 1107.8264502875386, 1101.5313137408357], [0.0019383188997990075, -0.0012016635992688762, 0.006535186180279817, 0.0036303465168543436, -0.0009895715216420298, 0.005700358205691591, 0.002417997161298313, 0.004876685972212025, 0.004119363957970856, 0.0022328275569416522, 0.0017881258845879877, -0.00019842974607753305, 0.0032521400513800813, 0.003957097751438043, 0.00035771905537385074, 0.0024797514779957286, 0.006516327119116649], [2.3548476e6, 2.356449212328273e6, 2.339631389686954e6, 2.3571857226224407e6, 2.3774018485286785e6, 2.3878498030940485e6, 2.3751544878743486e6, 2.375362819951641e6, 2.389387700616546e6, 2.373319241747512e6, 2.3654041659457353e6, 2.3651850596071803e6, 2.376461070590024e6, 2.3854214745974257e6, 2.4119813277663095e6, 2.4049817287731674e6, 2.4221469503155467e6], [0.0016459319014481277, 0.0015634005208481903, 0.0008956384411360907, 0.0016506386552476082, 0.002349300292402881, 0.0027384480376893257, 0.002068257021579898, 0.0020356752623670003, 0.002560246714751559, 0.00176047924900338, 0.0013431467348218767, 0.0012300447531184686, 0.001682541475489746, 0.002019649599539625, 0.0029735004764247287, 0.0025248266213177, 0.0031894729156352374], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 524.3527859424245 261.3682777183589 … 138.65503690360725 511.01449914880953; … ; 585.2433742947311 300.28659867103124 … 154.97678414828027 556.31964359156; 589.9493357956411 298.5373770255879 … 154.93841405095714 555.6947666402368], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 517.4586863858744 257.9318528993773 … 136.83202450802588 504.2957690754282; … ; 548.671612678402 281.52173881010634 … 145.29231055169083 521.5553211207069; 553.1451626110282 279.91302971394714 … 145.27253280034083 521.0275754285923]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72562.80666783983, 72343.60640854719, 73401.43137490665, 73470.64968361052, 73937.97293895305, 75377.4514434979, 76413.45701485257, 77157.77541614765, 77956.3228527465, 78859.32702032856, 79292.20294095959, 79405.27974333671, 79854.41014931675, 80457.43666731856, 81697.72631592021, 82473.45525992264], [72421.99999999999, 72286.30075022434, 71816.06622639035, 72558.90808124407, 72505.77387375398, 72913.86311595445, 73838.90036449723, 74752.16398623877, 74974.29270737305, 75310.27703262988, 75949.51049484476, 75748.54345659957, 75830.77737863622, 75578.1186265553, 75965.62883236061, 76847.43830147549, 77466.78463758639], [64900.920495538005, 65029.21284974487, 64832.9165612138, 65807.50792352215, 65870.3369740222, 66302.44870573716, 67634.27200700965, 68546.65549547355, 69203.40444498249, 69922.544015394, 70739.34685696753, 71119.8026486957, 71213.19208507396, 71599.97092095499, 72158.84404797923, 73300.88389711289, 74009.917222826], [64900.920495538005, 64781.4142460726, 64360.14543035099, 65052.14992457166, 65005.27459867873, 65384.09800839696, 66253.76921498025, 67056.39336942829, 67245.02194653724, 67549.18610735955, 68129.1480604032, 67941.37710577669, 68007.46414949134, 67765.71370076228, 68130.33314231326, 68949.10552277288, 69517.0379424168], [40512.94792630535, 40568.4350271233, 40451.59787884423, 40846.50601620213, 40912.790910205615, 41041.51630530045, 41599.232420342494, 42331.81324300894, 42842.85399652296, 43282.34199246323, 43720.2862258802, 44035.72539959079, 44171.273938446364, 44515.516338017274, 44705.252499968796, 45125.17168497182, 45521.93110827109], [40512.94792630535, 40413.846018394026, 40156.61889766062, 40377.65776435253, 40375.49115264287, 40473.05306066, 40750.13839155469, 41411.48390605042, 41630.44694627533, 41813.22369746163, 42107.05902542297, 42067.71832985245, 42182.86304618376, 42131.66146022578, 42209.430960519974, 42446.14878870394, 42758.45630982223], [14866.888022051655, 14813.757346279597, 14860.867477911223, 15015.506659978635, 15101.04203423526, 15293.884320879739, 15280.658794223069, 15261.134057378606, 15337.382568259613, 15629.619374817856, 15539.623690116841, 15609.797926256208, 15598.934718040446, 15797.278207398205, 16294.599638872156, 16316.40468059115, 16220.146834715651], [14866.888022051655, 14757.308433172986, 14752.49985393582, 14843.154242727223, 14902.72297451267, 15082.049771699594, 14968.760824399616, 14929.344126537831, 14903.351008186324, 15099.108346291388, 14966.229831434202, 14912.178155097756, 14896.734194137332, 14951.316578545342, 15384.898642206927, 15347.720904067506, 15235.479314828022], [15944.236265986641, 16114.22415989572, 15790.439732421642, 16192.397391776287, 16138.541370723444, 16202.506143005263, 16966.843443943984, 17264.777747639226, 17143.75478871295, 17402.730010675506, 17659.196666876614, 17798.594890729415, 17779.84545887353, 17087.28645235522, 17080.930979177876, 17943.279229864194, 18400.542076012865], [15944.236265986641, 16052.819722242304, 15675.293531308367, 16006.53627534746, 15926.597033194932, 15978.086334905483, 16620.528268941245, 16889.42691241731, 16658.60482239093, 16812.034871163218, 17007.59305536216, 17003.155273043692, 16979.469213840704, 16172.243462662209, 16127.330382655115, 16878.01002210307, 17283.51050316685], [15944.236265986641, 15972.971660626532, 15922.34684341573, 16128.265629926398, 16145.429674047777, 16242.346216794629, 16544.308889796976, 16839.203991301063, 17013.94937201659, 17185.286517335615, 17377.18271170192, 17482.283614727945, 17504.676075195162, 17606.39341324002, 17728.695669406683, 17975.75093146312, 18151.546502661226], [15944.236265986641, 15912.105476022016, 15806.238756313956, 15943.140636788492, 15933.39487376608, 16017.374586548596, 16206.618190439785, 16473.10548861566, 16532.472760470973, 16601.971990782076, 16735.985083831896, 16700.98031072299, 16716.68683535684, 16663.551674647766, 16738.931423738475, 16908.553920907772, 17049.63056694067], [3173.2320350842087, 3176.7224534455318, 3170.1328903853746, 3187.938166544823, 3185.879505442271, 3194.996668945849, 3232.6127745364856, 3313.973536947685, 3352.4158730444947, 3387.321435680378, 3422.4853152593173, 3449.336123749233, 3459.124245020465, 3482.0706076115266, 3498.8943138721597, 3530.7029872504213, 3564.6392431690574], [3173.2320350842087, 3164.6173186342457, 3147.0158166662272, 3151.346071353222, 3144.039967053037, 3150.7429878797375, 3166.630975244921, 3241.9249561215147, 3257.5460812194424, 3272.346698567593, 3296.1996277590943, 3295.1813365657936, 3303.4085566734807, 3295.6018954496926, 3303.5567348522604, 3321.0897317308754, 3348.2426520264257], [34195.564496956766, 34902.86116127671, 34833.832501106415, 35002.16887076235, 34349.891132698605, 34604.758112315816, 33431.913048180766, 34503.264312940315, 36000.67451968564, 36270.415200929376, 37185.79443132504, 38230.21100312233, 37917.9059388876, 39115.7521567778, 38944.52212462137, 40470.97110988256, 39783.55491132051], [34195.564496956766, 34769.861238920064, 34579.81908851709, 34600.40364561698, 33898.78066657537, 34125.44996662764, 32749.52454991892, 33753.13423498347, 34981.893847303734, 35039.3004301929, 35813.68230156241, 36521.65902971866, 36210.99621095583, 37021.06059194511, 36770.31279290495, 38068.262063266775, 37368.43655597981], [33097.63671130043, 33836.47102673585, 33593.13118173736, 33655.14756381279, 33031.61576425188, 33204.691942548, 31901.196263193167, 32947.53234611562, 34166.890457033805, 34628.783726138965, 35245.57399387059, 36382.126278738826, 36062.68031091094, 36661.42300523254, 36567.86857532213, 38158.100389389256, 37452.7196703978], [33097.63671130043, 33707.53466250532, 33348.16514503258, 33268.843846800264, 32597.817953171452, 32744.77601793804, 31250.051670317967, 32231.22519375126, 33200.003916783506, 33453.39031247889, 33945.05371893738, 34756.16733111273, 34439.28528648112, 34698.16346682384, 34526.34394592682, 35892.703476665556, 35179.09804621083], [29576.147776884867, 29634.61218074374, 29550.436307889493, 29973.746578201637, 30020.744131479332, 30191.79931332978, 30795.213853385, 31286.032829237363, 31623.861979671416, 31959.16542099418, 32307.768035045352, 32522.473449387926, 32561.83125351398, 32749.698584082606, 33000.425688124415, 33452.211997083294, 33802.446561097924], [34346.710946882755, 34414.605521766905, 34302.523900112654, 34839.290979374775, 34855.616433715135, 35113.680844328694, 35822.70061475678, 36240.28842833948, 36551.059520412375, 36921.12771327539, 37374.37359593307, 37533.92642759959, 37584.9444508644, 37777.79262795703, 38080.17637039783, 38751.90910565457, 39099.64506536551], [28335.329312139667, 28391.340938429745, 28298.87590839169, 28741.69769643216, 28755.165860112214, 28968.063685169967, 29552.99039663783, 29897.491744464154, 30153.871496464188, 30459.17013565379, 30833.088656246295, 30964.716457084254, 31006.80527578653, 31165.901051030225, 31415.361412284263, 31969.52708749782, 32256.402094170815], [978.0617717704337, 979.9951472341718, 979.9563532116205, 994.4703659458304, 993.9764088278281, 996.9685480786278, 1016.3575388678532, 1020.334237896617, 1028.4829448986648, 1042.2508811245095, 1057.2052259890972, 1063.4027717081885, 1066.41638069559, 1072.4797089152783, 1078.241989457009, 1096.7627943749847, 1107.8255963625613], [0.0019383188997990075, 0.0015641955043119715, 0.0013398940541771154, 0.00014423471973623592, 0.0006998937772635383, 0.004838108866122459, 0.001914505691324342, 0.0038413465579560935, 0.006287426066999613, 0.008251737011043092, 0.0068144980306958924, 0.0059133614859954164, 0.0071441566824645975, 0.005965466758929283, 0.006182891848118821, 0.00613135066227799, 0.004401944360059584], [2.3548476e6, 2.3785571458193217e6, 2.3847171622175e6, 2.3892429246379137e6, 2.368609246931533e6, 2.374416270076245e6, 2.358696436752845e6, 2.3766347449857076e6, 2.3926700160922185e6, 2.40319828377833e6, 2.4408021348900273e6, 2.434443668028941e6, 2.4269466257666657e6, 2.4558446902825553e6, 2.4613156532219937e6, 2.468509852258659e6, 2.4710802964471355e6], [0.0016459319014481277, 0.002550300603763967, 0.0026469755101638293, 0.0026409908715672296, 0.0016120876514247708, 0.0018449098615308996, 0.001101067211839845, 0.001855747922739105, 0.0025262843793341576, 0.0029614217846665684, 0.004437636751375143, 0.003988569830137942, 0.003554321445109767, 0.004599267887576357, 0.004619774367201245, 0.004705957405943917, 0.004560998150595712], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 519.1075561639336 258.7537466045833 … 137.26803649471745 505.9026955310244; … ; 590.5806913290644 294.9475122702708 … 153.69009370284553 562.663985808756; 596.2285289286435 296.84331296893265 … 155.31046161866257 567.645755777036], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 517.1294585992233 257.7677464010789 … 136.74496653459343 503.9749160600313; … ; 555.5186819208828 277.43686113999564 … 144.5657122415645 529.259354987395; 560.0336120238297 278.8230094689198 … 145.8821149697075 533.185997538632])])

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_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, 71243.25035596392, 72572.29406404927, 72851.5861053226, 73850.71213165983, 75009.0963444325, 76409.06076159947, 77277.05591384228, 78331.28945276518, 79651.5449099036, 81508.94986776679, 81802.43510621789, 82609.94042107499, 82946.56758496755, 83307.68637771803, 84456.9366999116, 85173.54233542384], [72421.99999999999, 71153.30052295733, 71960.12681075084, 72161.21193193349, 72653.7126526301, 73507.60692484397, 74981.36737429957, 75419.8983938516, 76083.62413201854, 77001.02823932254, 77971.93594406794, 78358.61889212452, 78577.03305491219, 78722.97565021149, 78802.636111589, 79854.37710329726, 80000.80852409385], [64900.92049553802, 63858.915248629026, 65071.44441725743, 65346.44170269802, 66296.25693854621, 67361.10289219941, 68658.61976887686, 69558.1782238067, 70475.00907567666, 71654.6846811297, 73311.88120867746, 73581.74619834413, 74293.4779538098, 74596.21721426414, 74909.05212186795, 75933.22098747548, 76577.19037278128], [64900.92049553802, 63778.28868072406, 64522.548892996936, 64727.18963028332, 65221.70284520741, 66012.70665476148, 67375.74236601227, 67886.52429965591, 68452.77460225819, 69270.27473042013, 70130.57234592897, 70484.0143241019, 70666.56921897021, 70797.82035996711, 70858.17686808878, 71795.16923455049, 71926.52760877415], [40512.94792630534, 39756.434979682825, 40371.02551758885, 40301.644705698374, 40483.73193817457, 40932.78672196241, 41419.32277695333, 41366.49705458589, 42106.83827371882, 42862.04502292828, 44000.17330093707, 44153.88518095199, 44705.63747297855, 44923.78173225929, 45160.75627408905, 45832.41730594085, 46244.16023256989], [40512.94792630534, 39706.239562299495, 40030.4848178263, 39919.72831736206, 39827.55673497843, 40113.41748312929, 40645.40810445663, 40372.358494671644, 40898.60998058962, 41435.75046709797, 42090.82192463967, 42295.04240317971, 42523.16773925407, 42636.28837686819, 42718.586938732406, 43334.73694539195, 43435.67388044018], [14866.888022051655, 14609.616285906655, 14893.531623761834, 15062.382968432084, 15463.60271674645, 15840.072151036637, 15887.047680492751, 15584.701292640011, 15672.037737370656, 15520.073810588963, 15591.677079376715, 15672.813005730504, 15586.666642633816, 15769.817383444553, 15942.301158154263, 16060.51313373736, 16285.357164238892], [14866.888022051655, 14591.170572963421, 14767.900589720306, 14919.645098922043, 15212.96296173815, 15522.994597787794, 15590.200255709899, 15210.162629641443, 15222.33882428226, 15003.621626137985, 14915.089060355023, 15013.000281579885, 14825.746317590641, 14966.827272430446, 15080.18541352039, 15185.280479812425, 15296.31977864681], [15944.236265986641, 15665.77002201678, 15995.175417362605, 15950.112241730103, 16164.241048522563, 16373.851673471863, 16946.103213967024, 18692.37331386349, 18621.99947410318, 19140.583938063453, 19549.098043497263, 19587.80534539822, 19858.160982097666, 19668.730508735218, 19494.696082926224, 19865.939807596915, 20043.406980910055], [15944.236265986641, 15645.99083745738, 15860.251715038514, 15798.961853069672, 15902.245089979913, 16046.089225398413, 16629.467473939174, 18243.1496567793, 18087.653330776346, 18503.654210336514, 18700.7809925749, 18763.17461699269, 18888.71198728013, 18667.20996409679, 18440.47660336593, 18783.326875137645, 18826.136850520263], [15944.236265986641, 15665.770022016784, 15940.955545381226, 16004.283868739505, 16146.619863099613, 16388.609776218964, 16698.023872801445, 18160.61152839873, 18630.77593244599, 18927.455376637034, 19286.699184115838, 19322.02548232063, 19508.909155347388, 19602.55856141133, 19710.69814915074, 19807.616084001103, 19984.887086548282], [15944.236265986641, 15645.990837457384, 15806.489202584391, 15852.620125542582, 15884.909515205287, 16060.551908840283, 16386.023463078374, 17724.167413534946, 18096.177954364564, 18297.61780017567, 18449.768716147864, 18508.58387072632, 18556.510169978686, 18604.40745460694, 18644.797872676732, 18728.181557297892, 18771.170968682807], [3173.2320350842083, 3099.8083901297377, 3136.8068679114294, 3136.9657798470807, 3107.3711705807596, 3124.6900862959587, 3169.655825566044, 2765.8949354405095, 3113.7007924529125, 3292.5904818147224, 3445.7011384449597, 3466.2359199528796, 3505.389728271605, 3527.078494988956, 3544.827437804329, 3595.4631647909946, 3629.7030008102643], [3173.2320350842083, 3095.894654503532, 3110.3470395537583, 3107.2384908065815, 3057.005756829487, 3062.141817716338, 3110.4312176848343, 2699.4236844577513, 3024.3551766808405, 3183.0249238419538, 3296.1777680254345, 3320.310197234397, 3334.261266195976, 3347.4816687619145, 3353.132931733719, 3399.5250436609217, 3409.26497601335], [34195.564496956766, 33664.21912933277, 33352.42657414657, 34491.06664347794, 33467.88328696443, 33255.716127930915, 33043.3303888921, 31970.509574823835, 33296.95529229356, 34389.7713258942, 35149.67563738198, 35117.94374499707, 35452.93786462991, 34858.95950823773, 36378.592383004754, 37351.00326928391, 36656.452398304406], [34195.564496956766, 33621.71558164434, 33071.08968615025, 34164.2138884964, 32925.42353671445, 32590.022120931557, 32425.920047495867, 31202.17967958278, 32341.52085198514, 33245.40353867979, 33624.384336922216, 33639.50677771605, 33722.17261364928, 33083.961162680345, 34411.33828650534, 35315.52548311889, 34430.243818445226], [33097.63671130043, 32452.790060974476, 32039.865068810657, 32953.620454015865, 31728.74685874812, 31393.330329968787, 30886.74329870562, 30337.0253220712, 31366.541324721242, 32260.929187571608, 32781.67419342627, 32730.01217086021, 32993.46254126508, 32274.721547708934, 33668.65952045714, 34652.93681664791, 34055.83444059899], [33097.63671130043, 32411.816031406754, 31769.599997984627, 32641.33722591663, 31214.475670780725, 30764.91650240249, 30309.628507301837, 29607.952066823884, 30466.498855615006, 31187.40160293007, 31359.140370423855, 31352.105187344103, 31382.765602862026, 30631.311125864, 31847.951130535857, 32764.49268016409, 31987.565803958318], [29576.14777688487, 29101.29316879055, 29652.667800962, 29767.270907295908, 30153.841427813924, 30624.536269939905, 31194.15322757108, 31678.51699072462, 32134.66609851988, 32677.591431901386, 33484.22990963023, 33669.62766799454, 33995.7395796296, 34182.66479235486, 34309.099153022806, 34767.40994397895, 35076.45297740887], [34346.71094688275, 33795.26340580857, 34438.76239910151, 34597.961088191536, 35144.452727498225, 35729.61252188137, 36436.96604300426, 36849.912627464684, 37302.95150762423, 37919.94645065718, 38743.09844732342, 38826.10180874107, 39203.54329320323, 39318.49820020836, 39500.642094947616, 40049.19988324521, 40375.26577141943], [28335.32931213966, 27880.39644538362, 28411.269864826445, 28542.605505330794, 28993.449855173603, 29476.19463675436, 30059.746726854486, 30400.41915622058, 30774.166904014433, 31283.17502772679, 31962.25847579127, 32030.734539872657, 32342.11599281113, 32436.951424101022, 32587.216386810673, 33039.765267027746, 33308.7629108825], [978.0617717704336, 962.3586740299959, 980.014217193997, 981.209707210552, 997.9627832340293, 1006.9541003780863, 1027.5004983014762, 1029.748605617444, 1037.3914695325313, 1057.1467985711924, 1084.5528517237688, 1086.0167216084924, 1094.1950809768912, 1095.0542217009302, 1099.31087389758, 1116.6111602512924, 1125.471623953007], [0.0019383188997990075, 0.004390058382897077, 0.002202501142879454, 0.004598982686505604, 0.004868573800528075, 0.00045519633417456795, 0.0046245089378125215, 0.006206515265800183, 0.008067077611111584, 0.0034598353496320122, 0.0022922708268877656, 0.0015898432902974324, 0.0023278835052733537, 0.0014577686552570412, 0.002032752461178733, 0.0010512847761827704, 0.0045097866890062566], [2.3548476e6, 2.355212435847597e6, 2.3404820227624383e6, 2.3518114152805298e6, 2.321684022228341e6, 2.3124418246753323e6, 2.3186267518725623e6, 2.317816108798969e6, 2.3068099305371186e6, 2.320705620987048e6, 2.342430830469429e6, 2.3446184307483183e6, 2.364973163458061e6, 2.3519358192621116e6, 2.3663947834274177e6, 2.3866467999622105e6, 2.376487510020121e6], [0.0016459319014481277, 0.0016400604752472936, 0.0009540035500888567, 0.0014650366582309368, 0.00020828013456375134, 0.0, 0.0003691998354902731, 0.00044990533534456067, 0.00013465768751142994, 0.0007965824583807479, 0.0017110052787806017, 0.001712676467866247, 0.002493210662440036, 0.0017998564105095186, 0.0023179410477549753, 0.003012242791432295, 0.002474036955540548], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 509.76544204203344 254.09708730239055 … 134.79769360142723 496.79822255599515; … ; 637.1023870801768 319.3841517037877 … 159.91841435290075 573.8949398742258; 643.6580671650817 322.21690930192716 … 161.41627230598445 579.3564061798804], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 509.12182575340046 253.77627107831097 … 134.62750161876846 496.1709783337897; … ; 602.382897832056 301.97901424712325 … 151.20351109669417 542.6199994587121; 604.5676201123067 302.6481294246679 … 151.61318807863321 544.1711081532309]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72852.46025881641, 72755.1713055858, 73758.50883158082, 74705.73037363462, 75692.79746609903, 76315.02460375377, 77010.46148346356, 77042.32698685705, 77806.73164670881, 78962.62791008037, 79620.68108636177, 79509.38981454681, 79534.64169926783, 78893.02360129522, 79330.20208172732, 80043.9549734142], [72421.99999999999, 72662.61979874238, 72731.17348927677, 73360.72815667604, 74004.79529081128, 74840.68028009364, 75704.3465387946, 76009.76998560017, 75826.2748036277, 76316.50173980164, 77129.7245204311, 77689.14722876609, 77631.08176599421, 78053.12696994, 77564.38692421088, 77749.73011068862, 78028.72381536028], [64900.92049553802, 65317.982600709816, 65238.2059415683, 66162.13641041679, 67015.86464751021, 67915.60295776432, 68487.95655115445, 69114.77412302868, 69120.88970952432, 69809.8702687008, 70863.46733817781, 71463.91170716008, 71357.9947951756, 71404.00402934548, 70840.99970190294, 71245.62704067737, 71879.6687511503], [64900.92049553802, 65147.77563962745, 65216.68754700717, 65805.32307875666, 66387.08061177097, 67151.03810594803, 67939.91122198333, 68216.6809872472, 68029.8711470611, 68472.80399859835, 69218.56400955058, 69730.25453197358, 69672.25307001614, 70073.94103487761, 69647.96708445711, 69826.22164850576, 70069.98620677795], [40512.94792630534, 40536.38779507729, 40431.26809045544, 40794.383227415885, 41308.188158640354, 41748.75490896651, 41959.33014671615, 42386.17208771759, 42557.742909461296, 42921.648477677, 43452.91539710069, 43712.78181978554, 43656.077967196434, 43481.40654549895, 43062.53689318681, 43256.90586510359, 43672.5041545031], [40512.94792630534, 40430.757230489384, 40417.93210172277, 40574.3785452499, 40920.6093458312, 41278.76525680452, 41623.56870689451, 41835.39650193215, 41886.0026051064, 42099.57148174784, 42444.27373927514, 42652.344795854166, 42624.75873804262, 42671.465834473616, 42337.32110967556, 42395.1114226386, 42572.98088442448], [14866.888022051655, 14948.660012704024, 14975.63353156681, 15228.08235285525, 15389.033561432609, 15635.902529664367, 15618.480013129347, 15577.164140474797, 15810.658221983504, 15943.599691087831, 16261.66047063982, 16539.597031535686, 16737.16473870873, 16605.838890927113, 16471.112814287822, 16555.481846579303, 16698.355756207115], [14866.888022051655, 14909.706482730975, 14970.69391701911, 15145.95709067489, 15244.644189158178, 15459.880216970736, 15493.499864049336, 15374.750917440857, 15561.099489776265, 15638.23242297921, 15884.190097795814, 16138.359674337626, 16341.7705429792, 16296.517136479832, 16193.722956496922, 16225.651916250845, 16277.948658389989], [15944.236265986641, 16059.325752665234, 15967.032503841436, 16225.003972000175, 16389.30777040497, 16601.26465214021, 17058.059780041476, 17400.088650229092, 17189.27234244406, 17137.455279891114, 17373.70883848353, 17473.693876989488, 16792.283800980997, 17282.404228132495, 17143.858560544257, 17304.208568182243, 17523.9357341046], [15944.236265986641, 16017.47802674721, 15961.765882841844, 16137.502297514684, 16235.533210648857, 16414.374704971204, 16921.560014857336, 17173.9879304185, 16917.953276968296, 16809.2221328886, 16970.425276833346, 17049.796079581054, 16395.58748762062, 16960.479895852357, 16855.138997894483, 16959.461978543593, 17082.74337529585], [15944.236265986641, 16033.240495507605, 15993.058371954021, 16186.256433949993, 16398.19312084675, 16624.72823883363, 16739.506513059307, 16926.65085422139, 16957.881068293816, 17111.20791370583, 17351.98158053556, 17494.62886340169, 17453.89868438751, 17437.434511129948, 17292.338553742324, 17356.669396835652, 17529.10277001997], [15944.236265986641, 15991.460743096617, 15987.783166492443, 16098.963725481857, 16244.335193271105, 16437.574148626765, 16605.55583298229, 16706.702093094147, 16690.214331026655, 16783.477481690043, 16949.20235828991, 17070.223200015327, 17041.57256222791, 17112.62238501752, 17001.11844090736, 17010.877645744134, 17087.78032303935], [3173.2320350842083, 3180.1680617348566, 3147.004640402654, 3163.0564350157933, 3202.348942044512, 3250.229227275204, 3260.527206199291, 3318.4122590914876, 3333.1179407045543, 3361.896798913322, 3402.795737482335, 3423.8633995608147, 3418.950968020438, 3402.176058091811, 3352.6237930758416, 3340.180872865038, 3381.112662720316], [3173.2320350842083, 3171.881113486194, 3145.9666215521906, 3145.9980272006924, 3172.302535835852, 3213.639534784859, 3234.4362437005293, 3275.292053471211, 3280.5073108433085, 3297.506494274579, 3323.809057243958, 3340.8032198461838, 3338.182606751176, 3338.802742588761, 3296.1622869424523, 3273.6354449040177, 3295.9878886000506], [34195.564496956766, 33628.958518253006, 33899.78730949818, 34496.71498658223, 35224.63908795926, 35595.509890080124, 36240.18222331161, 35597.158842121935, 36302.373087695945, 37233.31457792484, 37241.22337713968, 37989.83948557717, 38563.1220304792, 37820.9928683147, 37996.548267106016, 37525.52644957316, 38575.110823148134], [34195.564496956766, 33541.32747690952, 33888.605686884, 34310.673717761376, 34894.13987199483, 35194.79084233256, 35950.18579772164, 35134.601242605924, 35729.368847348574, 36520.186063939065, 36376.76931362532, 37068.236452171455, 37652.11739749035, 37116.490316784046, 37356.64875095346, 36777.91657091787, 37603.922364481754], [33097.63671130043, 32320.871819883447, 32518.55012977576, 32985.675707272596, 33605.43820480218, 33888.63451475248, 34561.0275594442, 33950.12223707952, 34817.71957472719, 35429.286379871905, 35366.88017328341, 36095.23112752638, 36239.25872281911, 35656.00083360566, 35781.03293382947, 35311.920647710926, 36425.951494548724], [33097.63671130043, 32236.649418134995, 32507.82409919064, 32807.78349452474, 33290.131326821276, 33507.13074098572, 34284.46784472763, 33508.966606797134, 34268.14941557125, 34750.710361753016, 34545.93390709851, 35219.589773178515, 35383.15240013922, 34991.82621365011, 35178.44489080929, 34608.41177766224, 35508.87146723178], [29576.14777688487, 29766.20810824097, 29734.504706430133, 30125.24151475653, 30532.254038370927, 30943.646549169574, 31153.88784239671, 31486.347091588716, 31525.79580612655, 31806.37660404044, 32278.764287250535, 32538.42272921837, 32458.006987332, 32424.041350074887, 32210.47811615725, 32396.951404548887, 32687.85326615743], [34346.71094688275, 34567.42756328603, 34525.37252157199, 35045.17966449506, 35479.8109800074, 35954.15891374135, 36306.067487189066, 36589.3993863666, 36559.66928904005, 36954.91989303954, 37515.95783548433, 37851.046072409285, 37822.4359024467, 37903.04712484547, 37564.43712108274, 37775.34993869851, 38111.27634745872], [28335.32931213966, 28517.41597598704, 28482.721432511076, 28911.551622286916, 29270.11350826943, 29661.440786496176, 29951.758113585438, 30185.501096435964, 30160.97437830181, 30487.0479881583, 30949.892738573075, 31226.333634371706, 31202.730833252852, 31269.233431899218, 30989.88715097468, 31163.885882688366, 31441.018252992624], [978.0617717704336, 984.3469291828109, 978.3287135661544, 991.7152311652351, 1003.799629131806, 1017.7974948534346, 1028.0012215686668, 1039.027645073504, 1035.424614357702, 1048.5737716208519, 1068.7452154429507, 1074.4429055324176, 1077.5519053969708, 1076.915554425099, 1066.0844646629748, 1073.3256974299031, 1080.5391375341717], [0.0019383188997990075, 0.0008551293896297274, 0.010066716257840058, 0.009038966302589824, 0.006810189936583555, 0.00992166496301472, 0.005606635249646885, 0.002017495691911675, 0.0031228155465850005, 0.00037313832176910644, 0.004527569789487762, 0.00608063967312833, 0.004296219061554529, 0.006393682164011372, 0.0028271442830465343, 0.007273397076008603, 0.007806174664064969], [2.3548476e6, 2.34653684595624e6, 2.3572632322270554e6, 2.360438198916264e6, 2.383025484454658e6, 2.394416549659693e6, 2.4118447086329423e6, 2.393164543620861e6, 2.4002069302276936e6, 2.3940333702693945e6, 2.3902192217583964e6, 2.407213751816098e6, 2.408547282091694e6, 2.3932328904249948e6, 2.3996281775162546e6, 2.3775771769768554e6, 2.3799286587873087e6], [0.0016459319014481277, 0.0011965689991028413, 0.0017886131602627012, 0.001996102698807255, 0.0029458220605788578, 0.0034255851426428854, 0.004016568640461718, 0.0030036919368347367, 0.0031424262914116416, 0.0026653543298103734, 0.0024152226128245314, 0.0030752968290787444, 0.0030007014200743864, 0.0022998654634619566, 0.0024573176990985877, 0.0015384420603397969, 0.0017009630883745496], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 521.4127133871024 259.9027725837368 … 137.877591108359 508.14921504124163; … ; 566.7184815929875 284.5359897838008 … 148.05074588832366 541.5033841222983; 574.9327936109028 288.82134566143395 … 149.56581981286465 546.6029817981732], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 520.0540052659727 259.22551251940223 … 137.51830680640236 506.8250692206755; … ; 555.4279181994317 278.8672640676888 … 145.10117500576362 530.7151736000787; 560.4579656259974 281.54981872250045 … 145.800267493931 532.8414009221318]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72567.0591677464, 73704.47256353937, 74735.81738127454, 75531.30508117602, 76444.22398408207, 75925.56452519224, 76194.96058909237, 76987.87833345486, 76755.54976149113, 76858.79156044264, 78387.37477400414, 78806.84168130341, 78434.29575488943, 79073.53837400577, 80296.42376925943, 80273.30788251157], [72421.99999999999, 72593.83876646176, 73541.02448922598, 74140.5725406458, 74618.22400566337, 75230.23797780639, 74498.7654164657, 74799.30452055724, 75358.2774081285, 74814.31919435087, 75331.82492129966, 76576.67951575221, 77487.37446335236, 77066.3742571368, 77650.48431619874, 78873.77144063699, 78649.51593102707], [64900.92049553802, 65045.83781133185, 66091.21120677725, 67027.03988547268, 67740.46634053692, 68580.88517358953, 68092.10127844785, 68327.34613988342, 69047.10144355235, 68826.05466216899, 68932.00505531016, 70355.39297151323, 70732.31151088637, 70372.19987726022, 70959.4460084722, 72070.35681049827, 72039.48778650745], [64900.92049553802, 65069.84183539827, 65944.64640785716, 66493.19278146762, 66921.56697430104, 67491.77430870493, 66812.50921979189, 67075.80043988235, 67585.58278841853, 67085.36957110993, 67562.5212272185, 68730.23105209379, 69548.03658884417, 69144.88414592404, 69682.41794499438, 70793.44986834428, 70582.25195628597], [40512.94792630534, 40489.591895882135, 40924.81619287235, 41456.76649980697, 41891.55820201357, 42242.93436535656, 42150.26242475342, 42323.333113248016, 42716.46135225887, 42717.63429295826, 42640.8069801071, 43137.80996355349, 43412.9400297937, 43395.425234170405, 43627.866436552766, 44257.60823480037, 44347.228185681415], [40512.94792630534, 40504.53386866643, 40834.06074526245, 41126.57774650447, 41385.140512330094, 41572.0879820609, 41358.17141777411, 41548.10052249068, 41812.28284450982, 41637.25928811388, 41793.65484041261, 42141.35577462863, 42686.07482390415, 42638.59386964279, 42842.713607393285, 43473.473818111604, 43450.159482546034], [14866.888022051655, 14912.04346542727, 15062.080874482228, 15266.887619566462, 15630.530173036053, 15648.927466551175, 15639.823313517138, 15721.497221420099, 15485.33288400319, 15634.308549315361, 15793.515826931933, 15892.363107754809, 15716.432979949488, 15843.476081979776, 15796.115838464219, 15785.101173787783, 15886.312807128666], [14866.888022051655, 14917.546493173064, 15028.678992229223, 15145.292159632603, 15441.576185204287, 15400.411908834569, 15345.918538440168, 15433.528006213593, 15157.55514362361, 15238.900038186985, 15479.743371069966, 15525.260285334827, 15453.291891463412, 15567.16032848087, 15511.839616560559, 15505.42855714719, 15564.959824980037], [15944.236265986641, 15988.466302772753, 16345.843297295089, 16644.29373738491, 16530.64547201061, 17022.58867265972, 16993.0942151628, 16926.00535428411, 17260.519044026598, 16827.949212337408, 16444.616648953346, 17542.45331736102, 18079.801290825282, 17178.87139157921, 17316.028744922205, 17979.732772412834, 18025.194077123313], [15944.236265986641, 15994.366565461805, 16309.594525449276, 16511.72771589421, 16330.810191390501, 16752.258445440722, 16673.75866813955, 16615.973274654094, 16895.16597267776, 16402.35224254461, 16117.908662701675, 17137.234528858033, 17777.090198725113, 16879.265877722057, 17004.39927345459, 17661.17675838427, 17660.575179030613], [15944.236265986641, 15973.655147561698, 16202.903344209448, 16443.489382432126, 16628.774328543503, 16810.234338554892, 16725.09319669422, 16780.31533895512, 16950.009855748194, 16921.447756692134, 16933.522648200695, 17250.608748325387, 17357.695689108106, 17292.543927989118, 17421.424008452337, 17691.829907070325, 17696.508808467173], [15944.236265986641, 15979.549944454042, 16166.971558012698, 16312.52269791866, 16427.752790096052, 16543.27644186055, 16410.793945636367, 16472.951849904413, 16591.229326356537, 16493.48610795627, 16597.10148359466, 16852.13137167377, 17067.074850202167, 16990.95592541625, 17107.897781628577, 17378.37481363784, 17338.53865212804], [3173.2320350842083, 3174.1345313907213, 3196.8173504661554, 3246.223799817155, 3282.7799092984033, 3300.5459744713457, 3297.826159898057, 3312.1218767927735, 3342.657228555482, 3342.050254976597, 3339.128893678598, 3380.7003333088537, 3392.3229433161287, 3391.4627969159715, 3412.9086113791245, 3460.008691989303, 3465.859789314346], [3173.2320350842083, 3175.3058899932876, 3189.728043376753, 3220.368754190101, 3243.0951162575398, 3248.1310709344602, 3235.8531544274615, 3251.454045727114, 3271.9032679240504, 3257.5262025525226, 3272.7898539808916, 3302.608445670803, 3335.525096569394, 3332.314501848375, 3351.4878940542453, 3398.7059690080446, 3395.7513637453], [34195.564496956766, 33873.85116565621, 34733.471056376184, 34586.35615382694, 34629.226333271035, 34299.10363403539, 33823.02034238462, 34186.395934054264, 34823.25049588509, 35030.65447622065, 35468.39034763682, 34568.74875677551, 34557.076925836234, 35402.43611518789, 36459.492362536956, 36774.306438168445, 36764.81372827474], [34195.564496956766, 33886.35171551401, 34656.445622763706, 34310.88783384204, 34210.601351343794, 33754.410658302, 33187.415515726476, 33560.20687144667, 34086.1474290208, 34144.69147462044, 34763.733824871255, 33770.23407710858, 33978.485915473844, 34785.005271082206, 35803.345823264965, 36122.75746211346, 36021.124322611155], [33097.63671130043, 32696.893661992068, 33361.738857486205, 33218.486629310086, 33150.65509915516, 32769.33015452075, 32680.635770625613, 32962.271033914374, 33297.685442718684, 33454.99676934052, 33488.53824318639, 32754.00037144033, 32959.40954510139, 33385.91306802763, 34125.96500847067, 34500.324849909695, 34750.240915696486], [33097.63671130043, 32708.959876353645, 33287.75539647844, 32953.91291522703, 32749.904234605056, 32248.931016831815, 32066.498723614586, 32358.504154247978, 32592.873981703277, 32608.88384911491, 32823.21577775578, 31997.405150177517, 32407.56836621424, 32803.65108979082, 33511.81400447501, 33889.06515511933, 34047.30287814058], [29576.14777688487, 29642.188380232576, 30101.99562055512, 30558.077000664543, 30887.510943664798, 31235.2244365972, 31047.05799741159, 31139.38390434289, 31462.427534571354, 31432.12318264625, 31452.878781763502, 32079.066781353187, 32281.953832243446, 32157.026266588124, 32397.0863226773, 32926.387882659066, 32959.897567506996], [34346.71094688275, 34423.403744438845, 34994.58374424358, 35461.79721653539, 35838.71514845923, 36319.55905892702, 36030.33681960517, 36168.343206242665, 36553.20669292951, 36370.66547314203, 36453.99968414782, 37229.38596717332, 37403.08157317573, 37175.72636078126, 37511.93036283429, 38074.48660366575, 38015.88300700242], [28335.32931213966, 28398.5992909735, 28869.81102987929, 29255.25252431904, 29566.202057193655, 29962.888382469835, 29724.285990285814, 29838.138417628837, 30155.64286957927, 30005.050121885994, 30073.79913006521, 30713.47684790031, 30856.772146357307, 30669.208777509793, 30946.570156564834, 31410.667471885943, 31362.32071132133], [978.0617717704336, 980.2456866604433, 994.6318419785938, 1007.1656682728758, 1014.240248412792, 1026.1016780653965, 1014.7064614311143, 1019.6190292977686, 1031.4672160514297, 1023.2660063806209, 1025.1265893988996, 1046.9402229867105, 1047.2761054671498, 1039.447249890747, 1050.4293229605971, 1069.4823241735412, 1063.7072119979655], [0.0019383188997990075, 0.001062631760513577, -0.000727441813866414, 0.0032781861410102753, 0.0021582889461471133, 0.002855802401142915, 0.009311782935961688, 0.0019626854617302847, 0.00281489306863536, -0.00017769625291519375, 0.001923554425576679, 0.0031662228098596756, 0.005640596581898194, 0.004018077984217383, 0.004150984169684513, 0.003532570259757062, 0.005357508713485171], [2.3548476e6, 2.367830656463637e6, 2.376889480359083e6, 2.3763186245968123e6, 2.37422715345624e6, 2.3747721471572714e6, 2.356287020389921e6, 2.3708287069719243e6, 2.3581925076165698e6, 2.340515762979276e6, 2.35006313913307e6, 2.325549575138773e6, 2.331656441019467e6, 2.343942486538165e6, 2.361467240306332e6, 2.3589810435978905e6, 2.3485495772448117e6], [0.0016459319014481277, 0.002090754619198077, 0.002295580589126204, 0.0021772364434308198, 0.001979007680163511, 0.0019206086753119859, 0.0012264775592451117, 0.0017877398326768801, 0.0011957388737210161, 0.0003658418981908933, 0.0007841267309604935, 0.0, 0.000387732612284332, 0.0009695160926690982, 0.0017283959159670977, 0.0015779477164148193, 0.0011491218156000921], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 519.2402679530281 258.81989796809046 … 137.30312958186784 506.03203144809027; … ; 592.1307581436182 291.45357601438434 … 151.2143715727019 553.3648618414759; 598.6460308147081 294.1761145615615 … 151.6555369052329 553.4109535365358], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 519.4318844546775 258.9154109058697 … 137.35379889043196 506.2187736820282; … ; 581.6396781878939 286.2897456824918 … 148.5352301148298 543.560616866147; 586.5364438017036 288.22543407081656 … 148.5878043460466 542.2163948978016]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 71132.06309343773, 71338.34696400419, 72402.35619991427, 72853.94557748127, 73557.95084475155, 75030.20244688989, 75741.7707045444, 76890.74284463584, 76879.7575740588, 77718.74183780048, 77315.78627527763, 76648.14856399994, 77807.07350744474, 78616.28108733338, 78213.34280209783, 77968.73403759481], [72421.99999999999, 71239.20426519224, 71873.89803374402, 72803.7344849855, 72681.07707055361, 72936.19431941649, 74104.26062516532, 74147.75555762589, 74865.15386614653, 74620.70116973613, 75427.51101669804, 74699.84039308653, 73977.74231492777, 74674.77894503513, 75290.85423274331, 75277.3680366146, 74891.49104686546], [64900.92049553802, 63758.69878753736, 63951.31753402832, 64916.141743783955, 65324.97092320933, 65955.41717438766, 67280.40996338768, 67923.43958287446, 68955.4172786092, 68937.18127555621, 69700.28455381893, 69313.5991287316, 68687.3179125792, 69750.8310608648, 70482.28994237889, 70124.22811276726, 69890.67870905815], [64900.92049553802, 63854.7339846139, 64431.41271388862, 65276.01856291145, 65169.96723605039, 65397.92188613632, 66450.10772060788, 66493.96426801481, 67138.87437527286, 66911.51176552322, 67645.44634577622, 66968.40375588665, 66294.2654198291, 66942.85822489129, 67500.92658474288, 67491.90277271601, 67132.25760822222], [40512.94792630534, 39676.80444889115, 39685.24729549615, 40149.781332491024, 40342.254241466544, 40725.44958788165, 41505.63431214475, 41865.44749391989, 42509.80381763903, 42568.404031450715, 42944.0902346126, 42913.97570188181, 42706.067147047135, 43167.86699794845, 43590.04605042707, 43384.80398977725, 43341.863572836286], [40512.94792630534, 39736.56679986556, 39983.17229020781, 40372.360420010235, 40246.52977244105, 40381.21332602727, 40993.41654658525, 40984.3728000347, 41389.937018267054, 41317.56208314712, 41678.05297251827, 41462.00006490015, 41218.196262761565, 41430.04974081232, 41746.210298798505, 41756.22393992925, 41631.261912684284], [14866.888022051655, 14663.437459298291, 15014.181421818717, 15317.536844943206, 15539.741161449261, 15764.99274027351, 15976.4630709619, 16022.720309709011, 16173.910506307931, 16389.19318245947, 16486.732785120843, 16502.021270587946, 16481.987547460467, 16764.527105664012, 16618.95558770324, 16599.74725843308, 16245.808748503148], [14866.888022051655, 14685.523953110134, 15126.895849106733, 15402.452958078551, 15502.868321806503, 15631.73743618257, 15779.298797933128, 15685.515902801968, 15747.829372889195, 15907.608523651828, 16000.686441558246, 15943.682583622704, 15907.758379914201, 16089.63426202794, 15915.982610067791, 15976.62545698451, 15604.624795510443], [15944.236265986641, 15655.910216865714, 15705.437325429893, 15844.263484182504, 16000.249402461084, 16168.902413490554, 16405.61746566881, 16806.277099316616, 16871.415969791044, 16894.800652106678, 17688.805465125348, 17913.422242230346, 16050.666714903133, 17164.637482239516, 17370.831360672706, 17155.268220020884, 16991.573308177012], [15944.236265986641, 15679.491601863827, 15823.341147403904, 15932.099621558164, 15962.283864661475, 16032.23301925592, 16203.157032039677, 16452.58243373874, 16426.959940682686, 16398.35908130528, 17167.32074584407, 17307.329419431277, 15491.46467936455, 16473.637316988377, 16636.05443794896, 16511.293256356163, 16320.955777836713], [15944.236265986641, 15645.0750070324, 15633.33925852157, 15884.512897405722, 15945.756453080729, 16085.703947602857, 16423.766956663992, 16595.89682877138, 16847.81501672756, 16858.797872703934, 17028.397577085187, 16953.36409267882, 16805.1603599083, 17052.62400789442, 17213.548022157887, 17165.175109844495, 17113.761081927903], [15944.236265986641, 15668.640071723927, 15750.70182605807, 15972.572166200063, 15907.920216648708, 15949.73779738834, 16221.08254159529, 16246.62969815529, 16403.980724757363, 16363.414217691421, 16526.382381779666, 16379.754418328135, 16219.671915862084, 16366.133190968461, 16485.42410095549, 16520.828261057817, 16438.32108685262], [3173.2320350842083, 3098.833663221943, 3070.743070076781, 3132.4007695131613, 3127.297807878133, 3155.683063270899, 3231.1269378080847, 3271.788140616956, 3329.991588460065, 3334.4171176881237, 3363.6545802073706, 3361.2958182590446, 3345.0110964518476, 3381.186375491558, 3414.2499526231227, 3398.174087618545, 3394.810720754087], [3173.2320350842083, 3103.5012161553313, 3093.795745195608, 3149.765917762637, 3119.8773271000405, 3129.0093112978607, 3191.2518546356077, 3202.932081336329, 3242.2671887403703, 3236.4376679332213, 3264.490480744749, 3247.5678413709356, 3228.471575243159, 3245.0692948583614, 3269.8289965094295, 3270.6133286415043, 3260.8255070111486], [34195.564496956766, 34255.801631953604, 33914.24463221177, 35444.34957552917, 36252.779273924614, 36360.294075307465, 36862.49872765806, 37846.47092302293, 38639.23094586342, 38312.10037686549, 37820.34852910681, 37203.28189580571, 37634.082571654435, 38051.13267760913, 37983.52342604005, 37464.166592459784, 38784.3998328008], [34195.564496956766, 34307.39871161951, 34168.845569367775, 35640.84307373531, 36166.758348422445, 36052.95476195254, 36407.58153282085, 37049.97716076276, 37621.32947364858, 37186.32685142171, 36705.36459903275, 35944.52509117569, 36322.91862105322, 36519.30079386402, 36376.84059792984, 36057.8356035947, 37253.67057307494], [33097.63671130043, 33119.89066357049, 32980.76371095258, 34353.575037231574, 35281.07850182092, 35461.68797220171, 35720.011129543396, 36799.14512142282, 37303.618394965895, 37284.7406688238, 37221.23517616515, 37216.91483522815, 36224.655417065725, 37341.09075601621, 36947.07533750964, 36390.643258593, 37394.9114247221], [33097.63671130043, 33169.77680126639, 33228.356822342554, 34544.02158839679, 35197.36323677852, 35161.94422400183, 35279.19328421339, 36024.69273971109, 36320.901939341384, 36189.15536979008, 36123.91374225524, 35957.696766043235, 34962.595628166244, 35837.84316865738, 35384.23371200172, 35024.61022024979, 35919.02201224061], [29576.14777688487, 29055.623294768855, 29062.00924193341, 29495.84986072689, 29643.19369817204, 29902.34078949899, 30504.752092498104, 30815.661520504596, 31284.734578440493, 31305.505731241137, 31610.4035496597, 31446.693452593358, 31141.720765320806, 31637.234536331318, 31910.315095921236, 31844.667723125236, 31735.962109131986], [34346.71094688275, 33742.22708837344, 33920.34095890926, 34435.14224691111, 34687.47232873445, 35040.669330250945, 35741.89275364312, 36065.76770526875, 36610.382481775596, 36573.69109938223, 37017.668543827116, 36799.187170091194, 36482.44803955125, 37052.731214262705, 37487.96906603349, 37208.68663487941, 37094.07926466199], [28335.32931213966, 27836.642575548693, 27983.582851271094, 28408.283313810432, 28616.45043568946, 28907.83068940596, 29486.32557510059, 29753.515741415435, 30202.811718094075, 30172.542083116758, 30538.81433302632, 30358.571698354546, 30097.268437504626, 30567.740314174614, 30926.8025800814, 30696.400324969287, 30601.851604373274], [978.0617717704336, 960.8484043951818, 968.9673331857012, 985.1496361459851, 994.3048963028175, 1012.4070546376723, 1033.7651172464812, 1042.0103571011316, 1060.3002183931874, 1057.9844449328164, 1072.212460332111, 1067.7185060470213, 1063.149107707145, 1060.8653102708072, 1084.0057804241733, 1070.8737547625587, 1060.6373352641747], [0.0019383188997990075, 0.004616381903594036, 0.0010509631028028377, 0.0037978900250634773, 0.00422105905888337, 0.005880861329945475, 0.008032088363821854, -0.0020437039670950785, -0.0027939082073445975, 0.005633047594552298, 0.006579566131757364, 0.0035453740652395815, 0.0024531581979085892, 0.005434323133307162, 0.00015276414519616033, -0.0023147395157661066, 0.0036480140688939233], [2.3548476e6, 2.3732086651718654e6, 2.3543885624341983e6, 2.3815815904326704e6, 2.3913229819546216e6, 2.378729620859337e6, 2.3973393424643395e6, 2.4236307953511635e6, 2.4176785575501807e6, 2.415155457814373e6, 2.414120761676786e6, 2.390942547624358e6, 2.3945055784702785e6, 2.3743352196701276e6, 2.373359863038534e6, 2.371873259727437e6, 2.4089406245561466e6], [0.0016459319014481277, 0.0023969409206473875, 0.0014635880533095185, 0.002578438600564837, 0.002886735644765763, 0.0022899854621364797, 0.003074279011055671, 0.003878487911609116, 0.0032856726813965055, 0.0030690425366307478, 0.002950680617599527, 0.0018692283770821857, 0.0019337166317148439, 0.001086719811825925, 0.0009693667491552281, 0.0007828729766624415, 0.002345786881178501], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 508.965445856859 253.69832213758912 … 134.5861499545698 496.0185763695959; … ; 544.6799023451889 272.72721988245394 … 147.54504645902662 543.2070851813847; 551.1397682445304 272.95491834452616 … 146.89493851649206 540.4767906791192], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 509.73206433915914 254.08044989157028 … 134.78886750810264 496.76569390243606; … ; 524.2336921301658 262.4895774707069 … 142.00649615985532 522.8161616204313; 529.3875747572695 262.1820281645241 … 141.0973399597996 519.145439897314])])

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-a1ccf62c.svg b/dev/examples/change_expectations-241dcfb5.svg similarity index 86% rename from dev/examples/change_expectations-a1ccf62c.svg rename to dev/examples/change_expectations-241dcfb5.svg index 966bc17..3ec79bd 100644 --- a/dev/examples/change_expectations-a1ccf62c.svg +++ b/dev/examples/change_expectations-241dcfb5.svg @@ -1,82 +1,82 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/change_expectations-9257ac87.svg b/dev/examples/change_expectations-7b517dba.svg similarity index 85% rename from dev/examples/change_expectations-9257ac87.svg rename to dev/examples/change_expectations-7b517dba.svg index 1dae0b3..c12743a 100644 --- a/dev/examples/change_expectations-9257ac87.svg +++ b/dev/examples/change_expectations-7b517dba.svg @@ -1,284 +1,284 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/change_expectations.html b/dev/examples/change_expectations.html index bfd81f3..d59be1b 100644 --- a/dev/examples/change_expectations.html +++ b/dev/examples/change_expectations.html @@ -35,7 +35,7 @@ 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/get_parameters_and_initial_conditions.html b/dev/examples/get_parameters_and_initial_conditions.html index 398da2e..454044e 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 e829fc4..8b58432 100644 --- a/dev/examples/multithreading_speedup.html +++ b/dev/examples/multithreading_speedup.html @@ -7,5 +7,5 @@ @time data = Bit.run_one_sim!(model; multi_threading = false); model = Bit.init_model(parameters, initial_conditions, T); -@time data = Bit.run_one_sim!(model; multi_threading = true);
  5.317323 seconds (3.78 M allocations: 6.420 GiB, 17.53% gc time)
-  2.614163 seconds (3.65 M allocations: 6.150 GiB, 8.46% gc time)

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

+@time data = Bit.run_one_sim!(model; multi_threading = true);
  5.223383 seconds (3.78 M allocations: 6.420 GiB, 17.02% gc time)
+  2.799622 seconds (3.65 M allocations: 6.150 GiB, 13.59% gc time)

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

diff --git a/dev/examples/scenario_analysis_via_overload-4ee7c877.svg b/dev/examples/scenario_analysis_via_overload-9dd7bccc.svg similarity index 86% rename from dev/examples/scenario_analysis_via_overload-4ee7c877.svg rename to dev/examples/scenario_analysis_via_overload-9dd7bccc.svg index f1139b4..113d8f9 100644 --- a/dev/examples/scenario_analysis_via_overload-4ee7c877.svg +++ b/dev/examples/scenario_analysis_via_overload-9dd7bccc.svg @@ -1,46 +1,46 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/scenario_analysis_via_overload.html b/dev/examples/scenario_analysis_via_overload.html index 2ae2336..a6f98ee 100644 --- a/dev/examples/scenario_analysis_via_overload.html +++ b/dev/examples/scenario_analysis_via_overload.html @@ -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-96777e2e.svg b/dev/examples/scenario_analysis_via_shock-d21c54e5.svg similarity index 86% rename from dev/examples/scenario_analysis_via_shock-96777e2e.svg rename to dev/examples/scenario_analysis_via_shock-d21c54e5.svg index 7898c03..2872440 100644 --- a/dev/examples/scenario_analysis_via_shock-96777e2e.svg +++ b/dev/examples/scenario_analysis_via_shock-d21c54e5.svg @@ -1,48 +1,48 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/scenario_analysis_via_shock.html b/dev/examples/scenario_analysis_via_shock.html index 3cb59fd..b9fd3f1 100644 --- a/dev/examples/scenario_analysis_via_shock.html +++ b/dev/examples/scenario_analysis_via_shock.html @@ -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 27cf60d..7e48b0c 100644 --- a/dev/index.html +++ b/dev/index.html @@ -10,7 +10,7 @@ data = BeforeIT.run_one_sim!(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.1.2 `~/work/BeforeIT.jl/BeforeIT.jl`
+  [ca9fcad7] BeforeIT v0.2.0 `~/work/BeforeIT.jl/BeforeIT.jl`
   [e30172f5] Documenter v1.8.0
   [5789e2e9] FileIO v1.16.6
   [98b081ad] Literate v2.20.1
@@ -34,7 +34,7 @@
   [7d9fca2a] Arpack v0.5.4
   [4c555306] ArrayLayouts v1.10.4
   [13072b0f] AxisAlgorithms v1.1.0
-  [ca9fcad7] BeforeIT v0.1.2 `~/work/BeforeIT.jl/BeforeIT.jl`
+  [ca9fcad7] BeforeIT v0.2.0 `~/work/BeforeIT.jl/BeforeIT.jl`
   [d1d4a3ce] BitFlags v0.1.9
   [e1450e63] BufferedStreams v1.2.2
   [d360d2e6] ChainRulesCore v1.25.0
@@ -73,7 +73,7 @@
   [a98d9a8b] Interpolations v0.15.1
   [92d709cd] IrrationalConstants v0.2.2
   [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
   [682c06a0] JSON v0.21.4
@@ -138,7 +138,7 @@
   [3bb67fe8] TranscodingStreams v0.11.3
   [5c2747f8] URIs v1.5.1
   [1cfade01] UnicodeFun v0.4.1
-  [1986cc42] Unitful v1.21.0
+  [1986cc42] Unitful v1.21.1
   [45397f5d] UnitfulLatexify v1.6.4
   [41fe7b60] Unzip v0.2.0
   [cc8bc4a8] Widgets v0.6.7
@@ -288,4 +288,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 c0cfaeb12843e928d73c50a67764b2ba7896c35c..184db07f8370443201a255215368aeea89460a3d 100644 GIT binary patch delta 14 VcmdnRyNh>%BeRj7!A6%dHUK0K1Y`gJ delta 14 VcmdnRyNh>%BeS8N(MFdtHUK0N1Z4mK