From 11440d56dae2b7ae7b46c16a30f01bd841cc0afb Mon Sep 17 00:00:00 2001 From: "Documenter.jl" Date: Sat, 30 Nov 2024 02:44:19 +0000 Subject: [PATCH] build based on 0efdc25 --- dev/.documenter-siteinfo.json | 2 +- dev/api.html | 8 +- dev/examples/basic_example-407f8365.svg | 46 ++ dev/examples/basic_example-4262beec.svg | 282 +++++++++++ dev/examples/basic_example-a2af98c8.svg | 279 ----------- dev/examples/basic_example-c5f9ca65.svg | 296 ----------- dev/examples/basic_example-e264b563.svg | 46 -- dev/examples/basic_example-ecde5600.svg | 275 ++++++++++ dev/examples/basic_example.html | 10 +- ...a.svg => change_expectations-27ebd9b8.svg} | 128 ++--- ...7.svg => change_expectations-28db5f2d.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-7d3afc74.svg} | 64 +-- .../scenario_analysis_via_overload.html | 2 +- ... scenario_analysis_via_shock-55c7bba0.svg} | 68 +-- dev/examples/scenario_analysis_via_shock.html | 2 +- dev/index.html | 4 +- 19 files changed, 989 insertions(+), 1007 deletions(-) create mode 100644 dev/examples/basic_example-407f8365.svg create mode 100644 dev/examples/basic_example-4262beec.svg delete mode 100644 dev/examples/basic_example-a2af98c8.svg delete mode 100644 dev/examples/basic_example-c5f9ca65.svg delete mode 100644 dev/examples/basic_example-e264b563.svg create mode 100644 dev/examples/basic_example-ecde5600.svg rename dev/examples/{change_expectations-205aa27a.svg => change_expectations-27ebd9b8.svg} (86%) rename dev/examples/{change_expectations-de261897.svg => change_expectations-28db5f2d.svg} (86%) rename dev/examples/{scenario_analysis_via_overload-81c688a6.svg => scenario_analysis_via_overload-7d3afc74.svg} (86%) rename dev/examples/{scenario_analysis_via_shock-1151533a.svg => scenario_analysis_via_shock-55c7bba0.svg} (86%) diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index d3d758e..8d32c85 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-11-29T16:12:09","documenter_version":"1.8.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-11-30T02:44:14","documenter_version":"1.8.0"}} \ No newline at end of file diff --git a/dev/api.html b/dev/api.html index 269c262..d45d62a 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-407f8365.svg b/dev/examples/basic_example-407f8365.svg new file mode 100644 index 0000000..1947081 --- /dev/null +++ b/dev/examples/basic_example-407f8365.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/basic_example-4262beec.svg b/dev/examples/basic_example-4262beec.svg new file mode 100644 index 0000000..4cba99b --- /dev/null +++ b/dev/examples/basic_example-4262beec.svg @@ -0,0 +1,282 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/basic_example-a2af98c8.svg b/dev/examples/basic_example-a2af98c8.svg deleted file mode 100644 index 7084289..0000000 --- a/dev/examples/basic_example-a2af98c8.svg +++ /dev/null @@ -1,279 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/examples/basic_example-c5f9ca65.svg b/dev/examples/basic_example-c5f9ca65.svg deleted file mode 100644 index c5d71ce..0000000 --- a/dev/examples/basic_example-c5f9ca65.svg +++ /dev/null @@ -1,296 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/examples/basic_example-e264b563.svg b/dev/examples/basic_example-e264b563.svg deleted file mode 100644 index f060692..0000000 --- a/dev/examples/basic_example-e264b563.svg +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dev/examples/basic_example-ecde5600.svg b/dev/examples/basic_example-ecde5600.svg new file mode 100644 index 0000000..d61d287 --- /dev/null +++ b/dev/examples/basic_example-ecde5600.svg @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/basic_example.html b/dev/examples/basic_example.html index 3b8367c..90ba045 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, 7, 8, 9, 10  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Workers{Vector{Float64}, Vector{Int64}}([2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714  …  2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714], [13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984  …  13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984], [25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977  …  25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1  …  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Firms{Vector{Float64}, Vector{Int64}}([1, 1, 1, 1, 1, 1, 1, 1, 1, 1  …  62, 62, 62, 62, 62, 62, 62, 62, 62, 62], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951], [1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485  …  3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877], [0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754  …  0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983  …  2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687], [0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721  …  0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782], [0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832  …  0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318], [-0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635  …  0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1  …  1, 1, 1, 1, 2, 3, 1, 19, 1, 1], [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, 23.976206776597902, 35.96431016489685, 11.988103388298951, 227.77396437768007, 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], [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, 23.976206776597902, 35.96431016489685, 11.988103388298951, 227.77396437768007, 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], [298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534  …  79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 158.41666666666669, 237.625, 79.20833333333334, 1504.9583333333335, 79.20833333333334, 79.20833333333334], [7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355  …  4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 8.114973344694128, 12.172460017041193, 4.057486672347064, 77.09224677459423, 4.057486672347064, 4.057486672347064], [94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608, 94.08074124608  …  24.993752380711378, 24.993752380711378, 24.993752380711378, 24.993752380711378, 49.987504761422755, 74.98125714213411, 24.993752380711378, 474.88129523351614, 24.993752380711378, 24.993752380711378], [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, 12.384292053067005, 12.384292053067005, 12.384292053067005, 12.384292053067005, 12.384292053067005  …  13.530111496595199, 13.530111496595199, 13.530111496595199, 13.530111496595199, 27.060222993190397, 40.59033448978559, 13.530111496595199, 257.0721184353088, 13.530111496595199, 13.530111496595199], [1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364, 1.2548454674764364  …  3.5771064837982873, 3.5771064837982873, 3.5771064837982873, 3.5771064837982873, 7.154212967596575, 10.731319451394864, 3.5771064837982873, 67.96502319216748, 3.5771064837982873, 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.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844, 1.3061857958470844  …  2.631055234104207, 2.631055234104207, 2.631055234104207, 2.631055234104207, 4.671824563850785, 6.712593893597363, 2.631055234104207, 39.36490316954261, 2.631055234104207, 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.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577, 11.889212387273577  …  23.948487711601803, 23.948487711601803, 23.948487711601803, 23.948487711601803, 42.52405335619368, 61.09961900078557, 23.948487711601803, 358.3086693142557, 23.948487711601803, 23.948487711601803], [6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781  …  12.98756660038165, 12.98756660038165, 12.98756660038165, 12.98756660038165, 23.06132987320929, 33.13509314603694, 12.98756660038165, 194.3153055112792, 12.98756660038165, 12.98756660038165]), Bank{Float64}(89460.0, 6476.29252774436, 0.0, 126431.00000000003, 0.028359903595743693, 3695.3696336675225, 0.0, 0.0, 0.0, 0.0, 33636.12938055408, 18241.296726948152), CentralBank{Float64}(0.0016459319014481277, 0.0089810924595537, 0.9259668580654086, -0.003424572940686137, 0.0049629315732038215, 0.30996974466133875, 1.328593153520194, 106179.90000000002), Government{Float64}(0.9905949533296431, 0.09373211872949586, 0.011235005057648862, 0.0, 14732.121510837034, 232610.9, 2.238468336136841, 0.5902859043576301, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, 0.0), RestOfTheWorld{Float64}(0.962809216044625, 0.39260026877953946, 0.020320381298662014, 0.9662360466537488, 0.35492769963078624, 0.02122821278168188, 2.3548476e6, 0.0, 0.0019383188997990075, 0.38456173629534834, 0.0026219533879005877, 0.0025327891562467505, 0.9635784504324201, 0.5360029623199525, 0.006618207536795881, 0.0, 33097.63671130043, 34095.03119997918, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0), Aggregates{Float64, Int64}([104531.39273728609, 105062.38754395355, 105399.12953350678, 106689.88106040593, 107938.33111423723, 108890.48532381697, 110110.17779727321, 110374.00540561741, 110808.89423399912, 111932.48072916963  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.007497362866886709, -0.007895434153021436, -0.0019938777296781562, -0.0035311300388783107, 0.001212170001002849, -0.001672412335241874, 0.001839696090252002, 0.004290005139261838, 0.00600429551344886, 0.0036060572293247772  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 1.0, [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0  …  1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1), MutableNamedTuple(tau_VAT = 0.1528683933530887, tau_EXPORT = 0.0029486201783457183, tau_SIW = 0.17114894621657745, psi_H = 0.07125099957246343, tau_FIRM = 0.07701197259426128, H_inact = 4130, theta_DIV = 0.7858074440019603, I_s = [48, 2, 1, 1, 5, 2, 4, 1, 1, 1  …  14, 10, 13, 41, 20, 16, 7, 7, 2, 19], psi = 0.9096681249468772, tau_INC = 0.21340742230566648, zeta_b = 0.5, tau_CF = 0.08761417854834112, H_act = 4743, zeta = 0.03, mu = 0.026713971694295565, tau_G = 0.009147800682711324, theta_UB = 0.3585824478060919, T_prime = 54, tau_SIF = 0.21215146534992413, T = 16, zeta_LTV = 0.6, I = 624, products = MutableNamedTuple(a_sg = [0.37790282216028437 0.0 … 0.0 0.0; 0.0006712800413285777 0.8149348034258406 … 2.4029219530949635e-5 0.00019143106686926454; … ; 0.00037430822580994426 0.000357977071568566 … 0.3197327950788158 0.0011366219595362582; 0.0 5.36965607352849e-5 … 0.0 0.05594572929254256], b_CF_g = [0.0033476048872100555, 0.0, 0.0, 0.0008050086095806136, 0.0, 0.003306696048303853, 0.0030629933432974495, 0.0, 0.0, 0.0  …  0.0017883064872300512, 0.0, 0.0, 0.0, 0.0, 0.002291709084994238, 0.0, 0.0, 0.0, 0.0], b_CFH_g = [0.0006092803753845975, 0.0, 0.0, 0.004372477702289994, 0.0, 0.0, 0.06710603871527036, 0.0, 0.0, 0.0  …  0.0041711096896454745, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], c_E_g = [0.005090338238241512, 0.0005933402816643566, 1.793599921320476e-5, 0.007268146142708006, 0.05434404438533037, 0.02138421321578873, 0.023894091259534518, 0.028037089231640524, 0.005923381894006229, 0.011927802553688313  …  0.0014618202435669027, 0.0009447261124040238, 0.0001280209174610526, 0.0010477673386531637, 0.0, 0.0013030104043795392, 5.5260305268213854e-5, 0.0, 1.307076865739618e-5, 8.641230390167474e-6], b_HH_g = [0.011287997598927976, 0.0020040637862256817, 0.0003326837475323491, 0.00034402684015257527, 0.06305103828047173, 0.03068200872784047, 0.0003505790613555631, 0.0020473225369636873, 0.0, 0.0191077565617325  …  0.005591228759882936, 0.0004356874830029748, 0.014434120586233577, 0.03514505772295519, 0.024907176866291014, 0.013342154173060372, 0.009686226103767459, 0.011051272187723254, 0.0021206651420422927, 0.01721782824162338], c_G_g = [0.0, 0.0, 0.0, 0.0, 8.57086390274792e-6, 0.0, 0.0, 0.0, 2.4536198623552867e-5, 0.0  …  0.008555738848801895, 0.3324338967920097, 0.22067672180252998, 0.2370889178393625, 0.0477595425645907, 0.012942508661614227, 0.004667927760053456, 0.021757222045203074, 0.0, 0.002000708524749294], c_I_g = [0.016810689305736877, 0.004087420487057966, 0.00036885674795364003, 0.05818437780960789, 0.04895082866561155, 0.04689140072807505, 0.010101572733480902, 0.016066325760592727, 0.00037371898454196314, 0.041008926225895866  …  0.0018123421762754539, 0.000401097116716159, 0.0003479865324437806, 0.0006664256271585853, 0.0028556289501379516, 0.001307065586721844, 6.418152296577174e-5, 0.0, 3.538212163497461e-5, 0.00020458795490837936]), J = 156, G = 62, H = 8873, L = 312, theta = 0.05, C = [4.3800671000101816e-5 0.00010629745355671226 9.959785873214212e-5; 0.00010629745355671226 0.0004129178961230129 0.0003596689472264872; 9.959785873214212e-5 0.0003596689472264872 0.0004506370179043619]))

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

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

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

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

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

data = Bit.init_data(model);

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

for t in 1:T
+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, 5, 5, 5, 5, 5  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Workers{Vector{Float64}, Vector{Int64}}([2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714  …  2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714], [13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984  …  13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984], [25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977  …  25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1  …  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Firms{Vector{Float64}, Vector{Int64}}([1, 1, 1, 1, 1, 1, 1, 1, 1, 1  …  62, 62, 62, 62, 62, 62, 62, 62, 62, 62], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951], [1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485  …  3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877], [0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754  …  0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983  …  2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687], [0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721  …  0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782], [0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832  …  0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318], [-0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635  …  0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037], [1, 1, 1, 1, 10, 1, 4, 2, 3, 1  …  1, 2, 1, 2, 1, 2, 6, 2, 26, 1], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 108.22026659306621, 10.822026659306621, 43.288106637226484, 21.644053318613242, 32.46607997791986, 10.822026659306621  …  11.988103388298951, 23.976206776597902, 11.988103388298951, 23.976206776597902, 11.988103388298951, 23.976206776597902, 71.9286203297937, 23.976206776597902, 311.6906880957727, 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, 108.22026659306621, 10.822026659306621, 43.288106637226484, 21.644053318613242, 32.46607997791986, 10.822026659306621  …  11.988103388298951, 23.976206776597902, 11.988103388298951, 23.976206776597902, 11.988103388298951, 23.976206776597902, 71.9286203297937, 23.976206776597902, 311.6906880957727, 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, 2981.5365853658536, 298.15365853658534, 1192.6146341463414, 596.3073170731707, 894.460975609756, 298.15365853658534  …  79.20833333333334, 158.41666666666669, 79.20833333333334, 158.41666666666669, 79.20833333333334, 158.41666666666669, 475.25, 158.41666666666669, 2059.4166666666665, 79.20833333333334], [7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 76.5511425407355, 7.65511425407355, 30.6204570162942, 15.3102285081471, 22.965342762220647, 7.65511425407355  …  4.057486672347064, 8.114973344694128, 4.057486672347064, 8.114973344694128, 4.057486672347064, 8.114973344694128, 24.344920034082385, 8.114973344694128, 105.49465348102368, 4.057486672347064], [94.08074124608002, 94.08074124608002, 94.08074124608002, 94.08074124608002, 940.8074124608002, 94.08074124608002, 376.3229649843201, 188.16148249216005, 282.24222373824006, 94.08074124608002  …  24.993752380711385, 49.98750476142277, 24.993752380711385, 49.98750476142277, 24.993752380711385, 49.98750476142277, 149.96251428426828, 49.98750476142277, 649.8375618984958, 24.993752380711385], [0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726  …  0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956], [12.384292053067009, 12.384292053067009, 12.384292053067009, 12.384292053067009, 123.84292053067009, 12.384292053067009, 49.537168212268035, 24.768584106134018, 37.15287615920102, 12.384292053067009  …  13.5301114965952, 27.0602229931904, 13.5301114965952, 27.0602229931904, 13.5301114965952, 27.0602229931904, 81.1806689795712, 27.0602229931904, 351.7828989114752, 13.5301114965952], [1.254845467476436, 1.254845467476436, 1.254845467476436, 1.254845467476436, 12.548454674764363, 1.254845467476436, 5.019381869905744, 2.509690934952872, 3.764536402429307, 1.254845467476436  …  3.5771064837982873, 7.154212967596575, 3.5771064837982873, 7.154212967596575, 3.5771064837982873, 7.154212967596575, 21.462638902789724, 7.154212967596575, 93.00476857875546, 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, 7.749284819252173, 1.3061857958470842, 3.4538854703154467, 2.0220856873365385, 2.7379855788259917, 1.3061857958470842  …  2.631055234104207, 4.671824563850785, 2.631055234104207, 4.671824563850785, 2.631055234104207, 4.671824563850785, 12.834901882837093, 4.671824563850785, 53.650288477768626, 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, 70.53582526964644, 11.889212387273576, 31.438083348064524, 18.405502707537227, 24.921793027800867, 11.889212387273576  …  23.948487711601803, 42.52405335619368, 23.948487711601803, 42.52405335619368, 23.948487711601803, 42.52405335619368, 116.8263159345612, 42.52405335619368, 488.33762882639866, 23.948487711601803], [6.44766966354178, 6.44766966354178, 6.44766966354178, 6.44766966354178, 38.25246668743173, 6.44766966354178, 17.049268671505093, 9.981535999529552, 13.515402335517319, 6.44766966354178  …  12.98756660038165, 23.06132987320929, 12.98756660038165, 23.06132987320929, 12.98756660038165, 23.06132987320929, 63.356382964519845, 23.06132987320929, 264.8316484210726, 12.98756660038165]), Bank{Float64}(89460.0, 6476.292527744362, 0.0, 126431.0, 0.028359903595743693, 3695.3696336675234, 0.0, 0.0, 0.0, 0.0, 33636.12938055409, 18241.29672694816), CentralBank{Float64}(0.0016459319014481277, 0.0089810924595537, 0.9259668580654086, -0.003424572940686137, 0.0049629315732038215, 0.30996974466133875, 1.328593153520194, 106179.90000000002), Government{Float64}(0.9905949533296431, 0.09373211872949586, 0.011235005057648862, 0.0, 14732.121510837034, 232610.9, 2.238468336136841, 0.5902859043576301, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, 0.0), RestOfTheWorld{Float64}(0.962809216044625, 0.39260026877953946, 0.020320381298662014, 0.9662360466537488, 0.35492769963078624, 0.02122821278168188, 2.3548476e6, 0.0, 0.0019383188997990075, 0.38456173629534834, 0.0026219533879005877, 0.0025327891562467505, 0.9635784504324201, 0.5360029623199525, 0.006618207536795881, 0.0, 33097.63671130043, 34095.03119997918, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0), Aggregates{Float64, Int64}([104531.39273728609, 105062.38754395355, 105399.12953350678, 106689.88106040593, 107938.33111423723, 108890.48532381697, 110110.17779727321, 110374.00540561741, 110808.89423399912, 111932.48072916963  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.007497362866886709, -0.007895434153021436, -0.0019938777296781562, -0.0035311300388783107, 0.001212170001002849, -0.001672412335241874, 0.001839696090252002, 0.004290005139261838, 0.00600429551344886, 0.0036060572293247772  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 1.0, [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0  …  1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1), MutableNamedTuple(tau_VAT = 0.1528683933530887, tau_EXPORT = 0.0029486201783457183, tau_SIW = 0.17114894621657745, psi_H = 0.07125099957246343, tau_FIRM = 0.07701197259426128, H_inact = 4130, theta_DIV = 0.7858074440019603, I_s = [48, 2, 1, 1, 5, 2, 4, 1, 1, 1  …  14, 10, 13, 41, 20, 16, 7, 7, 2, 19], psi = 0.9096681249468772, tau_INC = 0.21340742230566648, zeta_b = 0.5, tau_CF = 0.08761417854834112, H_act = 4743, zeta = 0.03, mu = 0.026713971694295565, tau_G = 0.009147800682711324, theta_UB = 0.3585824478060919, T_prime = 54, tau_SIF = 0.21215146534992413, T = 16, zeta_LTV = 0.6, I = 624, products = MutableNamedTuple(a_sg = [0.37790282216028437 0.0 … 0.0 0.0; 0.0006712800413285777 0.8149348034258406 … 2.4029219530949635e-5 0.00019143106686926454; … ; 0.00037430822580994426 0.000357977071568566 … 0.3197327950788158 0.0011366219595362582; 0.0 5.36965607352849e-5 … 0.0 0.05594572929254256], b_CF_g = [0.0033476048872100555, 0.0, 0.0, 0.0008050086095806136, 0.0, 0.003306696048303853, 0.0030629933432974495, 0.0, 0.0, 0.0  …  0.0017883064872300512, 0.0, 0.0, 0.0, 0.0, 0.002291709084994238, 0.0, 0.0, 0.0, 0.0], b_CFH_g = [0.0006092803753845975, 0.0, 0.0, 0.004372477702289994, 0.0, 0.0, 0.06710603871527036, 0.0, 0.0, 0.0  …  0.0041711096896454745, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], c_E_g = [0.005090338238241512, 0.0005933402816643566, 1.793599921320476e-5, 0.007268146142708006, 0.05434404438533037, 0.02138421321578873, 0.023894091259534518, 0.028037089231640524, 0.005923381894006229, 0.011927802553688313  …  0.0014618202435669027, 0.0009447261124040238, 0.0001280209174610526, 0.0010477673386531637, 0.0, 0.0013030104043795392, 5.5260305268213854e-5, 0.0, 1.307076865739618e-5, 8.641230390167474e-6], b_HH_g = [0.011287997598927976, 0.0020040637862256817, 0.0003326837475323491, 0.00034402684015257527, 0.06305103828047173, 0.03068200872784047, 0.0003505790613555631, 0.0020473225369636873, 0.0, 0.0191077565617325  …  0.005591228759882936, 0.0004356874830029748, 0.014434120586233577, 0.03514505772295519, 0.024907176866291014, 0.013342154173060372, 0.009686226103767459, 0.011051272187723254, 0.0021206651420422927, 0.01721782824162338], c_G_g = [0.0, 0.0, 0.0, 0.0, 8.57086390274792e-6, 0.0, 0.0, 0.0, 2.4536198623552867e-5, 0.0  …  0.008555738848801895, 0.3324338967920097, 0.22067672180252998, 0.2370889178393625, 0.0477595425645907, 0.012942508661614227, 0.004667927760053456, 0.021757222045203074, 0.0, 0.002000708524749294], c_I_g = [0.016810689305736877, 0.004087420487057966, 0.00036885674795364003, 0.05818437780960789, 0.04895082866561155, 0.04689140072807505, 0.010101572733480902, 0.016066325760592727, 0.00037371898454196314, 0.041008926225895866  …  0.0018123421762754539, 0.000401097116716159, 0.0003479865324437806, 0.0006664256271585853, 0.0028556289501379516, 0.001307065586721844, 6.418152296577174e-5, 0.0, 3.538212163497461e-5, 0.00020458795490837936]), J = 156, G = 62, H = 8873, L = 312, theta = 0.05, C = [4.3800671000101816e-5 0.00010629745355671226 9.959785873214212e-5; 0.00010629745355671226 0.0004129178961230129 0.0003596689472264872; 9.959785873214212e-5 0.0003596689472264872 0.0004506370179043619]))

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

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

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

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

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

data = Bit.init_data(model);

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

for t in 1:T
     Bit.run_one_epoch!(model; multi_threading = true)
     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, 73451.13785830782, 73964.27232437328, 74083.4998972628, 74390.2205417246, 74795.08122004905, 74468.57031599582, 74515.51084647198, 75352.20825660408, 75294.76326375589, 75219.00316441323, 76305.79204487459, 76538.3745096093, 76979.34609898577, 76293.4471716974, 76846.6790354802, 77356.23537200555], [72421.99999999999, 72742.3525818122, 73079.6749186094, 73001.18947704494, 73219.99772603423, 73533.92120227829, 73496.71536794957, 73222.66777454577, 73850.1241638392, 73970.22316542936, 74013.59246773038, 74549.36050042644, 74188.69474707247, 74442.93343798055, 74031.27442557692, 74099.76934393162, 74588.18348245553], [64900.92049553802, 65830.3449535425, 66289.95896763401, 66387.8049707937, 66666.62769735175, 67029.45492010428, 66734.56478986233, 66762.46754076991, 67533.13623363514, 67478.39655863502, 67405.33352310037, 68391.64630109527, 68590.40333845242, 68991.88889423055, 68363.03963687285, 68865.69650402649, 69342.88549237853], [64900.92049553802, 65195.09843987096, 65497.144763043514, 65417.92351007813, 65617.9037090579, 65899.23529630977, 65863.64277911963, 65604.13966185866, 66186.91888953788, 66291.35727278721, 66325.13960103226, 66817.38513794086, 66484.72127163029, 66718.65705522566, 66336.01096217617, 66404.06964498141, 66861.57672274968], [40512.94792630534, 41049.54070378322, 41333.63373573599, 41457.98210145559, 41631.0523777072, 41858.21353425417, 41711.48570640836, 41838.45916722694, 42168.39947726728, 42135.787536262724, 42130.72917244116, 42657.07039868862, 42891.04281537437, 43076.29427672351, 42783.62435971427, 43043.70767200803, 43172.81861537415], [40512.94792630534, 40653.422809546064, 40839.292021494824, 40852.30869115718, 40976.159745600184, 41152.419724506195, 41167.128354009554, 41112.562485315124, 41327.807230037455, 41394.56015540416, 41455.56957889406, 41675.1760754118, 41574.314887154105, 41656.96216064938, 41515.04950047385, 41505.09625446283, 41627.95799010218], [14866.888022051655, 15080.19093489303, 15198.297613446102, 15147.009193941674, 15080.305930173949, 15195.325084532125, 15056.77313276247, 15184.090373349485, 15446.096587207252, 15350.084739062599, 15345.126405980263, 15435.688593726605, 15470.134436953083, 15600.375631253237, 15380.547994260682, 15395.882878305436, 15446.636691401804], [14866.888022051655, 14934.670829785657, 15016.529116056943, 14925.721513034645, 14843.07961280901, 14939.10855075688, 14860.274134479101, 14920.646617550325, 15138.191397488847, 15080.05529918798, 15099.21541628946, 15080.384892267653, 14995.211079315424, 15086.354763673116, 14924.500223674142, 14845.552006247342, 14893.906951191364], [15944.236265986645, 16314.169364082845, 16692.94750899293, 16392.308279373992, 16744.577902011013, 16795.57939182988, 16788.451643618442, 16332.381372262771, 16629.966182493645, 16688.819325346583, 16576.428678987897, 16979.005795594003, 16846.277664956957, 16856.680748104973, 16504.046692922886, 16547.297972149903, 16959.61314150731], [15944.236265986645, 16156.741672958067, 16493.30330785416, 16152.82761111728, 16481.171140243896, 16512.38011109175, 16569.353308164253, 16049.014783678374, 16298.461529293922, 16395.239673429485, 16310.785641964729, 16588.177516723463, 16329.107579270656, 16301.265553787234, 16014.686125095766, 15955.809390741533, 16352.744296654317], [15944.236265986645, 16168.920600380949, 16285.90762169543, 16314.095301071296, 16383.716755226982, 16478.705838952137, 16406.267161897405, 16431.177195729975, 16605.19691437515, 16600.444663606515, 16585.759810437135, 16816.557889601765, 16881.035925938948, 16979.870669409407, 16831.219609018222, 16942.495756605942, 17037.25902081751], [15944.236265986645, 16012.894523828018, 16091.131533458072, 16075.757272154395, 16125.986652894233, 16200.849533300865, 16192.156539757047, 16146.09650098897, 16274.186016096362, 16308.41964547903, 16319.967238785906, 16429.468889477543, 16362.79878359076, 16420.39645807036, 16332.158055307033, 16336.880701056774, 16427.61175969456], [3173.2320350842083, 3215.027073073276, 3237.051279447528, 3247.253128890838, 3260.809094897596, 3278.6018030558075, 3266.256671631769, 3276.3153559058787, 3301.9192045878335, 3299.5992874476483, 3299.385732752541, 3339.219017207382, 3357.6909053895506, 3372.380620429744, 3351.172496190254, 3370.481258258219, 3374.4156880405712], [3173.2320350842083, 3184.0028586175986, 3198.3368153672686, 3199.8129309606925, 3209.513734127437, 3223.3195379555136, 3223.630263008036, 3219.4713302632736, 3236.0981699087206, 3241.5547253135524, 3246.5119284287985, 3262.3557875826214, 3254.6119150164636, 3261.2631670236274, 3251.80706744813, 3250.0023026325894, 3253.668373018207], [34195.564496956766, 34030.61282691804, 34144.83423736825, 34611.92256741923, 34521.065860558934, 35135.97990816773, 34253.29689628979, 34494.03266924015, 33571.17145978412, 33893.27722043711, 34637.010215512826, 34846.75765866839, 34533.7418545286, 35225.78180570903, 36221.24770678627, 37430.90861828014, 39249.628760539286], [34195.564496956766, 33702.225847149566, 33736.469078928596, 34106.265511388585, 33978.01949508519, 34543.533288382576, 33806.27292450809, 33895.561684439315, 32901.95785885695, 33297.04711363783, 34081.94007554266, 34044.643654826694, 33473.57778806978, 34065.11828369206, 35147.25351160502, 36092.928539797496, 37845.152333625934], [33097.63671130043, 33023.375971368885, 33405.440771169786, 33525.72224492735, 33586.781528726635, 34190.01669873444, 33341.43706308323, 33333.45273560668, 32463.425450148432, 32773.20555735244, 33470.29130850887, 33612.73040180296, 33202.82226220418, 33779.786362805135, 34596.01958198624, 35571.11810526359, 37472.46183681677], [33097.63671130043, 32704.7085776269, 33005.91860572504, 33035.93384965258, 33058.43226770413, 33613.520472458586, 32906.31335321158, 32755.117796436753, 31816.29385183797, 32196.679076229735, 32933.918244960354, 32839.021638803155, 32183.516586737907, 32666.76732382158, 33570.21493527143, 34299.61684731783, 36131.57808911795], [29576.147776884885, 29999.697934687094, 30209.567725461995, 30251.331075756516, 30392.07258365177, 30575.384405795576, 30436.619051863167, 30468.6341345534, 30812.42178028842, 30772.94287896646, 30754.094085476576, 31195.743092925575, 31307.92856044159, 31501.009323101374, 31205.73008235851, 31444.999353052604, 31679.296007362915], [34346.71094688275, 34838.57875033314, 35083.21213610907, 35136.786011249715, 35269.19778581557, 35443.41036621143, 35292.70130081504, 35290.0671941197, 35710.4550360519, 35696.34650167421, 35643.65289154732, 36170.220927659524, 36254.92435561585, 36460.06092507909, 36136.31683924472, 36388.61457977987, 36622.85818414065], [28335.32931213966, 28741.110122138023, 28942.927628257446, 28987.12497213079, 29096.36195971108, 29240.083751397862, 29115.751875634403, 29113.578791848555, 29460.39010540898, 29448.750855050435, 29405.27971168826, 29839.68749913436, 29909.566083104775, 30078.79952902898, 29811.717324297322, 30019.857765279514, 30213.103915663174], [978.0617717704338, 992.0682685224368, 997.1791060630177, 999.6878837875684, 1005.3573278843259, 1010.6601480971933, 1005.2444371842221, 1003.7662120968955, 1010.2594172946353, 1009.1071779945805, 1007.5865460764021, 1025.6822805102404, 1027.5504223950343, 1030.8186460501997, 1020.9927152696666, 1032.0825711940313, 1040.7313008748451], [0.0019383188997990075, 0.0035508963438974916, 0.0011252399020564852, 0.003910334244550562, 0.005223423097445501, 0.010982923961851965, 0.003609286984528559, 0.004724404988650788, 0.007570437989044887, 0.011334791634156849, 0.005787151813773539, 0.009389277311609101, 0.0051931259511315275, 0.005605508534049175, 0.00028190383792470186, 0.001864337375006464, 0.0015546274664497428], [2.3548476e6, 2.329903887312713e6, 2.3317077305902406e6, 2.3456368665063195e6, 2.333673652815522e6, 2.3530283923457777e6, 2.334790584822643e6, 2.314237920479227e6, 2.29293656950405e6, 2.3093979976783637e6, 2.322089315297041e6, 2.3106913280595685e6, 2.312714747256807e6, 2.3337945682270587e6, 2.370705615805713e6, 2.382723643957805e6, 2.4104712067741957e6], [0.0016459319014481277, 0.0005636874100556154, 0.0006239294957425968, 0.0012550542093510443, 0.0007803507471390767, 0.0017903810649129031, 0.0009782933381619235, 0.0001484415360999933, 0.0, 0.0009662558164824094, 0.0015680624813905197, 0.0011846391494864526, 0.001302240144853091, 0.0022309929272014356, 0.0036279448086754132, 0.003900764223817139, 0.004793086163537195], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 525.5027393491878 261.9414821514038 … 138.95912002536556 512.1352004780586; … ; 553.7526930001018 274.4383390092702 … 145.243677809759 535.3121885100611; 554.4503519929086 278.17985780185927 … 146.15101139130937 537.8936774701987], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 520.4317681529692 259.41381176717437 … 137.61819895619456 507.1932227189897; … ; 533.9586217635185 264.6284507666175 … 140.0518950129047 516.1772791414537; 534.6103567150238 268.22569861455986 … 140.92126383061367 518.6461326131082]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72692.40102484392, 72685.10832329006, 74006.91828603606, 74545.23280214405, 74356.49239726417, 74684.59327771475, 74021.89853414496, 74313.20284610413, 75207.58887215571, 75044.06400252886, 75493.08548213806, 76421.67897048278, 78307.17363135761, 78972.73029477053, 78546.18790192304, 80002.11978704722], [72421.99999999999, 72308.51255002983, 72154.65299930952, 73174.72771784052, 73697.28198933191, 73317.19171903924, 72819.65025485349, 72081.28155360385, 72379.35283886259, 72966.10053851324, 73004.20409272762, 73294.12523461034, 74007.95991397533, 75155.32974775883, 75287.55623292382, 74789.81938617397, 75842.27961237883], [64900.92049553802, 65147.58503998612, 65148.02180190761, 66343.02447104134, 66836.52363340827, 66657.51728926098, 66928.97553631243, 66328.39424947301, 66596.87625177304, 67399.18830818798, 67242.48167491124, 67647.74802039954, 68511.67604328514, 70227.36501715178, 70835.24084247104, 70438.32228618862, 71773.28990252268], [64900.92049553802, 64803.54072852815, 64672.57207349952, 65597.012604732, 66076.25926223231, 65725.8272552907, 65257.69742558403, 64589.47629787283, 64863.82795497893, 65390.42168562569, 65414.68564030984, 65677.30651861688, 66347.78825271709, 67400.73138161047, 67529.7936172961, 67069.70181961157, 68041.32110470372], [40512.94792630534, 40634.63166944674, 40578.27007090457, 41258.930164622994, 41514.21915114624, 41512.43880850532, 41863.4121816453, 41554.3804311779, 41673.86352772623, 42200.76063365528, 42191.123143380726, 42381.44001677728, 42698.50295261091, 43616.88597754155, 43948.35555772539, 43756.128680953734, 44329.33622368658], [40512.94792630534, 40420.04023270373, 40282.130188973155, 40794.98309951042, 41041.99558232464, 40932.20829443059, 40818.04425454142, 40464.95773495501, 40589.38596252467, 40943.00840346504, 41044.27719635459, 41146.954749223645, 41349.90407792678, 41861.31737616261, 41897.554738789, 41663.54916132845, 42024.36037766496], [14866.888022051655, 14828.01624942358, 14884.723652561377, 15039.440408677972, 15050.75259913549, 14912.31572665541, 15129.399645402918, 14938.618501446774, 14813.366187118214, 14835.28882269226, 15006.456990278772, 15141.497100954697, 15139.275295421534, 15351.010515926711, 15618.432202448008, 16007.758889610654, 15876.540994027377], [14866.888022051655, 14749.709514988372, 14776.095061511316, 14870.325402285378, 14879.550532683561, 14703.882281922475, 14751.604613382679, 14546.975794304386, 14427.87845127733, 14393.137607356659, 14598.549044333904, 14700.456044010067, 14661.11310670034, 14733.13623496416, 14889.615546061135, 15242.208796005598, 15051.014455011633], [15944.236265986645, 16100.562832436115, 15953.692266668337, 16350.314561378615, 16705.395902609875, 16763.33020327745, 16997.032375928717, 16604.25000800129, 16554.586566132355, 16739.301493469124, 16482.332406280497, 16206.923674477592, 16762.65030982535, 17678.935856710938, 17607.305152500598, 16829.898946089714, 17638.277191540703], [15944.236265986645, 16015.535781159026, 15837.262351446067, 16166.459080294813, 16515.37229544564, 16529.024631727687, 16572.600835932728, 16168.939780179828, 16123.787110252444, 16240.403050192086, 16034.306975588766, 15734.848905413844, 16233.215088884617, 16967.363171035602, 16785.679966125124, 16025.031081550305, 16721.14631715121], [15944.236265986645, 16000.552746546335, 15999.862833665866, 16280.64917179917, 16405.86029449968, 16384.16475506564, 16471.42446404403, 16326.402362478133, 16410.924595331264, 16618.372419752886, 16585.882982752468, 16669.573545006348, 16870.746873557466, 17289.28055132206, 17448.79611794761, 17360.651557526264, 17661.425200303638], [15944.236265986645, 15916.053848402133, 15883.095966024592, 16097.577061803917, 16219.243900014448, 16155.15888088972, 16060.117837300028, 15898.376409575083, 15983.8636501417, 16123.078148767478, 16135.042823509055, 16184.022724893433, 16337.897507058327, 16593.39139289013, 16634.567578244005, 16530.401144800795, 16743.09070759663], [3173.2320350842083, 3181.010622549179, 3179.280185234129, 3228.735205633747, 3249.4616087274553, 3253.0365817895677, 3277.3526023948752, 3254.4988682607773, 3267.372402985023, 3303.4995350469576, 3299.321195575222, 3316.009996258966, 3346.633524674521, 3411.233624864548, 3440.3827044395384, 3421.9316218820263, 3469.7153917750697], [3173.2320350842083, 3164.211709608599, 3156.0778245362253, 3192.4288298575766, 3212.499035686271, 3207.568015202511, 3195.5140919197006, 3169.1763367941585, 3182.345679560673, 3205.0419753904584, 3209.6385121296034, 3219.4213601526476, 3240.9327180123923, 3273.932336394208, 3279.841096495827, 3258.282225891804, 3289.3019037351214], [34195.564496956766, 34544.18867625048, 34988.92121062512, 35252.93765212267, 34797.51826290772, 33865.09049271194, 33978.749830055574, 32053.24298741162, 31923.945922423332, 32970.150629789394, 33710.00950463458, 34491.78789759956, 34212.55867812621, 34469.036698190306, 33302.95467039363, 33423.885627579424, 33976.77127423888], [34195.564496956766, 34361.76086099527, 34733.57235080147, 34856.52657468948, 34401.69705763783, 33391.749021341995, 33130.26917775462, 31212.90966910198, 31093.190138944265, 31987.507666447782, 32793.69856303624, 33487.112171755514, 33131.981727112434, 33081.66671083542, 31748.909568038514, 31825.43209343448, 32210.093859586428], [33097.63671130043, 33414.99840271261, 33720.49887746899, 33894.70450076564, 33522.65311365577, 32696.682833885585, 33284.000755317786, 31128.59339389293, 30652.55935729597, 31537.912707449672, 32345.858042045493, 32728.56320767065, 32391.308265500815, 32808.69541701186, 31504.31728829642, 31471.48424231038, 31818.805896446727], [33097.63671130043, 33238.53383981626, 33474.40695342214, 33513.56643893892, 33141.33347875999, 32239.672510383312, 32452.86862675791, 30312.501424937564, 29854.88882413602, 30597.95618894785, 31466.6276865857, 31775.246635792173, 31368.25408664863, 31488.15374523896, 30034.203586089596, 29966.401746144882, 30164.335397035753], [29576.147776884885, 29688.55584386165, 29702.68776875073, 30238.75630150494, 30481.91062220414, 30418.177528804095, 30566.243122168944, 30271.53425994657, 30416.1786528402, 30823.36667542793, 30777.182654064996, 30928.241496814462, 31316.71946258228, 32135.94860386144, 32438.882047148287, 32249.29077023902, 32783.13868912017], [34346.71094688275, 34477.25017104658, 34463.18671670008, 35103.16606347045, 35348.444990139564, 35238.72208308563, 35359.9089276732, 35062.595916732535, 35187.04494684616, 35574.3023689966, 35469.71120410223, 35715.62758221326, 36177.85043320756, 37053.979216286694, 37353.850886892105, 37158.99297215128, 37938.58628620123], [28335.32931213966, 28443.0214841952, 28431.41942393416, 28959.38920746745, 29161.73927153169, 29071.22013247157, 29171.1967839477, 28925.91967177192, 29028.587559136722, 29348.06695855208, 29261.781401108008, 29464.65734948633, 29845.981684115468, 30568.769890147305, 30816.157843862187, 30655.40407644041, 31298.55250824542], [978.0617717704338, 981.7790250779974, 982.1473164568044, 1001.1021060657968, 1006.1680210643452, 1000.6176773713563, 1002.8234864702328, 994.2640727938125, 993.652652086598, 1001.5192637636247, 995.5878167440649, 1003.8789413716606, 1017.1061474954678, 1037.437197003646, 1042.5079084307922, 1030.0385437984194, 1051.5649272011694], [0.0019383188997990075, 0.0044953529656828195, 0.005389697432810259, 0.005990138233326059, 0.005567843525878136, 0.0015690854856247327, 0.00702934024094648, 0.006714207695281749, 0.005190524523474682, 0.007661335318075002, 0.006751672718396717, 0.007889867631960534, 0.005494175956668457, 0.005148806418617147, 0.002276691484775606, 0.005377630761944641, 0.009247150267601922], [2.3548476e6, 2.3572281215204764e6, 2.3502419953659847e6, 2.3518365865046205e6, 2.333250740604471e6, 2.3206304310505353e6, 2.308134648610907e6, 2.2700929900943935e6, 2.2794616132531706e6, 2.307588470194418e6, 2.3125893691341854e6, 2.3295229098408017e6, 2.3298522917677006e6, 2.316192685642138e6, 2.2808166889686217e6, 2.2831015749014695e6, 2.2773176323393574e6], [0.0016459319014481277, 0.0017266702072508472, 0.0014310126533157565, 0.0015292673851954929, 0.0007665135431486889, 0.000213755000814146, 0.0, 0.0, 0.000525041553424677, 0.0018756718139731673, 0.002104908630697291, 0.0028503563391764483, 0.002779323601894141, 0.0021150457044350063, 0.0005084233078098, 0.0006927245981379112, 0.0006044617891324748], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 520.052483769561 259.2247541160766 … 137.5179044758594 506.82358642751115; … ; 596.9598792704852 288.8603905126147 … 148.82929117099775 546.8153752947052; 605.1563144617694 294.49087744046057 … 150.50130798206402 555.0361139104581], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 517.3060872824052 257.8557885283576 … 136.79167260203766 504.1470517299299; … ; 568.4110552529908 275.04602083596706 … 141.71172533477827 520.6646464744933; 573.6902288686243 279.1783458936593 … 142.67574799752367 526.1761095607942]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 73117.46596993241, 73709.49640690302, 74378.40011748855, 74515.05431389518, 74026.23797908593, 73800.97516652544, 73140.40987482463, 73667.29153001649, 74333.88833256655, 73897.32542440062, 75082.60182009624, 75117.70292736322, 75603.64123292931, 76455.63455254679, 76739.17878848471, 77194.130735998], [72421.99999999999, 72855.08673682342, 73368.9842256772, 73651.6707841363, 73263.0776940322, 72493.46301418002, 72262.74015579793, 71224.67156131456, 70995.05903573592, 70923.16762302774, 70760.65760920712, 71381.7455983398, 70892.32875689736, 71114.16486611642, 71345.0146874177, 71518.893055122, 71982.61100954708], [64900.92049553802, 65529.4534303766, 66069.25412031583, 66669.52417267181, 66768.49489254534, 66319.19521916461, 66116.66267389934, 65521.227609979396, 65983.20189865661, 66567.21039941623, 66166.3109754452, 67238.18651017219, 67248.61051449046, 67695.4554256124, 68443.00833298232, 68686.86410011398, 69102.90234932014], [64900.92049553802, 65294.303490358354, 65764.03719537202, 66018.11598453674, 65646.67333153868, 64946.00099911845, 64738.59192228705, 63805.05557463705, 63589.704696191606, 63512.85432874036, 63357.79609490213, 63923.98515255238, 63465.87314641075, 63675.58095504853, 63867.986491062584, 64014.34789141755, 64437.63654070402], [40512.94792630534, 40855.309554354724, 41124.25435247962, 41538.08374835378, 41740.27229056794, 41482.27670029785, 41308.54158983017, 40961.37115449601, 41336.126179584135, 41809.10935917396, 41610.734309685664, 42246.04369977447, 42391.55928558772, 42618.05106098024, 43235.72840918772, 43435.6608853117, 43646.270318610455], [40512.94792630534, 40708.70183693593, 40934.27463163679, 41132.22742631022, 41038.9664202888, 40623.35158199744, 40447.54693803607, 39888.485888623436, 39836.68542004772, 39890.74885984519, 39844.51272688581, 40163.7166375674, 40007.032167868216, 40087.316695311136, 40345.66839223162, 40480.891699368854, 40699.62921283303], [14866.888022051655, 15019.187876997657, 14914.782357180266, 15159.717976273085, 15418.92395432498, 15365.851547593938, 15500.39383316865, 15345.204088151559, 15416.496235762907, 15672.645785998126, 15430.707536361615, 15544.6217825516, 15773.946598124929, 15575.87257685931, 15897.724275841154, 15999.13009621367, 15923.51710488372], [14866.888022051655, 14965.292095123783, 14845.881261385017, 15011.596858834397, 15159.860433912852, 15047.688782477213, 15177.318854546158, 14943.273124808351, 14857.272985748748, 14953.525358496516, 14775.731142872435, 14778.4201746658, 14886.661392046748, 14650.950037601491, 14835.05275437702, 14910.76777717344, 14848.490769133012], [15944.236265986645, 16109.255823615602, 16750.956070339813, 16754.148876972155, 16540.896425051673, 16224.132059261749, 16149.927827027846, 16131.552522614817, 16376.818956644516, 16785.141591598065, 16145.160308496961, 16830.85929483208, 16044.716909730108, 17555.901964975783, 17643.41693048688, 16733.969921126853, 17354.149761095807], [15944.236265986645, 16051.448374562402, 16673.572492006264, 16590.44904711548, 16262.981904470322, 15888.19788069669, 15813.314600058957, 15709.02504051752, 15782.760632251528, 16014.975637371703, 15459.858040519599, 16001.258444184487, 15142.200861437648, 16513.401819684997, 16464.05588559579, 15595.619135766518, 16182.538746716453], [15944.236265986645, 16092.948753360344, 16217.797906487536, 16367.85446391533, 16406.558485880607, 16285.926409888307, 16206.731167202332, 16059.555349550976, 16178.581583262378, 16321.523771629856, 16235.414457649198, 16504.25085623727, 16534.592238924353, 16620.075679385212, 16825.40338911159, 16884.384000464954, 16988.539174663805], [15944.236265986645, 16035.199821605725, 16142.877333033432, 16207.929002434892, 16130.901065700658, 15948.71272778236, 15868.933987224887, 15638.913661409972, 15591.714189060118, 15572.630361264006, 15546.281235260323, 15690.748686812101, 15604.520681317033, 15633.146534698179, 15700.721849255857, 15735.801095281839, 15841.611212807005], [3173.2320350842083, 3198.2637378281306, 3221.185268566561, 3253.527199898031, 3269.363893896404, 3249.6608976057664, 3229.9470667825144, 3211.537235489543, 3226.835218187469, 3273.540176769978, 3258.737153388793, 3308.9791310063583, 3320.3768382121298, 3338.117116176252, 3386.497538954747, 3402.157523492143, 3418.653795297648], [3173.2320350842083, 3186.786890597722, 3206.304515401773, 3221.7379485926767, 3214.433152790857, 3182.3739598352527, 3162.6252238162037, 3127.4186895609455, 3109.7838953461032, 3123.3377384895452, 3120.415828651983, 3145.878016929499, 3133.6054916234157, 3139.8938869993035, 3160.1296368755566, 3170.721187282567, 3187.8541020796247], [34195.564496956766, 34903.23318982992, 35495.59255560637, 34780.96726187731, 35451.33780719727, 36682.683551638955, 37063.25805000273, 36151.97947800367, 36940.14271808252, 36556.91410328324, 36887.62513495971, 36887.54845813042, 38091.51726661144, 37041.79241337844, 36754.11605032534, 36918.08507264963, 37228.27232380067], [34195.564496956766, 34777.98427104034, 35331.61529033937, 34441.13272508112, 34855.696476916484, 35923.13801037551, 36290.74791696589, 35205.06473807023, 35600.16336409212, 34879.544241356125, 35321.88204648864, 35069.34410842347, 35948.86770599013, 34842.186033152706, 34297.314577008736, 34406.682737487514, 34714.922231671204], [33097.63671130043, 33769.52047486539, 34576.088928702935, 33854.51774598764, 34636.376163246765, 35728.705879706155, 36221.1461335042, 35449.697368441055, 36402.29256005714, 36489.92250748698, 36176.9018651037, 36426.471415192915, 37184.037132691155, 37187.97678326424, 37075.351113294426, 36347.66718681641, 36958.078772392706], [33097.63671130043, 33648.33984083882, 34416.35944969015, 33523.73527320472, 34054.42754155628, 34988.91324136654, 35466.18815380932, 34521.17723070471, 35081.82336640355, 34815.62647404202, 34641.32634755977, 34630.99376650193, 35092.4333704456, 34979.68971963364, 34597.07692179565, 33875.06829467365, 34462.96995080671], [29576.147776884885, 29862.577966495148, 30101.09720244413, 30406.943233798953, 30434.277112522348, 30187.863592116017, 30044.99488857324, 29749.805898279734, 29984.74678509972, 30242.460207138793, 30038.54654836195, 30574.99444094881, 30624.984101513477, 30779.859231833296, 31146.47747191297, 31254.232766716203, 31458.30802810241], [34346.71094688275, 34679.34165332977, 34970.77264773023, 35253.27133061107, 35325.78839765135, 35125.16601359937, 35059.9812125212, 34759.3816978599, 34978.69472269971, 35291.93780882866, 35103.72513923117, 35628.56768850784, 35603.482789139096, 35885.116180442776, 36238.58925572678, 36376.4555662558, 36593.100253206714], [28335.32931213966, 28609.742795895996, 28850.167365540296, 29083.222962102463, 29143.048049241515, 28977.53871333187, 28923.762594635875, 28675.77418456163, 28856.70291426992, 29115.122010466388, 28959.850433458345, 29392.834729793925, 29372.14020432758, 29604.481953155464, 29896.089962045637, 30009.826829483423, 30188.554235376036], [978.0617717704338, 987.5338105515549, 997.3842701413823, 1009.3096082616595, 1008.4293823714985, 1006.1656134493664, 1011.6865728048997, 1012.040013839892, 1019.7603908569677, 1032.8123834488442, 1024.0392878521716, 1034.6243807154879, 1020.1436238378596, 1030.4800133362264, 1057.941605342616, 1056.1757671420169, 1051.4940680110403], [0.0019383188997990075, 0.001489774976690228, 0.004980995218019979, 0.006407514237361633, 0.004319858571608215, 0.005598653603492432, 0.009449820074894477, 0.006686497483036735, 0.00467541221890122, 0.0013563867398924678, 0.0006282309528560237, 0.004775362546244999, 0.0016364183625763307, 0.00020715666335413552, -0.00031717487538884814, 0.0046778101879254574, 0.007404903428887444], [2.3548476e6, 2.367876988473374e6, 2.385659093123145e6, 2.362865225751031e6, 2.364476374477593e6, 2.4016027648648876e6, 2.4068422612289498e6, 2.3929283506192076e6, 2.4046708184637353e6, 2.398747624074603e6, 2.417924955202103e6, 2.4153328051974224e6, 2.4273312058951156e6, 2.423884722927458e6, 2.4107341700690533e6, 2.4132520497531076e6, 2.4205105295033418e6], [0.0016459319014481277, 0.0021024919638298932, 0.0027997979022994293, 0.0017997764034202025, 0.001832733488727258, 0.0033699504209476795, 0.0035519057535687917, 0.002873772072350027, 0.003250976514157133, 0.002799142371605963, 0.00339269043258982, 0.0031456567732038344, 0.003438939002628722, 0.0030494395519065423, 0.0022827591286955135, 0.0023238373959295873, 0.00261756730626698], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 523.100817867805 260.74422317303225 … 138.32397795962413 509.79437816203387; … ; 522.7350551525607 276.4217988120182 … 146.3234828051019 541.8278705974305; 541.859574655894 278.41438098279383 … 146.82419819928296 544.6362947935987], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 521.223690568463 259.8085524901632 … 137.82760764951868 507.96500051319146; … ; 487.175300750407 257.61783458526816 … 136.36963130704498 504.9693017741414; 505.27762424902755 259.61810690359306 … 136.91182276425423 507.8668828318889]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72056.53507593625, 72583.82152484039, 72890.14918940644, 73505.636347135, 74523.29481237165, 74196.7734281232, 74485.98701734324, 74652.6328371407, 74722.5674433994, 75525.00703372559, 76163.33396530939, 77082.80392634614, 78692.54052018304, 79078.57563299693, 80199.95670380247, 80232.80119854519], [72421.99999999999, 72073.33396364967, 72162.34465327395, 72004.65794909906, 72264.25987470048, 73050.19670055102, 72354.13727905227, 72089.54840207785, 71739.6062665108, 71319.77930813211, 71735.65152070609, 71800.42793828182, 71797.93151365452, 72086.45256933614, 71970.32356973803, 72462.32807498368, 72445.26618952362], [64900.92049553802, 64590.027747191794, 65070.86114435074, 65328.674173000574, 65856.01009168522, 66786.9921206009, 66467.41029903201, 66725.08123548502, 66876.09112493423, 66950.76838835265, 67703.87171389908, 68268.48858698616, 69093.74400991444, 70542.34348611094, 70884.98860759575, 71883.38618285763, 71896.12944276187], [64900.92049553802, 64605.08593202387, 64693.01023475281, 64535.0419831313, 64743.82189008733, 65466.817103718764, 64816.728641415575, 64578.33434143895, 64266.513632713795, 63901.899912420246, 64306.93009670378, 64357.82731724858, 64356.60935720406, 64620.4489552236, 64513.245534446876, 64948.133724815525, 64917.766271031964], [40512.94792630534, 40197.09020942993, 40488.90550864186, 40809.48153243445, 41283.845763724625, 41754.12638691003, 41731.06918741621, 41870.446341125215, 41944.767439109455, 41891.17730481086, 42079.8990392046, 42527.89002652759, 43050.93163290461, 43908.315534582376, 44155.95134899257, 44788.48052522216, 44839.319941212365], [40512.94792630534, 40206.461551031665, 40253.79612932794, 40313.7157970049, 40586.63671460249, 40928.774731482874, 40694.700986060285, 40523.34793418728, 40308.03719390068, 39983.496586891626, 39968.6023485561, 40091.74158011095, 40099.31766275363, 40222.29660219582, 40186.84050235429, 40467.32321545996, 40487.13768399808], [14866.888022051655, 14786.914951336072, 14642.520669452653, 14720.015997420945, 14919.569856303973, 14986.135516646906, 15177.41504924131, 15092.300301297055, 15221.560787772727, 15225.70341736743, 15219.389495497704, 15189.670187321779, 15539.840735074536, 15913.950681109298, 16013.136780674315, 16433.06831009462, 16708.932965059867], [14866.888022051655, 14790.362296169324, 14557.495058042841, 14541.192859207442, 14667.605463927395, 14689.905351453022, 14800.492275823415, 14606.735530210844, 14627.599003223597, 14532.340692927293, 14455.779139740958, 14319.551980061944, 14474.414058628121, 14578.005022856152, 14573.740437867918, 14847.618828056517, 15087.134916319203], [15944.236265986645, 15881.51128196692, 16424.913043782657, 16620.311101443793, 16126.15285241757, 17066.815911218393, 16333.371344148343, 16164.977584298005, 15951.331262771902, 16121.119378076412, 16745.62430677707, 16589.05726843127, 16753.292351608685, 17212.942723838954, 17759.631566289874, 18428.914627739425, 18400.602229857417], [15944.236265986645, 15885.213815324425, 16329.53750664485, 16418.402612365666, 15853.811468318323, 16729.45704434455, 15927.741030532568, 15644.901553233412, 15328.893044059061, 15386.980340515916, 15905.437376936708, 15638.777203589176, 15604.670245757741, 15767.949173307868, 16163.245481774702, 16650.90746561222, 16614.60782468273], [15944.236265986645, 15858.71708591856, 15968.2000401917, 16080.158816797983, 16231.830364571488, 16434.160212205556, 16380.19514255807, 16429.211395333245, 16465.207303238567, 16452.29487675382, 16615.34299342747, 16744.15962922295, 16921.514258452487, 17266.470130073078, 17359.512510234315, 17644.221685136632, 17650.583360894812], [15944.236265986645, 15862.414305155153, 15875.476526106871, 15884.812258540478, 15957.704279546262, 16109.307017792848, 15973.401985605578, 15900.634166478574, 15822.717084977965, 15703.074450850449, 15781.692735775227, 15784.994750790474, 15761.35869417236, 15816.98305638178, 15799.092514928381, 15941.921079808946, 15937.387089553435], [3173.2320350842083, 3148.889377231395, 3158.432269854221, 3195.7757059617884, 3233.6136621612072, 3270.4490349335315, 3268.643048259686, 3279.5599543785106, 3279.145732677192, 3275.5822163945086, 3295.6779156994794, 3328.8874182654276, 3325.363718146762, 3400.3868821916562, 3418.9948636527765, 3506.9914512167206, 3513.6881091275254], [3173.2320350842083, 3149.6234930061037, 3140.092009942479, 3156.9524709281636, 3179.0038101739015, 3205.8022381125393, 3187.4680919798448, 3174.0466299203126, 3151.189915377419, 3126.4156033698287, 3130.322151172169, 3138.19693474403, 3097.373529920189, 3114.9309207730134, 3111.6666511844383, 3168.639679355097, 3172.643439717309], [34195.564496956766, 33494.59376907851, 32250.449321730666, 31921.68132658289, 33764.13473455453, 33310.87622217076, 34148.82845017254, 34940.71214540837, 36586.227735380395, 37060.65318232781, 38452.49608342143, 38911.811422082515, 40180.00556260947, 39634.12535472275, 38431.22808089662, 37823.95779933009, 38299.07432411175], [34195.564496956766, 33502.40252534387, 32063.178684814848, 31533.887234995538, 33193.91992444603, 32652.421855794237, 33300.76103641, 33816.56416559271, 35158.593511885825, 35372.94951730574, 36523.19897050618, 36682.80478939904, 37425.22509117599, 36306.91649582156, 34976.70384202532, 34174.732154430814, 34581.69966366496], [33097.63671130043, 32303.575135875326, 31222.967018767136, 31181.340768475846, 32588.066859865623, 32594.659224574443, 33193.910602854754, 33582.44935478558, 35051.25438789435, 35576.085839182495, 36972.401891174966, 37055.0949390539, 38441.26635585098, 37976.79377407041, 37281.37214385603, 37274.464558584, 38015.12826169604], [33097.63671130043, 32311.10622421974, 31041.66272555638, 30802.540554474683, 32037.713696593724, 31950.36228252368, 32369.558049773663, 32502.000781146387, 33683.51648655884, 33955.98782950796, 35117.36631503355, 34932.447614879355, 35805.69554466084, 34788.71472484539, 33930.20669428378, 33678.25358857591, 34325.31389914116], [29576.147776884885, 29434.47012735933, 29658.663650579994, 29827.847362595723, 30078.566777117794, 30481.112590239238, 30357.562925410417, 30434.897226932768, 30542.237435808096, 30538.529588964517, 30877.80659545812, 31130.113002730544, 31560.46132932224, 32182.999380145127, 32330.53309639992, 32764.09451194754, 32720.16412383468], [34346.71094688275, 34182.18102525145, 34433.95504171291, 34524.4257551363, 34796.610178774594, 35305.18707153199, 35113.56902949967, 35285.903897855096, 35338.09390307696, 35401.72051168073, 35800.85425953083, 36098.7492052953, 36485.273021060646, 37283.51686752909, 37476.29949273726, 38034.20483348411, 38081.311252763866], [28335.32931213966, 28199.595514561977, 28407.303893967164, 28481.940369696113, 28706.48691475987, 29126.0523793865, 28967.971440238347, 29110.144158154984, 29153.199837840024, 29205.690479828736, 29534.967603405763, 29780.724799828797, 30099.59898908184, 30758.133726106647, 30917.17542239541, 31377.43584091151, 31416.297666868344], [978.0617717704338, 973.3765945810128, 978.242452058016, 976.4010552685254, 980.8331357928149, 1000.6924588297218, 996.2783441220249, 1004.2801106969645, 995.7597860490852, 1010.5182877075525, 1025.2108589100492, 1039.6263789603172, 1048.0096595316218, 1075.8272384367667, 1078.1560184585371, 1085.086837425894, 1094.654066163292], [0.0019383188997990075, 0.0032558129635260613, 0.004794537938527466, 0.003878766261409039, 0.0061007016942851156, 0.005588722305626792, 0.0025648741365935646, 0.0008034597255484055, 0.0014133811975705068, 0.005519949559383175, 0.0024702173209099065, 0.005922378229812564, 0.00482278633604305, 0.0013877696260762296, 0.0031739888666437732, 0.0018464193874236923, 0.0036689606593451884], [2.3548476e6, 2.3461018846123586e6, 2.311016565440012e6, 2.30875105792207e6, 2.330526838869152e6, 2.313591842176346e6, 2.3138559119200995e6, 2.32587085437169e6, 2.358184662406439e6, 2.392672466190641e6, 2.4044128677953607e6, 2.388918110278045e6, 2.3921584567353316e6, 2.3683371114529497e6, 2.349838225924038e6, 2.3332557989373174e6, 2.3528191781228012e6], [0.0016459319014481277, 0.0012334920125590572, 0.0, 0.0, 0.0010677146320770057, 0.00040217672516011476, 0.00044248778534683664, 0.0009389112001757414, 0.002268369897933461, 0.0036655942662456543, 0.003933539413666962, 0.0031443732149428116, 0.003155674993032977, 0.00197441939147309, 0.001132802472561238, 0.0003971992106878414, 0.0012766957948460865], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 515.6016809534068 257.00621213878685 … 136.3409750396683 502.4860014410616; … ; 573.149765099064 286.5675951839376 … 151.93410513684782 558.4019670366544; 559.718223961981 288.0853006453989 … 152.02037704817522 559.6324777932714], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.90462950861706; 515.7218856611984 257.0661292371435 … 136.37276086905933 502.603148427201; … ; 517.8527273785813 258.9197794029869 … 137.27562239049632 504.5277852526306; 505.3910011905251 260.12324110308265 … 137.26501526767711 505.31357769384925])])

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.99999999997, 73335.95100821069, 73597.77249141877, 75487.96540571815, 76498.87159269878, 76446.77847342764, 77176.56525808257, 77920.32927671348, 79550.55634458609, 79740.41315984342, 79824.49497829715, 79889.47675207978, 79687.98719499444, 79554.8486959027, 80917.92470968528, 81797.01453254609, 82044.50122137633], [72421.99999999997, 72690.13451480451, 72578.84148895051, 73520.37361632683, 73662.40182576534, 73602.20651186592, 73393.54044373099, 73662.98983068875, 74904.75716562259, 75167.11338661965, 74966.68999350391, 74688.00668378884, 74602.06826290015, 74656.6127999981, 75184.7512147223, 75679.72230008256, 75493.64286208722], [64900.92049553803, 65736.26728472294, 65960.17640576059, 67677.24182490444, 68581.67087315927, 68523.58684604274, 69187.17897929573, 69877.39198558737, 71353.13200580869, 71512.75375583352, 71568.2450126374, 71616.5058837039, 71440.82466379367, 71330.64700841092, 72567.38811297198, 73365.32409798009, 73570.29003364482], [64900.92049553803, 65157.37569003048, 65046.98479149074, 65913.2363357163, 66038.75969097574, 65973.83553224937, 65795.77623886024, 66059.49516652864, 67186.06721932063, 67411.32955229227, 67212.882946522, 66953.67509679469, 66881.26361235278, 66938.77974472906, 67425.86443177718, 67878.60640050017, 67696.0566324104], [40512.94792630535, 40929.605040029455, 41194.18488314596, 42102.496535514874, 42691.95730415226, 42698.84627915105, 42988.93612290118, 43120.07445735753, 43955.05927268153, 44107.5771207238, 44319.99469034568, 44446.74935181001, 44333.71450489033, 44198.09405636835, 44830.935928146966, 45260.1366395446, 45511.657814470374], [40512.94792630535, 40569.16771508781, 40623.86827330915, 41005.096094915876, 41109.000017812374, 41110.029283299074, 40881.71339859785, 40764.11939907096, 41388.05801381205, 41577.904092327146, 41622.85402955847, 41552.89592097934, 41504.208002501946, 41476.79303718077, 41654.587368297296, 41875.30060503187, 41877.77108713727], [14866.888022051655, 14729.504948351363, 14864.816484503159, 15049.473678499275, 15472.588217175131, 15769.036288503938, 15975.167482103428, 16441.63766023256, 16811.30608534332, 16848.10607440329, 16664.73438195338, 16560.43411314823, 16511.22252837565, 16683.044406415964, 17112.354628937366, 17043.014475001437, 17067.00054678291], [14866.888022051655, 14599.79288892382, 14659.019191333353, 14657.209551557607, 14898.886569288115, 15182.273060767393, 15192.100047110385, 15543.314549718292, 15829.515943357603, 15881.82766379527, 15650.584154345706, 15482.211976022974, 15457.428321682974, 15655.86016429841, 15899.915007592423, 15768.431280718636, 15704.282734674935], [15944.236265986641, 16444.203953492884, 16230.551972797892, 17053.030053579387, 16862.196323294484, 16574.019987339758, 16742.96600132077, 16961.327466870225, 17861.148545514992, 18227.298337049233, 17940.154158827034, 17250.56525369547, 17142.329730930065, 17079.214734896017, 17504.994468545567, 18281.317284094792, 17932.899590338417], [15944.236265986641, 16299.391784453022, 16005.846631421093, 16608.54328357134, 16236.969975776881, 15957.303449536405, 15922.262778301816, 16034.610021603623, 16818.04698769983, 17181.920014463743, 16848.386897106146, 16127.409833531057, 16048.25642844597, 16027.638067229764, 16264.735642375663, 16914.126062504463, 16501.043909106585], [15944.236265986641, 16143.068743571095, 16218.296141567576, 16629.29668844752, 16869.556651703082, 16853.140945187195, 17002.093903222725, 17105.747129830106, 17441.758350611257, 17494.678567491203, 17539.906431268988, 17565.14684968272, 17522.1541393186, 17501.587317479007, 17771.91543949303, 17940.257604297156, 18042.60405281688], [15944.236265986641, 16000.908453761529, 15993.76047715217, 16195.854517212847, 16244.057393636984, 16226.03836278612, 16168.688802636301, 16171.13901554801, 16423.149426319727, 16491.317707484726, 16472.49667292613, 16421.509548523634, 16403.839339245067, 16424.0049370326, 16512.74480557007, 16598.572958245746, 16601.98899850849], [3173.2320350842087, 3207.6875316105325, 3223.942053136019, 3297.8255914746273, 3346.050152994346, 3343.001021884486, 3372.72650849628, 3356.8280828610955, 3418.0179490487644, 3444.42236407809, 3471.4241778206874, 3481.352409977149, 3472.6098606575774, 3464.128696198674, 3491.6094428469823, 3506.7921350824795, 3561.2148926975133], [3173.2320350842087, 3179.4397556544313, 3179.3078964638908, 3211.8678560693133, 3221.983354360451, 3218.608507716857, 3207.4029024120273, 3173.4207905236003, 3218.403694780204, 3246.876660559484, 3260.166948070172, 3254.687383569933, 3250.9778072480917, 3250.840382464157, 3244.2229362810667, 3244.532290864465, 3276.869031588493], [34195.564496956766, 34359.844353529166, 34651.303917740544, 34910.06065390013, 35149.87332769689, 35445.2677065282, 35741.295576346, 37952.84213023077, 37470.03146592674, 36795.08179766944, 37186.83553576928, 37946.386491045734, 37895.790348199094, 37314.85134875503, 37698.31115797883, 37679.65277141672, 38523.20002224574], [34195.564496956766, 34057.26214263109, 34171.57081383644, 34000.13086124252, 33846.5658287786, 34126.35516761604, 33989.336188023364, 35879.209570029765, 35281.759637052346, 34684.79753185154, 34923.79090161956, 35475.76080218944, 35477.17087539245, 35017.355378076005, 35027.32127395476, 34861.73272216118, 35447.307998582124], [33097.63671130043, 33127.20728719184, 33343.08476676842, 33627.09551577527, 33677.74357962019, 34040.39178809549, 34271.79992458866, 36555.55243797789, 36546.989024880124, 36237.65017000298, 36287.22378859877, 36314.658457618716, 36195.06991740077, 35720.355850532214, 36228.67147392293, 36467.10663751137, 36990.256752460664], [33097.63671130043, 32835.48001629088, 32881.46342094917, 32750.60617496035, 32429.02056589083, 32773.75444935331, 32591.871968302305, 34558.26370973407, 34412.623416299, 34159.33591581875, 34078.92598912646, 33950.271848933175, 33884.99536512315, 33521.03384678645, 33661.80807749731, 33739.868370333475, 34036.7628674132], [29576.147776884864, 29956.825583813275, 30117.264824243335, 30892.22176869328, 31340.905470054367, 31284.53949505131, 31535.581341363766, 31763.916037148385, 32424.497642409668, 32450.32154390145, 32510.798155976172, 32563.32302943927, 32508.052263494763, 32477.288514760676, 33013.987906424896, 33349.83327837446, 33478.599995703094], [34346.71094688275, 34788.79118995898, 34852.66717900321, 35769.981300201915, 36215.983364016036, 36216.76146258056, 36617.32419902329, 37064.900647122, 37847.91643996082, 37974.42389753472, 37966.35963241834, 37962.69095512473, 37847.65939334134, 37777.50346078182, 38461.43768968015, 38911.20359700382, 38984.522562874845], [28335.329312139664, 28700.03640998458, 28752.73278570178, 29509.49804765185, 29877.44056685292, 29878.082482147147, 30208.53849188937, 30577.77984570773, 31223.751752042695, 31328.11779967799, 31321.464947004955, 31318.438363777954, 31223.539693874372, 31165.662494064803, 31729.894150296714, 32100.941762893406, 32161.42840005624], [978.0617717704336, 990.6505109506286, 990.2444025140273, 1015.0387560092647, 1024.7820390888794, 1022.2858884109387, 1034.273438908724, 1048.5753013169287, 1080.7179234382822, 1088.0083143974523, 1091.0872242428939, 1090.4918991399852, 1085.1130069574656, 1075.8550328684896, 1091.962516866902, 1104.287222601777, 1107.167475066839], [0.0019383188997990075, 0.0021424201112609786, 0.00034976542776243846, -0.0006975901299148823, 0.0032169606998406763, 0.00176410322123699, 0.001919597025103137, 0.0014613119381734485, 0.00039149019587592093, 0.005607956163097949, 0.002509491792100693, 0.00571007212817487, 0.004940291021435561, 0.0021789075106848355, 0.0028399090709991803, 0.006657486124899581, 0.006688723839379573], [2.3548476e6, 2.340870256661678e6, 2.342455133168682e6, 2.359200712048831e6, 2.3615769835530412e6, 2.3656252691189614e6, 2.365008423283602e6, 2.4013166062109405e6, 2.3815279903613133e6, 2.3817297364981584e6, 2.3773419149308805e6, 2.3855935895573497e6, 2.38661337763916e6, 2.385410788870984e6, 2.393644987329268e6, 2.4008874215565813e6, 2.403869961273779e6], [0.0016459319014481277, 0.0009894213097085538, 0.0009907919503918327, 0.001604580720522864, 0.0016586831340505825, 0.0017449798233807995, 0.001634196735721093, 0.0030567916858046974, 0.0020289135588640243, 0.002015730636960821, 0.0017428807928977857, 0.002086288807972757, 0.0020872509349635984, 0.0019331643273460077, 0.00219474501234425, 0.0024826442731232215, 0.0025745285263448383], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 524.7517471933472 261.5671434778732 … 138.76053455414473 511.40331177512775; … ; 585.779050433531 291.2485250452842 … 153.44164479622884 565.5927639203826; 587.8751657870238 292.8290810943414 … 154.43396762256378 568.8251756473593], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 520.1306394198454 259.26371149030325 … 137.538571238514 506.89975398408046; … ; 541.9708301013442 269.46713913336833 … 141.96631911090188 523.2942003207164; 540.9361645537398 269.44808900867054 … 142.10315894315346 523.4072243966216]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 73411.46203131661, 73425.06555729316, 74760.96742387488, 74579.40659805172, 74380.92210691534, 73866.77058086269, 74534.37957832326, 75440.75922899674, 76589.15909715561, 77159.71841203686, 78324.01044814716, 78121.9188634375, 78634.81814916823, 79631.70930218762, 80683.65491130491, 80873.4742940011], [72421.99999999997, 72851.71383978912, 73210.3902867782, 73870.13420347217, 73600.06351749752, 73267.49834808911, 72552.22643216561, 72772.32187891904, 73602.48613189877, 74264.1769928832, 74319.42094326526, 75457.07596016004, 75192.93317025196, 75457.03006308532, 75943.89604820774, 76179.97309043755, 76002.32549876819], [64900.92049553803, 65789.06726559259, 65804.7394280037, 67001.0204766998, 66824.13132738994, 66626.8805956444, 66144.08624807322, 66752.2586696701, 67590.23677208532, 68629.14782771192, 69135.72962622091, 70202.15331338727, 70012.83038752234, 70475.65485631894, 71380.28567060777, 72328.5396428651, 72524.14918487596], [64900.92049553803, 65287.43835908091, 65612.3439547324, 66202.65286726107, 65946.62701869739, 65629.52872462245, 64966.9761501959, 65174.17709165262, 65943.25820036318, 66545.80414811244, 66590.80020060496, 67632.50738599502, 67387.87465771046, 67627.59465051466, 68074.602973656, 68291.23209305781, 68155.89463650665], [40512.94792630535, 41048.699222691284, 41051.38959853933, 41810.1374562082, 41833.28665120449, 41836.69581073238, 41647.26091455306, 41885.797084124744, 42220.47062657075, 42871.3679005631, 43234.339353545016, 43706.622746768626, 43661.481153482695, 43916.821870636755, 44382.93657087996, 44902.96383785796, 44811.288140628036], [40512.94792630535, 40735.710834792655, 40931.36630540098, 41311.938186201194, 41283.95082664498, 41210.43346029395, 40906.1000012768, 40895.58033226718, 41191.679876148344, 41569.94137585025, 41642.856295323574, 42106.806504096756, 42024.50326683611, 42142.056485481364, 42327.52443454715, 42396.52480554177, 42112.226994255965], [14866.888022051655, 14992.164525346296, 15025.479740678817, 15269.649992365545, 15338.990944426172, 15499.894239286346, 15542.030225685949, 15854.551614081465, 15645.480537650936, 15728.118022381366, 15973.428132208808, 16091.421825783626, 16092.319056219434, 16345.054770345429, 16571.921759090477, 17003.78757908862, 17086.830487579744], [14866.888022051655, 14877.852172098694, 14981.5492531339, 15087.700614958532, 15137.566243837296, 15267.873043306705, 15265.441920398114, 15479.736194670384, 15264.245430031839, 15250.666730749688, 15385.436257364912, 15502.4191441139, 15488.977856059735, 15684.518871132894, 15804.461745452258, 16054.652973200782, 16057.661226947408], [15944.236265986641, 16654.64362204563, 16746.46924440079, 17371.805122116424, 17073.25266780547, 16932.735358435486, 16077.316996705085, 15984.019829987148, 16587.142641935858, 16907.373884007146, 16843.70430025212, 17343.122393147038, 16969.118988252245, 16787.544200371678, 17319.054611732226, 17188.191756854598, 17138.891364141524], [15944.236265986641, 16527.65518740581, 16697.507043442183, 17164.80698345671, 16849.054425616636, 16679.265660615663, 15791.20264760641, 15606.143669104069, 16182.961952504573, 16394.12446106082, 16223.677015636182, 16708.303064644842, 16332.904370566801, 16109.126430608007, 16516.99423021793, 16228.76389213994, 16106.586387152784], [15944.236265986641, 16160.687612133643, 16155.913631253792, 16457.47683586569, 16425.591093247498, 16385.641065569354, 16269.307842850292, 16393.752066381156, 16578.105570800766, 16864.005710473597, 16985.036327115675, 17227.775739755652, 17181.031368900738, 17294.138489307683, 17513.582791517285, 17745.42397178719, 17774.30546544097], [15944.236265986641, 16037.465496479874, 16108.678057095505, 16261.373607207983, 16209.897650312469, 16140.360937961095, 15979.7767958045, 16006.189478296068, 16174.145088654162, 16352.072795353562, 16359.806522241517, 16597.178504795265, 16536.871627232696, 16595.24824521585, 16702.51364193848, 16754.89195593867, 16703.728401577777], [3173.2320350842087, 3214.9165817555304, 3215.4062152121323, 3274.836178513889, 3276.649370861242, 3276.5968492611114, 3262.335821268174, 3280.762322311276, 3306.9760850845173, 3357.958503967947, 3386.3887392724355, 3423.380981746163, 3419.845204735064, 3439.8451155045423, 3475.4970582272977, 3517.4504530604445, 3513.5869666443155], [3173.2320350842087, 3190.403464964828, 3206.005226682841, 3235.8140395592654, 3233.621891358084, 3227.548777837388, 3204.278802784636, 3203.2022414110365, 3226.394643008832, 3256.0224921270124, 3261.7336528830538, 3298.073187291684, 3291.6266737093674, 3300.8341902769316, 3314.5437868757963, 3321.1098475355147, 3301.9575656704355], [34195.564496956766, 35246.59460467765, 34327.75778959551, 34308.094542208884, 33296.516705884176, 32815.76575986386, 33732.52322254468, 34464.412727630144, 34592.34184590574, 35254.80381108734, 36409.54696383467, 37070.684275608226, 37425.602714087465, 37259.7817876945, 37336.40257979163, 38063.82552432224, 37430.09019690353], [34195.564496956766, 34977.84614167797, 34227.392599129234, 33899.287762413886, 32859.281888259364, 32324.539619798157, 33132.21417052733, 33649.64397063861, 33749.426530221856, 34184.589841947985, 35069.28877978753, 35713.76673991365, 36022.423471907925, 35754.040521397255, 35607.32152029587, 35939.14042874738, 35175.61132902046], [33097.63671130043, 34530.6399434436, 33726.03081592036, 33998.71968902482, 32962.640371268775, 32704.16906140292, 33132.360778626244, 33654.40167750015, 33604.67642306657, 34172.504520883136, 35301.300337804045, 35887.8407931606, 36026.60304860403, 35674.384479880086, 35978.60621930671, 36475.11378681945, 35593.62589525153], [33097.63671130043, 34267.35049618551, 33627.42491432729, 33593.59934355871, 32529.78986686099, 32214.61343592555, 32542.732307643062, 32858.78228776114, 32785.82765700777, 33135.145416725376, 34001.83740484738, 34574.21949260919, 34675.8757951184, 34232.71224553411, 34312.40588230557, 34439.109009193155, 33449.760438608355], [29576.147776884864, 29980.88718455638, 29990.867129753286, 30536.306160861353, 30460.78998432435, 30352.165889574422, 30105.967592316196, 30335.30007078754, 30690.676838584615, 31250.783298551745, 31500.401866165364, 31966.441645280735, 31891.712595396482, 32104.024084340243, 32493.215247633794, 32919.512714500815, 32975.2451951144], [34346.71094688275, 34816.7338703877, 34818.38341239385, 35451.9951134905, 35353.81741068986, 35266.179099504654, 35039.29079450556, 35411.49483330961, 35878.78633791726, 36345.24649901356, 36592.49683769215, 37173.65853790407, 37060.88285781338, 37309.30039219025, 37811.69984931163, 38318.81728101444, 38455.24713118552], [28335.329312139664, 28723.088545982006, 28724.449384172032, 29247.16599113809, 29166.17140786437, 29093.871605661105, 28906.693425800888, 29213.754093913514, 29599.2599634071, 29984.079991621682, 30188.056430001205, 30667.50286621381, 30574.465252256774, 30779.404603054118, 31193.873810478082, 31612.235249785845, 31724.7870670059], [978.0617717704336, 991.4462106486405, 995.4888858566808, 1012.7192023479523, 1009.5239323757474, 1008.5356065652732, 998.8278612513141, 1005.4637655729421, 1020.7735955834039, 1033.1180301465868, 1042.8309223635379, 1062.0531302023862, 1060.2349343125843, 1062.3303797883768, 1075.3705736624179, 1090.2096473498666, 1093.656858576192], [0.0019383188997990075, 0.0012002908791290956, 0.0031927197419465703, 0.0018452450980419588, 0.0012624529312692534, 0.00359206464905526, -4.41077806936363e-5, 0.004072989727741616, 0.00412543310917779, 0.004782159916385753, 0.0026920941484642746, 0.0044196041617738935, 0.008340761472857894, 0.004630643679253366, 0.0020549101309608186, 0.006671066222079691, 0.0036778204660254943], [2.3548476e6, 2.3810337741715056e6, 2.36566082233108e6, 2.37276994678173e6, 2.351807377299274e6, 2.3465540492852675e6, 2.3625121347243623e6, 2.3706454276749734e6, 2.3697587068263e6, 2.3831841910520187e6, 2.4154120022664764e6, 2.4178874157041293e6, 2.4172854670465966e6, 2.4093093066287925e6, 2.3995600758762844e6, 2.4228948090047585e6, 2.419508161834628e6], [0.0016459319014481277, 0.0026453963090742527, 0.0018877630524458677, 0.0020859353882645123, 0.001091503268491698, 0.0008734160987436253, 0.001476653292940014, 0.0017994175213968098, 0.0017240808295505, 0.0022634251084737746, 0.0034877566475868664, 0.003431771583669314, 0.003344623492173035, 0.0028787227948182882, 0.002314746217491082, 0.003252975889046884, 0.002959062161517656], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 525.173232674006 261.7772366386542 … 138.87198830521046 511.8140756683917; … ; 576.8084849335336 286.12275528123865 … 152.03590497489904 560.3478909329708; 576.567937517516 290.0307716630276 … 151.927492452561 560.0373362231838], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 521.1688884054964 259.78123586796954 … 137.81311626865406 507.91159238680893; … ; 544.6116057691851 270.15166605736624 … 143.54941112298724 529.0698258461773; 541.8402565476277 272.56171822739896 … 142.77663763540926 526.3053218705935]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 73290.42453303494, 74576.21233583234, 74870.23380977014, 74531.35707527693, 73953.41364958757, 74903.91366432435, 75015.34782716724, 74702.1428458852, 75861.81793062385, 75015.29911514264, 75349.24762709373, 76475.53104945328, 74941.21202799036, 75131.15583762922, 76649.52878339641, 76142.0377924302], [72421.99999999997, 72908.06236213204, 73149.6333667339, 73093.83233116781, 72532.08583408158, 72291.8033318041, 72302.47646921419, 72613.39743914997, 72288.10064846963, 73406.61688416927, 72140.47512644643, 72072.32606005903, 73362.1018915079, 71721.35827521821, 71271.25628842629, 72465.57583189015, 72032.3072339726], [64900.92049553803, 65683.64343347543, 66841.06251216285, 67094.6486815897, 66774.19248827631, 66234.46872005731, 67086.09405894845, 67196.42379502459, 66895.08096860677, 67948.89768001261, 67151.42077042634, 67463.77954358638, 68493.37503552166, 67076.38466433906, 67233.58150265744, 68624.4034610792, 68164.51211541358], [64900.92049553803, 65340.96646501668, 65562.45032383334, 65502.73388368606, 64983.00381367567, 64746.29026842247, 64756.17227219504, 65044.831075895985, 64733.32841231254, 65749.79134114308, 64577.96552085731, 64529.79518220091, 65704.91096034211, 64194.44369969073, 63779.42366307542, 64878.505998125285, 64485.364740782665], [40512.94792630535, 40976.60511864106, 41694.86664376771, 41956.68500574349, 41918.7068726543, 41716.01878878484, 42227.79379641719, 42259.24512762971, 42202.57742818167, 42754.83954996134, 42559.3630948458, 42649.208106294696, 43168.509995017004, 42645.10350199366, 42749.25842344834, 43394.55553405469, 43190.93871899024], [40512.94792630535, 40762.826800542534, 40897.27961151794, 40961.20371112347, 40794.25579048829, 40778.72916528308, 40761.20883342397, 40906.12722347113, 40838.777155925665, 41371.116754126706, 40928.35342865902, 40794.40378824583, 41411.05769780265, 40812.85402493737, 40552.99455025525, 41025.84196741192, 40859.72818341475], [14866.888022051655, 14874.12016495312, 15005.575886630537, 15005.811718448862, 14965.899484204598, 15189.118352023337, 15120.66549063708, 15015.95253916543, 15184.470244655266, 15089.333849297604, 15279.42272334341, 15208.823107867067, 14930.51163117181, 15189.786729283414, 15502.654637746067, 15319.76660084846, 15210.321103572865], [14866.888022051655, 14796.520657066798, 14718.532091986204, 14649.777754510551, 14564.445738941764, 14847.84410211051, 14595.519878106872, 14535.149955792827, 14693.775459746328, 14600.980824446844, 14693.866823458598, 14547.39486510562, 14322.668970681172, 14537.156614549964, 14706.198241187956, 14483.529461450806, 14389.351199750306], [15944.236265986641, 16339.430051332416, 17073.931307093622, 17213.161696275583, 16925.517014884666, 16410.672120334555, 16534.07154369981, 17118.97992652021, 16699.96371323959, 17900.883148882083, 15897.746651623072, 16638.808187687482, 18021.91795590795, 16242.840961768889, 15672.252511524335, 16767.655168632984, 16350.387554619507], [15944.236265986641, 16254.185901287568, 16747.321647530247, 16804.75525311721, 16471.497381563826, 16041.951587079497, 15959.837880914862, 16570.839557009418, 16160.294895676487, 17321.536802610906, 15288.494619312329, 15915.19022046068, 17288.219685676362, 15544.966307607996, 14867.082941992321, 15852.384305965437, 15467.883102098476], [15944.236265986641, 16134.5746703701, 16424.065630892677, 16498.017066311644, 16432.80561017132, 16319.37660740117, 16517.764168420657, 16549.806341139552, 16496.951664750988, 16716.188733643336, 16556.256221245887, 16612.272109092308, 16873.800308986352, 16559.40196404654, 16581.85864089542, 16887.564329775032, 16816.164440957786], [15944.236265986641, 16050.399267691433, 16109.887344247953, 16106.57843417027, 15992.00274601057, 15952.707332617774, 15944.09686606376, 16019.890598373197, 15963.84329690144, 16175.18398064485, 15921.768015382973, 15889.80818986189, 16186.84356391483, 15847.926247084792, 15729.957615556983, 15965.748165438497, 15908.519900796524], [3173.2320350842087, 3209.548618579767, 3265.807434532787, 3286.3147156890773, 3282.328145025395, 3266.281821772288, 3307.5496823748776, 3310.013150891935, 3305.5745758573516, 3348.8312615910727, 3333.520300991376, 3340.557534347999, 3381.232564764715, 3340.2360356043605, 3348.3941122265023, 3398.9378906562574, 3383.379071146941], [3173.2320350842087, 3192.804139539868, 3203.335339781582, 3208.342282279357, 3194.2811199606626, 3192.89389675288, 3192.6774100532402, 3204.028341084152, 3198.7530549635485, 3240.449281800167, 3205.769238992864, 3195.277450273354, 3243.5777108203097, 3196.7225902871382, 3176.368741656286, 3213.4051620757, 3200.762782396644], [34195.564496956766, 34614.58820781225, 34927.98203969512, 34703.92899793723, 33439.52033327606, 33437.89245899968, 33945.542874756036, 33735.31653269319, 35210.70881542459, 35356.49791185328, 34684.01360079522, 34449.376918961374, 35689.65344557638, 35101.53976059273, 35801.65097307266, 35634.07178649373, 35712.31984680494], [34195.564496956766, 34434.001055037785, 34259.8397051596, 33880.52952863839, 32542.51974258289, 32686.598578529625, 32766.603170238897, 32655.13015773594, 34072.85475069307, 34212.21593918113, 33354.81228453064, 32951.18138613617, 34236.676184096854, 33593.399960505034, 33962.32380033043, 33688.96811538571, 33784.76423569921], [33097.63671130043, 33514.319009703526, 34126.14354135431, 34009.35360863539, 32718.286629742448, 32800.28807055472, 32924.16004118622, 33114.14629884097, 34595.577355615846, 35239.73652937017, 33405.246955464536, 33596.968693716495, 35335.0619782194, 34238.05892564843, 34594.66070816191, 34466.52030663364, 34321.929431557546], [33097.63671130043, 33339.47205180235, 33473.3396894598, 33202.433916222144, 31840.632819494975, 32063.320101198442, 31780.69329347082, 32053.84945485894, 33477.60161357181, 34099.233436195995, 32125.052029513747, 32135.84419988886, 33896.520646748824, 32767.018632382205, 32817.34324533934, 32585.148018323816, 32469.419486990246], [29576.147776884864, 29932.844247505607, 30488.375990311364, 30622.62042657833, 30489.015447614303, 30245.963048863512, 30582.97141646579, 30677.41529827151, 30576.29734987468, 30996.411657297842, 30680.281598823614, 30771.57013967476, 31268.403312624294, 30703.47405737967, 30702.88633515741, 31278.401273609816, 31157.19079159844], [34346.71094688275, 34760.94172043059, 35346.10747847157, 35461.836036764274, 35279.042027503325, 34991.4324755139, 35493.1991662993, 35508.155862906075, 35318.539270372836, 35923.50937533159, 35453.2683906197, 35669.96403995991, 36196.21761809258, 35361.488838826044, 35524.88243218174, 36308.5010139474, 35987.45082540164], [28335.329312139664, 28677.061171060657, 29159.810872536335, 29255.284550208544, 29104.48325640473, 28867.211298063787, 29281.158486289598, 29293.49745302298, 29137.067668500542, 29636.155548400202, 29248.21641855215, 29426.98586736658, 29861.134233454435, 29172.500178117498, 29307.296528265473, 29953.76572305331, 29688.90592811582], [978.0617717704336, 989.8574655393246, 1006.579043379976, 1010.1922182470578, 1006.135013158741, 997.0731956798637, 1009.923476183337, 1010.8526338469987, 1000.2443483592291, 1028.9766473831908, 1017.8707809829278, 1022.2453639517025, 1028.7541048049327, 1011.4217681332948, 1005.812735318276, 1037.5011735219325, 1019.8704984134696], [0.0019383188997990075, 0.0051428753394580085, 0.0003155454413641401, 0.0027122646457193866, 0.00726172256298474, 0.0070013797400749755, 0.0046388334288556266, 0.005330376399828474, 0.006614977691479451, 0.006362161761298779, 0.003984355371221104, 0.0031090415704644325, 0.00033053050792664074, 0.002014986236831273, 0.005271643053686548, 0.002302363017770981, 0.004784967532924789], [2.3548476e6, 2.3585921632346935e6, 2.3625020971150147e6, 2.36245637914872e6, 2.3389417766561066e6, 2.331871365861874e6, 2.3259694283222645e6, 2.3287148806617334e6, 2.359459417016843e6, 2.3640563086177763e6, 2.360047926033481e6, 2.3423029417524775e6, 2.357826759745062e6, 2.3542367134303213e6, 2.3818620478662048e6, 2.364945373688372e6, 2.353610235532249e6], [0.0016459319014481277, 0.0017985044026446197, 0.001835651855926522, 0.0017600905107293377, 0.0008174066767204133, 0.0006202261778641847, 0.0004318132399546542, 0.0006382653065511558, 0.0020413965761423014, 0.002227897521486083, 0.001987617931790855, 0.0011722554487946703, 0.0017449437453066915, 0.0015122364229188628, 0.002675440136350974, 0.0018316229208248556, 0.0013343904687352492], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 524.3316676995348 261.35775114365396 … 138.64945258933284 510.9939181037516; … ; 539.3842849521144 265.50332280877103 … 145.58874308828592 539.1418070350234; 553.1509148810861 270.5481064352399 … 144.89013381304432 536.5709308468076], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 521.596186277341 259.99422626647754 … 137.92610699508438 508.32802081786116; … ; 509.9417233755275 251.0106908417876 … 137.64170856610815 509.7124812370914; 523.294855282014 255.94540006191144 … 137.06975721406565 507.6097680619004]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999997, 72889.18090163422, 73208.68492605202, 73482.84449895678, 74188.1704688751, 73722.6351564359, 74502.37397271291, 74603.33415774442, 76448.24568790458, 76713.55170347667, 76626.55388616837, 77358.68979641888, 78272.29474983283, 79269.50545294728, 79374.68793626684, 79789.93145915949, 80109.97205804389], [72421.99999999997, 72351.17843496412, 72474.0347413426, 73021.59536572121, 73817.89469442186, 73166.72231583645, 73830.85749484546, 73605.10739386185, 74436.62393343364, 74060.88005341118, 73656.24477412441, 74113.5676985907, 74433.75152379354, 74618.81385606091, 74153.9874596862, 74230.94005391267, 73970.15720665676], [64900.92049553803, 65321.553588357085, 65599.70825467588, 65856.48047088578, 66495.8018078658, 66071.34789065887, 66771.30826899952, 66843.19336345568, 68518.71683759998, 68760.10105835609, 68666.84026869008, 69340.42623857514, 70180.79297006226, 71098.37217061006, 71176.71111614669, 71566.1104001164, 71854.00289715269], [64900.92049553803, 64839.40854951126, 64941.41425807067, 65443.10174633774, 66163.91891660854, 65573.13034037472, 66169.47464463982, 65948.80083593547, 66715.74882782188, 66382.45112972069, 66005.07706779827, 66431.66252952325, 66739.06421642976, 66927.07577968674, 66495.21504596529, 66580.07537858209, 66346.94475213299], [40512.94792630535, 40776.40858085571, 41008.891962175396, 41107.16936904505, 41490.35841625281, 41292.41188957856, 41682.06444226177, 41833.161067694324, 42684.952592030866, 42764.37982748291, 42760.472554402455, 43035.5184750022, 43418.94516215894, 43821.44985426264, 44036.57488695027, 44131.33832595029, 44376.83337403175], [40512.94792630535, 40475.433756786115, 40597.36715353867, 40849.14116708141, 41283.27857457688, 40981.04236324479, 41306.369123952005, 41273.4142216983, 41561.76162211336, 41285.63382391527, 41102.929381413975, 41230.220164466606, 41289.64132142377, 41250.47319134444, 41140.16327921105, 41056.69311734315, 40975.68950133143], [14866.888022051655, 14755.978570145637, 14906.430958083603, 14670.665732840449, 14843.060189935042, 15018.6246950521, 14993.42357928065, 15477.186692084286, 15832.963280412803, 16063.284853912628, 16201.667278826468, 16354.56072458181, 16502.75850073751, 16391.21968018858, 16564.648346247435, 16616.407794636092, 16363.320481057783], [14866.888022051655, 14647.063189691826, 14756.844713394525, 14578.578499426983, 14768.977953207146, 14905.37526631957, 14858.282503147686, 15270.09484880314, 15416.34242684026, 15507.833836553858, 15573.63486045497, 15668.502745222537, 15693.448488089614, 15429.557220030816, 15475.143999659227, 15458.737065670259, 15109.19748579808], [15944.236265986641, 16410.97371636943, 16143.79856538607, 16635.23305919184, 16503.46025956112, 16325.273484144891, 16798.30141300382, 16046.06374006992, 16708.354630588092, 16841.03078319691, 16540.128076917725, 16485.545916710736, 17117.7653984896, 17606.818279562765, 17271.32610207314, 17373.34855501872, 17961.380754156762], [15944.236265986641, 16289.842648210244, 15981.795319323777, 16530.81430836582, 16421.090907545196, 16202.171140653281, 16646.892329004062, 15831.360061459047, 16268.699157086177, 16258.686152757366, 15898.975752434646, 15793.993235430004, 16278.29489841918, 16573.83742074724, 16135.341536254464, 16162.941508270718, 16584.778697350568], [15944.236265986641, 16047.643072829542, 16125.197624371205, 16173.999634421247, 16341.127201308129, 16250.860084464906, 16419.658355825606, 16448.84970732054, 16809.946149154574, 16883.971304996125, 16846.673566170077, 16994.820762634357, 17159.175026266428, 17362.563867285266, 17412.498110560682, 17483.210638045624, 17542.3643356049], [15944.236265986641, 15929.193785148931, 15963.381039014075, 16072.47602897025, 16259.568059309298, 16128.318862592281, 16271.66211679396, 16228.75656807543, 16367.617446110511, 16300.14183775413, 16193.638482854663, 16281.904494913313, 16317.673761074027, 16343.913259884715, 16267.22825756604, 16265.14946296162, 16197.876673093288], [3173.2320350842087, 3193.867951051721, 3210.530030402853, 3219.775241998342, 3249.5765846208506, 3233.965386940852, 3264.345561094839, 3276.6395343611134, 3343.4420941111166, 3355.1959664662313, 3350.5921986119483, 3372.6472135298186, 3374.8502298077, 3392.5961433262437, 3421.7921161837885, 3423.071534413866, 3418.945468171484], [3173.2320350842087, 3170.2936864677467, 3178.312316312874, 3199.564830306861, 3233.357833317089, 3209.5793502665, 3234.9228498865823, 3232.796597370134, 3255.464393762239, 3239.1769186836264, 3220.7117063603278, 3231.1679300827127, 3209.3445610403614, 3193.55467983734, 3196.731052056337, 3184.5849874102278, 3156.909524052663], [34195.564496956766, 34266.75447770079, 35608.62507673298, 35272.79742166448, 35089.154917901586, 33729.97396353793, 34488.89643609016, 36180.7021365019, 35658.119171664424, 35984.71113519597, 36799.40120259891, 37277.38765863679, 37392.279366773815, 38648.6400419756, 38585.443650796886, 38826.762568678, 37355.97332113808], [34195.564496956766, 34013.82807345627, 35251.29202237892, 35051.39135949485, 34914.02370857234, 33475.629750263055, 34178.03570742693, 35696.58777865894, 34719.828860306945, 34740.39874260728, 35372.929683701936, 35713.63735781473, 35558.52859802172, 36381.14884914873, 36047.568551136166, 36121.68894014234, 34492.924515941166], [33097.63671130043, 33320.934443437756, 34459.06163632614, 34203.02108378457, 33737.86331477534, 32643.64887587816, 33460.31189792367, 34933.779478606, 34436.14398679181, 34939.85489631168, 35675.11522657668, 35794.322978513155, 36159.45367832676, 37198.62240304189, 37083.30504980103, 37157.92578512299, 35947.53587234127], [33097.63671130043, 33074.98923318067, 34113.264467293375, 33988.329968647406, 33569.47644947965, 32397.4962046448, 33158.72216868539, 34466.34951675759, 33530.0081329133, 33731.67250242252, 34292.22490388072, 34292.78580434366, 34386.16178216041, 35016.20282520989, 34644.22990657486, 34569.120577513204, 33192.43299376512], [29576.147776884864, 29767.835451236384, 29927.00351455294, 30028.127912998214, 30368.889154340402, 30178.635155658652, 30463.050542565674, 30520.049075500774, 31195.00069009041, 31297.908125699094, 31208.76507003074, 31504.249266429466, 31877.50404673605, 32308.831623340215, 32394.318928491433, 32548.28750771141, 32692.632488269966], [34346.71094688275, 34569.31739288438, 34684.49318989086, 34831.961041238304, 35122.655929314045, 34900.596904393664, 35308.11950360007, 35320.28289914101, 36286.29671772016, 36425.23746705302, 36424.07099343631, 36785.887135481345, 37238.063845094286, 37711.462672192734, 37702.61874845461, 37933.20340585772, 38073.79632694487], [28335.329312139664, 28518.97504649298, 28613.992707485722, 28735.650648397313, 28975.467945480585, 28792.27382224758, 29128.471575462157, 29138.506126331948, 29935.447635865396, 30050.070893193013, 30049.10857647761, 30347.599443656978, 30720.635918502478, 31111.180203297597, 31103.88414831525, 31294.11174279871, 31410.098007804423], [978.0617717704336, 984.4007442362575, 988.2115502320672, 996.3915166492548, 1004.2567242113686, 992.1158306064951, 1000.1382228337917, 1002.8613888138922, 1037.4194297894699, 1036.9554656039688, 1034.0042052231759, 1050.2898366642762, 1065.2250782319093, 1078.077875077118, 1079.7734392006869, 1084.6194865473333, 1087.5740819378366], [0.0019383188997990075, 0.0040414828114052614, 0.00493961573678936, 0.005507859775004231, 0.004678636923158397, 0.008006435226729058, 0.006285466617059532, 0.003784431117823006, 0.005075373288826679, 0.004488015870815154, 0.007053930499913097, 0.0058633596597088555, 0.006670087323440876, 0.005014419479451027, 0.0043201762106486186, 0.0029919661390440666, 0.004129121936865321], [2.3548476e6, 2.3634112448464297e6, 2.3893170621596924e6, 2.388712820150076e6, 2.391976271701279e6, 2.3965739571264284e6, 2.3993480791455302e6, 2.42544264507493e6, 2.4010799838877656e6, 2.38385828662929e6, 2.38777328386134e6, 2.3949358555371594e6, 2.388719548518727e6, 2.409090459888292e6, 2.3945398427255633e6, 2.3917966727593816e6, 2.3605604178124196e6], [0.0016459319014481277, 0.0019745184351533155, 0.003019835666751513, 0.002897787743002449, 0.0029249999361708055, 0.003081245351532859, 0.0031112253910229137, 0.004037468913413058, 0.002867043702867188, 0.002052294029273831, 0.0022237660514730266, 0.002488735197978067, 0.0022022482077523296, 0.0029930897052831505, 0.0022765592795092764, 0.0020639976647010144, 0.0007213931056016241], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 521.4412194475228 259.9169816813453 … 137.88512898927732 508.1769959753366; … ; 564.2539645401417 282.44086130589596 … 150.12151496875452 552.3428784257669; 566.6718327790421 284.1800229795982 … 150.52688402887713 553.9912266452568], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 517.5924087074926 257.9985079717462 … 136.86738481111934 504.42608981947444; … ; 524.9422007387072 262.76311134700995 … 139.6624984463366 513.8609640066555; 523.2407836177896 262.39980410380787 … 138.99015302834843 511.53204867387757])])

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-205aa27a.svg b/dev/examples/change_expectations-27ebd9b8.svg similarity index 86% rename from dev/examples/change_expectations-205aa27a.svg rename to dev/examples/change_expectations-27ebd9b8.svg index dafbfbf..8c09264 100644 --- a/dev/examples/change_expectations-205aa27a.svg +++ b/dev/examples/change_expectations-27ebd9b8.svg @@ -1,82 +1,82 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/change_expectations-de261897.svg b/dev/examples/change_expectations-28db5f2d.svg similarity index 86% rename from dev/examples/change_expectations-de261897.svg rename to dev/examples/change_expectations-28db5f2d.svg index 59f7ab3..31639e7 100644 --- a/dev/examples/change_expectations-de261897.svg +++ b/dev/examples/change_expectations-28db5f2d.svg @@ -1,284 +1,284 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/change_expectations.html b/dev/examples/change_expectations.html index ad2afd3..83f87da 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 178df57..a5e8026 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 3db46fa..369e075 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.448569 seconds (3.78 M allocations: 6.420 GiB, 19.11% gc time)
-  2.695783 seconds (3.65 M allocations: 6.150 GiB, 9.05% gc time)

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

+@time data = Bit.run_one_sim!(model; multi_threading = true);
  5.153831 seconds (3.52 M allocations: 6.415 GiB, 18.08% gc time)
+  2.538049 seconds (3.41 M allocations: 6.146 GiB, 8.92% gc time)

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

diff --git a/dev/examples/scenario_analysis_via_overload-81c688a6.svg b/dev/examples/scenario_analysis_via_overload-7d3afc74.svg similarity index 86% rename from dev/examples/scenario_analysis_via_overload-81c688a6.svg rename to dev/examples/scenario_analysis_via_overload-7d3afc74.svg index 4fc1f67..89be5df 100644 --- a/dev/examples/scenario_analysis_via_overload-81c688a6.svg +++ b/dev/examples/scenario_analysis_via_overload-7d3afc74.svg @@ -1,46 +1,46 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/scenario_analysis_via_overload.html b/dev/examples/scenario_analysis_via_overload.html index 689446f..62f466a 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-1151533a.svg b/dev/examples/scenario_analysis_via_shock-55c7bba0.svg similarity index 86% rename from dev/examples/scenario_analysis_via_shock-1151533a.svg rename to dev/examples/scenario_analysis_via_shock-55c7bba0.svg index eb0c004..3a1ea12 100644 --- a/dev/examples/scenario_analysis_via_shock-1151533a.svg +++ b/dev/examples/scenario_analysis_via_shock-55c7bba0.svg @@ -1,48 +1,48 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev/examples/scenario_analysis_via_shock.html b/dev/examples/scenario_analysis_via_shock.html index 2334b66..c1cbc86 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 cc85335..9926de1 100644 --- a/dev/index.html +++ b/dev/index.html @@ -55,7 +55,7 @@ [31c24e10] Distributions v0.25.113 [ffbed154] DocStringExtensions v0.9.3 [e30172f5] Documenter v1.8.0 - [2083aeaf] DynamicSampling v0.4.1 + [2083aeaf] DynamicSampling v0.4.2 [460bff9d] ExceptionUnwrapping v0.1.11 [c87230d0] FFMPEG v0.4.2 [7a1cc6ca] FFTW v1.8.0 @@ -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.