diff --git a/previews/PR36/.documenter-siteinfo.json b/previews/PR36/.documenter-siteinfo.json index 1993fa8..b67fee0 100644 --- a/previews/PR36/.documenter-siteinfo.json +++ b/previews/PR36/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-11-30T01:54:20","documenter_version":"1.8.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-11-30T01:56:49","documenter_version":"1.8.0"}} \ No newline at end of file diff --git a/previews/PR36/api.html b/previews/PR36/api.html index b69128d..9b0ae4a 100644 --- a/previews/PR36/api.html +++ b/previews/PR36/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/previews/PR36/examples/basic_example-27d21603.svg b/previews/PR36/examples/basic_example-27d21603.svg new file mode 100644 index 0000000..e9a1de4 --- /dev/null +++ b/previews/PR36/examples/basic_example-27d21603.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR36/examples/basic_example-5644b067.svg b/previews/PR36/examples/basic_example-5644b067.svg deleted file mode 100644 index 6e62a85..0000000 --- a/previews/PR36/examples/basic_example-5644b067.svg +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/previews/PR36/examples/basic_example-77ab45fb.svg b/previews/PR36/examples/basic_example-77ab45fb.svg deleted file mode 100644 index 562072c..0000000 --- a/previews/PR36/examples/basic_example-77ab45fb.svg +++ /dev/null @@ -1,283 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/previews/PR36/examples/basic_example-a66fb5b2.svg b/previews/PR36/examples/basic_example-a66fb5b2.svg deleted file mode 100644 index b07995c..0000000 --- a/previews/PR36/examples/basic_example-a66fb5b2.svg +++ /dev/null @@ -1,296 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/previews/PR36/examples/basic_example-b7363b16.svg b/previews/PR36/examples/basic_example-b7363b16.svg new file mode 100644 index 0000000..9db0419 --- /dev/null +++ b/previews/PR36/examples/basic_example-b7363b16.svg @@ -0,0 +1,289 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR36/examples/basic_example-d04af4f4.svg b/previews/PR36/examples/basic_example-d04af4f4.svg new file mode 100644 index 0000000..a702785 --- /dev/null +++ b/previews/PR36/examples/basic_example-d04af4f4.svg @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR36/examples/basic_example.html b/previews/PR36/examples/basic_example.html index 72edcfc..cb0e90a 100644 --- a/previews/PR36/examples/basic_example.html +++ b/previews/PR36/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, 5, 6, 7, 8, 8  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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, 2, 1, 1, 2, 24, 1  …  2, 2, 3, 2, 3, 7, 3, 2, 2, 15], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 21.644053318613242, 10.822026659306621, 10.822026659306621, 21.644053318613242, 259.7286398233589, 10.822026659306621  …  23.976206776597902, 23.976206776597902, 35.96431016489685, 23.976206776597902, 35.96431016489685, 83.91672371809265, 35.96431016489685, 23.976206776597902, 23.976206776597902, 179.82155082448426], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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, 21.644053318613242, 10.822026659306621, 10.822026659306621, 21.644053318613242, 259.7286398233589, 10.822026659306621  …  23.976206776597902, 23.976206776597902, 35.96431016489685, 23.976206776597902, 35.96431016489685, 83.91672371809265, 35.96431016489685, 23.976206776597902, 23.976206776597902, 179.82155082448426], [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, 596.3073170731707, 298.15365853658534, 298.15365853658534, 596.3073170731707, 7155.687804878048, 298.15365853658534  …  158.41666666666669, 158.41666666666669, 237.625, 158.41666666666669, 237.625, 554.4583333333334, 237.625, 158.41666666666669, 158.41666666666669, 1188.125], [7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 15.3102285081471, 7.65511425407355, 7.65511425407355, 15.3102285081471, 183.72274209776518, 7.65511425407355  …  8.114973344694128, 8.114973344694128, 12.172460017041193, 8.114973344694128, 12.172460017041193, 28.402406706429453, 12.172460017041193, 8.114973344694128, 8.114973344694128, 60.862300085205966], [94.08074124608004, 94.08074124608004, 94.08074124608004, 94.08074124608004, 188.16148249216008, 94.08074124608004, 94.08074124608004, 188.16148249216008, 2257.937789905921, 94.08074124608004  …  49.98750476142278, 49.98750476142278, 74.98125714213415, 49.98750476142278, 74.98125714213415, 174.95626666497972, 74.98125714213415, 49.98750476142278, 49.98750476142278, 374.9062857106708], [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.384292053067016, 12.384292053067016, 12.384292053067016, 12.384292053067016, 24.768584106134032, 12.384292053067016, 12.384292053067016, 24.768584106134032, 297.22300927360834, 12.384292053067016  …  27.06022299319042, 27.06022299319042, 40.590334489785626, 27.06022299319042, 40.590334489785626, 94.71078047616646, 40.590334489785626, 27.06022299319042, 27.06022299319042, 202.95167244892815], [1.2548454674764358, 1.2548454674764358, 1.2548454674764358, 1.2548454674764358, 2.5096909349528715, 1.2548454674764358, 1.2548454674764358, 2.5096909349528715, 30.11629121943444, 1.2548454674764358  …  7.154212967596574, 7.154212967596574, 10.731319451394862, 7.154212967596574, 10.731319451394862, 25.039745386588006, 10.731319451394862, 7.154212967596574, 7.154212967596574, 53.65659725697431], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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.306185795847084, 1.306185795847084, 1.306185795847084, 1.306185795847084, 2.022085687336538, 1.306185795847084, 1.306185795847084, 2.022085687336538, 17.771883300104513, 1.306185795847084  …  4.671824563850784, 4.671824563850784, 6.7125938935973615, 4.671824563850784, 6.7125938935973615, 14.875671212583667, 6.7125938935973615, 4.671824563850784, 4.671824563850784, 31.201825850556286], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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.889212387273574, 11.889212387273574, 11.889212387273574, 11.889212387273574, 18.40550270753722, 11.889212387273574, 11.889212387273574, 18.40550270753722, 161.76388975333737, 11.889212387273574  …  42.524053356193676, 42.524053356193676, 61.099619000785566, 42.524053356193676, 61.099619000785566, 135.40188157915304, 61.099619000785566, 42.524053356193676, 42.524053356193676, 284.0064067358881], [6.44766966354178, 6.44766966354178, 6.44766966354178, 6.44766966354178, 9.98153599952955, 6.44766966354178, 6.44766966354178, 9.98153599952955, 87.72659539126043, 6.44766966354178  …  23.061329873209285, 23.061329873209285, 33.13509314603693, 23.061329873209285, 33.13509314603693, 73.43014623734747, 33.13509314603693, 23.061329873209285, 23.061329873209285, 154.0202524199686]), 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
+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.7818066335944875, 3.7818066335944875, 3.7818066335944875, 3.7818066335944875, 3.7818066335944875, 3.7818066335944875, 3.7818066335944875, 3.7818066335944875, 3.7818066335944875, 3.7818066335944875  …  22.98196000121096, 22.98196000121096, 22.98196000121096, 22.98196000121096, 22.98196000121096, 22.98196000121096, 22.98196000121096, 22.98196000121096, 22.98196000121096, 22.98196000121096], [6.973481059156251, 6.973481059156251, 6.973481059156251, 6.973481059156251, 6.973481059156251, 6.973481059156251, 6.973481059156251, 6.973481059156251, 6.973481059156251, 6.973481059156251  …  42.37769888790033, 42.37769888790033, 42.37769888790033, 42.37769888790033, 42.37769888790033, 42.37769888790033, 42.37769888790033, 42.37769888790033, 42.37769888790033, 42.37769888790033], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983  …  11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522], [1, 1, 1, 1, 1, 2, 3, 4, 5, 6  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Workers{Vector{Float64}, Vector{Int64}}([2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714  …  2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714], [13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986  …  13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986, 13.963459838592986], [25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775  …  25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775, 25.747990878149775], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1  …  3, 2, 1, 2, 1, 1, 2, 2, 8, 3], [54.11013329653311, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  35.96431016489685, 23.976206776597902, 11.988103388298951, 23.976206776597902, 11.988103388298951, 11.988103388298951, 23.976206776597902, 23.976206776597902, 95.90482710639161, 35.96431016489685], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [54.11013329653311, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621  …  35.96431016489685, 23.976206776597902, 11.988103388298951, 23.976206776597902, 11.988103388298951, 11.988103388298951, 23.976206776597902, 23.976206776597902, 95.90482710639161, 35.96431016489685], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0  …  1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1490.7682926829268, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534  …  237.625, 158.41666666666669, 79.20833333333334, 158.41666666666669, 79.20833333333334, 79.20833333333334, 158.41666666666669, 158.41666666666669, 633.6666666666667, 237.625], [38.27557127036775, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355  …  12.172460017041193, 8.114973344694128, 4.057486672347064, 8.114973344694128, 4.057486672347064, 4.057486672347064, 8.114973344694128, 8.114973344694128, 32.45989337877651, 12.172460017041193], [470.40370623040025, 94.08074124608005, 94.08074124608005, 94.08074124608005, 94.08074124608005, 94.08074124608005, 94.08074124608005, 94.08074124608005, 94.08074124608005, 94.08074124608005  …  74.98125714213417, 49.987504761422784, 24.993752380711392, 49.987504761422784, 24.993752380711392, 24.993752380711392, 49.987504761422784, 49.987504761422784, 199.95001904569114, 74.98125714213417], [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], [61.92146026533505, 12.38429205306701, 12.38429205306701, 12.38429205306701, 12.38429205306701, 12.38429205306701, 12.38429205306701, 12.38429205306701, 12.38429205306701, 12.38429205306701  …  40.59033448978561, 27.060222993190408, 13.530111496595204, 27.060222993190408, 13.530111496595204, 13.530111496595204, 27.060222993190408, 27.060222993190408, 108.24089197276163, 40.59033448978561], [6.274227337382176, 1.2548454674764353, 1.2548454674764353, 1.2548454674764353, 1.2548454674764353, 1.2548454674764353, 1.2548454674764353, 1.2548454674764353, 1.2548454674764353, 1.2548454674764353  …  10.731319451394862, 7.154212967596574, 3.577106483798287, 7.154212967596574, 3.577106483798287, 3.577106483798287, 7.154212967596574, 7.154212967596574, 28.616851870386295, 10.731319451394862], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [4.169785361804898, 1.306185795847084, 1.306185795847084, 1.306185795847084, 1.306185795847084, 1.306185795847084, 1.306185795847084, 1.306185795847084, 1.306185795847084, 1.306185795847084  …  6.7125938935973615, 4.671824563850784, 2.631055234104207, 4.671824563850784, 2.631055234104207, 2.631055234104207, 4.671824563850784, 4.671824563850784, 16.916440542330243, 6.7125938935973615], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0  …  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [37.95437366832816, 11.889212387273576, 11.889212387273576, 11.889212387273576, 11.889212387273576, 11.889212387273576, 11.889212387273576, 11.889212387273576, 11.889212387273576, 11.889212387273576  …  61.09961900078557, 42.52405335619368, 23.948487711601807, 42.52405335619368, 23.948487711601807, 23.948487711601807, 42.52405335619368, 42.52405335619368, 153.97744722374495, 61.09961900078557], [20.583135007492853, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781, 6.447669663541781  …  33.13509314603693, 23.06132987320929, 12.987566600381651, 23.06132987320929, 12.987566600381651, 12.987566600381651, 23.06132987320929, 23.06132987320929, 83.50390951017512, 33.13509314603693]), Bank{Float64}(89460.0, 6476.292527744363, 0.0, 126430.99999999994, 0.028359903595743693, 3695.369633667524, 0.0, 0.0, 0.0, 0.0, 33636.1293805541, 18241.296726948163), 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, 72939.13204265665, 72456.86794045508, 73228.34148229292, 73351.47815115958, 73058.19643328238, 73773.53114984436, 74102.8699137292, 74443.87836275087, 75920.03417857071, 76667.88797813373, 77567.23552207595, 78386.93858393397, 79423.31357821933, 80290.567794145, 81148.26347051655, 80479.31664518906], [72421.99999999999, 72520.95984957097, 71999.5523281686, 72557.56532303603, 73054.99415755867, 72885.3849841031, 73415.79247953749, 73501.74608520402, 73816.51044415693, 74899.5812909081, 75226.01629177446, 75840.83799211113, 76918.2048629288, 77791.28942141499, 78167.06843105226, 78887.17080240404, 78404.13516875939], [64900.920495538005, 65373.20250859813, 64957.642299344545, 65676.57525684772, 65802.5856092611, 65541.3671807924, 66177.06040960854, 66485.52446989005, 66808.4207541532, 68150.23653203087, 68926.97810080786, 69744.51981020947, 70496.06677981153, 71419.56654645171, 72205.0541657405, 72963.88299199574, 72356.65345187769], [64900.920495538005, 64998.40704974802, 64547.658473032534, 65074.973745572395, 65536.61396339332, 65386.33599748023, 65856.15813982744, 65946.19268614978, 66245.399847735, 67234.21869278139, 67630.68755765106, 68192.23080675956, 69175.18408751358, 69952.00680081717, 70295.39789171664, 70930.83762768966, 70490.91709626521], [40512.94792630535, 40748.84392130275, 40356.83566030466, 40563.901908980966, 40544.9145208007, 40377.38450868458, 40821.77179018913, 40911.87286875798, 40992.88198409294, 41705.08532257657, 41617.2069550735, 41964.86854866398, 42266.90085532012, 42888.54863407566, 43366.654663381865, 43945.398026936644, 43617.79724815534], [40512.94792630535, 40515.224011782644, 40102.12121384111, 40192.33404637189, 40381.03345827372, 40281.87606922581, 40623.82103288931, 40579.99501194037, 40647.41880279266, 41144.520839063036, 40834.52369671912, 41030.86535878504, 41474.94719964679, 42007.25642568455, 42219.707193870185, 42720.91566556004, 42493.10026183409], [14866.888022051655, 14978.49590472668, 14949.430728393709, 15337.975139247128, 15338.542621003391, 15286.050013396305, 15441.185018671174, 15539.035606194364, 15555.037910925814, 15690.03131172918, 15756.312511145034, 15814.079587046637, 15893.360729286347, 15918.658082362943, 15920.11910113779, 15831.165544177135, 16042.233615278767], [14866.888022051655, 14892.621692816087, 14855.076552437497, 15197.478333687608, 15276.544792371738, 15249.89247619984, 15366.308448301756, 15412.982666732514, 15423.949472595463, 15479.139181176224, 15459.987915667358, 15462.10896757066, 15595.567305217286, 15591.554699692573, 15499.068861982672, 15390.050345789434, 15628.580177020176], [15944.236265986641, 16111.039742801398, 15934.583467959144, 16035.509278088923, 16156.2935863181, 16070.717299423475, 16201.4580883584, 16234.463978374428, 16339.823369587288, 16836.91821603218, 18410.36271055877, 18472.13108316933, 18557.5043698926, 18793.645617291568, 18948.54131990095, 19449.33028667464, 18279.628868394215], [15944.236265986641, 16018.672468425299, 15834.011444874071, 15888.623016464568, 16090.990438174445, 16032.703714617817, 16122.894842391643, 16102.769711308993, 16202.121234730495, 16610.610601727396, 18064.124129739514, 18061.000774598608, 18209.792966205412, 18407.46576329149, 18447.39633450855, 18907.399551128146, 17808.283573665398], [15944.236265986641, 16054.972964021363, 15938.029177075976, 16055.338523699154, 16098.875878164055, 16048.413528880697, 16217.660161456733, 16273.507188545875, 16345.202008573055, 16693.942782906364, 18117.510914345785, 18560.221479004267, 18708.961733332144, 18833.370329229227, 18994.273396343884, 19121.788010218686, 17721.422740236907], [15944.236265986641, 15962.927129826756, 15837.4354062033, 15908.270624952584, 16033.804810298072, 16010.452701289121, 16139.018349261736, 16141.496202249407, 16207.454545804558, 16469.55692344767, 17776.779915962863, 18147.130561153615, 18358.412477561476, 18446.37419488798, 18491.918903560174, 18588.983821663063, 17264.47094517321], [3173.2320350842087, 3191.0345260088125, 3152.782891485401, 3134.6002494127456, 3138.1865681142735, 3126.8189693049135, 3161.625152004979, 3157.57335722278, 3162.1702688345185, 3235.618792433322, 2805.109780821483, 3143.920122441928, 3302.709407957888, 3358.0849210740043, 3388.3097944221895, 3453.75738449336, 3432.1119921144723], [3173.2320350842087, 3172.739793557469, 3132.8839242872764, 3105.8871163068225, 3125.5021327105023, 3119.4228092053345, 3146.293968038879, 3131.9590647189607, 3135.5214130329528, 3192.1283412521725, 2752.3548598661864, 3073.94655825263, 3240.826640678304, 3289.0815583976823, 3298.6968562142642, 3357.522848281077, 3343.614033533783], [34195.564496956766, 33875.178130193024, 33167.02028777774, 32856.52157247959, 31975.171594073425, 31253.671977777107, 31659.76760666341, 31531.389273125533, 31302.61646677592, 31471.148801046256, 31522.31306842987, 30721.977836447044, 30995.713448933355, 32188.98261417217, 32047.727243827616, 32386.146335285895, 32771.7054242256], [34195.564496956766, 33680.966091563496, 32957.6847669119, 32555.553792781066, 31845.929119221735, 31179.74471690382, 31506.244751117472, 31275.606069848192, 31038.816974175443, 31048.14023658024, 30929.481677080163, 30038.2052835709, 30414.947694185663, 31527.549656485946, 31200.139161435232, 31483.747751565883, 31926.677920485887], [33097.63671130043, 32774.425656367224, 31951.002203979955, 31565.56641650328, 30663.444171035597, 29929.627365999095, 30350.651354037887, 30113.891812723203, 29746.48136863106, 29783.14947281342, 30638.307267073596, 29405.82153325071, 29326.5408194988, 30366.521369682512, 29992.47453410296, 30463.77672255799, 30232.048510864668], [33097.63671130043, 32586.524415016644, 31749.34164989573, 31276.42386626879, 30539.503650482577, 29858.83199284424, 30203.47659516282, 29869.607374626128, 29495.796040137102, 29382.82956763878, 30062.101127431837, 28751.342392413735, 28777.050302326632, 29742.537123739054, 29199.24312074404, 29614.942511639623, 29452.506764245984], [29576.147776884856, 29791.372499492452, 29596.42065922103, 29870.359577802796, 29949.645024861813, 29835.6611323239, 30137.821648172925, 30265.82457493029, 30415.19845769427, 31043.369399275103, 31424.01781486369, 31757.010143104104, 32104.719794851106, 32539.369680705528, 32923.80533862269, 33299.54683228611, 33072.551857265375], [34346.71094688275, 34596.65091174201, 34384.391384677816, 34817.87136763385, 34869.465060945025, 34731.41736431494, 35059.58280031153, 35235.81024334994, 35405.732262542755, 36102.18795381315, 36489.794295209605, 36958.4972273629, 37351.38590410168, 37828.78151423848, 38218.68941770595, 38592.89274752657, 38225.9842599917], [28335.32931213966, 28541.52463673724, 28366.41489745815, 28724.026957788337, 28766.59069242547, 28652.704185189155, 28923.433912766435, 29068.817924646122, 29209.00009168559, 29783.561696550158, 30103.328947159032, 30489.999215315653, 30814.124283815534, 31207.965832321173, 31529.631824248114, 31838.341866282823, 31535.649918928753], [978.0617717704338, 985.1790973636918, 976.8302554456865, 988.3443114111703, 983.4755234543072, 974.2886841535833, 979.6559611240694, 983.8896516098065, 987.4900339161117, 1004.6791789426259, 1013.1659907345582, 1029.0124397424315, 1039.9610808587015, 1051.4153515076996, 1062.5594094117728, 1071.4434121830475, 1058.1173346206085], [0.0019383188997990075, 0.004632389768813194, 0.004644312265515982, 0.004254026780504461, 0.007534354159303813, 0.006887737137946104, 0.008425082043709953, 0.008783560751113306, 0.004785415682414529, 0.005805812241121977, 0.006100498597664705, 0.006855618690395637, 0.00800999458359164, 0.0032978867933946, 0.0010341966647640088, 0.005292204089490493, 0.00811522643100937], [2.3548476e6, 2.3433087731692987e6, 2.3197155497922404e6, 2.3198231467293995e6, 2.3217397754671047e6, 2.3130649803721895e6, 2.3254934869338907e6, 2.31853678705722e6, 2.3270980363688082e6, 2.329497615334681e6, 2.3440141427295185e6, 2.3075223019345324e6, 2.3172551150515988e6, 2.3597956766220173e6, 2.365480167717977e6, 2.361215115755993e6, 2.3860715909982165e6], [0.0016459319014481277, 0.0011484159209538543, 0.00017965200098599913, 0.0002685356455577625, 0.0005028183068407843, 0.0002561475876655928, 0.0009590284943502913, 0.0007953509236799663, 0.0012094807186409154, 0.0013545945299107756, 0.002007245071504294, 0.0004846884699857602, 0.001047487786626378, 0.0028513271519832076, 0.002900905585923506, 0.002630241372135121, 0.0036571782566617874], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 521.8535163767028 260.1224947274799 … 137.99415300414512 508.5788050519994; … ; 615.8057038649092 299.0598787536568 … 152.68540954605282 552.950179614912; 615.8206022064002 297.41205411076936 … 152.13383928799018 550.0285576902036], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 518.8616432449357 258.63116913797984 … 137.20300954001667 505.66303805135635; … ; 598.6470648202583 290.72695737916365 … 148.43102571468762 537.5429294349617; 599.941497365879 289.74320189773994 … 148.21102609338487 535.8459189451685]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72957.02478724226, 72659.13763937178, 72388.9081140328, 73533.73604971226, 73517.91941574746, 73959.6888245771, 73447.61130511107, 73963.34804297182, 74860.95101507592, 75857.79497001223, 76364.87587291973, 76602.34735807909, 76958.79778345983, 77407.4243854101, 78733.07512153257, 79034.29958416395], [72421.99999999999, 72235.99392288487, 71776.67293889936, 71772.84866731393, 72634.4026047166, 73226.26083433033, 73243.06562922818, 72657.11000749434, 72563.99101412403, 72951.29823121641, 73598.36596326194, 73183.05712462794, 73140.21350150969, 73796.89840612949, 74319.86364878519, 74648.85167511604, 74731.04908711102], [64900.920495538005, 65418.86358037824, 65178.63908525139, 64948.360067327085, 65988.46254279793, 65987.38077529045, 66356.93668724653, 65911.54457994363, 66396.33343086804, 67222.33311264247, 68105.54177358116, 68556.90939656734, 68773.11719663693, 69094.95716684288, 69507.96306993507, 70735.9858335148, 70989.35055751963], [64900.920495538005, 64772.33201072895, 64387.02704461523, 64395.62275147552, 65181.40941947424, 65725.59717176494, 65713.97941203181, 65202.15239424101, 65140.141298756505, 65507.53636179389, 66077.01409670229, 65700.41736211497, 65664.83467423222, 66256.14850123427, 66735.48924896195, 67066.60582516785, 67124.13052419982], [40512.94792630535, 40523.58386267235, 40157.251379464455, 39921.08445492056, 40415.209528408086, 40347.06487332119, 40798.937765165836, 40385.26237327684, 40510.5350232593, 40837.20314901925, 41472.20900255415, 41727.47323375941, 41870.08257053903, 42050.68095012385, 42225.44581226361, 42752.02822581748, 43046.0077690077], [40512.94792630535, 40123.09117832056, 39669.53079865799, 39581.33957075989, 39920.92280277737, 40187.00093518457, 40403.62153800508, 39950.60423064444, 39744.091866924035, 39795.473413808504, 40236.95675153071, 39988.85642680009, 39977.7145760283, 40323.00294914179, 40541.19356370281, 40534.29653183475, 40702.24366528628], [14866.888022051655, 15038.269873359308, 15118.447569576134, 15153.38375778692, 15650.763062732216, 15334.495382705332, 15535.827042669152, 15543.977250569276, 15614.559873631917, 15858.556633070948, 16090.760939586558, 16239.998171015823, 16283.677017014112, 16408.202834729887, 16214.434146198064, 16603.21089497643, 16801.051264824106], [14866.888022051655, 14889.647355420175, 14934.829971851386, 15024.422215791617, 15459.35085633347, 15273.660728982679, 15385.29458107222, 15376.68067048507, 15319.138632034867, 15454.015461583038, 15611.496652746167, 15563.342443338706, 15547.716939361208, 15734.061764176518, 15567.686749112107, 15741.930891389788, 15886.26954869876], [15944.236265986641, 16048.426168605614, 15924.250471115616, 15840.933086162031, 16079.926784153342, 16295.87411980418, 16129.076115353622, 15981.795985093677, 16168.502174561092, 16349.334057389118, 16616.04897527767, 16728.260242698045, 16740.261760777474, 16959.352624728093, 17135.062006611828, 17290.926039592527, 17201.203527489582], [15944.236265986641, 15889.82032323747, 15730.846181183275, 15706.120215974797, 15883.265812918391, 16231.225506697268, 15972.795440738748, 15809.787253428052, 15862.600565689001, 15932.273482101284, 16121.13895255466, 16031.260588628076, 15983.665794613382, 16262.56722723614, 16451.593397608223, 16393.97129176706, 16264.634366770277], [15944.236265986641, 16048.42616860562, 15924.250471115618, 15841.299328386516, 16056.931279209548, 16084.823739977466, 16230.840856692581, 16107.482338068505, 16178.22326877389, 16348.675174128875, 16579.949981394027, 16718.829962707263, 16767.080909464155, 16833.716752250413, 16974.082925445935, 17272.844778577837, 17335.646195609548], [15944.236265986641, 15889.820323237474, 15730.846181183275, 15706.483341326986, 15860.551547957652, 16021.012401032784, 16073.574145288323, 15934.120870441098, 15872.137740678634, 15931.631406512264, 16086.115169385059, 16022.223230662416, 16009.272820096598, 16142.093181585264, 16297.035311513177, 16376.827983576683, 16391.7569158855], [3173.2320350842087, 3175.5026848273255, 3106.9907374365016, 3072.0725995369917, 3087.0363754866457, 3103.437378335291, 3153.357392245511, 3127.2211413978484, 3113.4417790842754, 3119.3931368096532, 3181.791356496494, 3235.045370124738, 3241.9462196858444, 3242.687512938039, 3292.1875542385014, 3333.764172031109, 3331.894398518948], [3173.2320350842087, 3144.1193402859685, 3069.255502205791, 3045.927995408277, 3049.281255081549, 3091.1254936889986, 3122.8033284518106, 3093.5635135147545, 3054.5367030871957, 3039.81950453692, 3087.0215086893213, 3100.2539769275977, 3095.4226188373623, 3109.459708926802, 3160.871609924666, 3160.8274770625026, 3150.4797936955556], [34195.564496956766, 34434.19613843617, 34295.342159648164, 33443.68087750103, 33475.1718944455, 32655.89692702281, 33840.719989551086, 34097.607700190514, 33934.05475322641, 35093.16223503942, 35288.839552570455, 36043.08364911326, 35309.7520497058, 34741.58189867779, 34847.433686937235, 33539.80539875639, 33123.65635996665], [34195.564496956766, 34093.88458821118, 33878.81603740432, 33159.06136776645, 33065.763325277985, 32526.345211627042, 33512.824547084565, 33730.622271343076, 33292.035979162225, 34197.95914119842, 34237.75933423358, 34541.312605946216, 33713.88596655677, 33314.202712194354, 33457.46923742628, 31799.95134902696, 31320.143309997155], [33097.63671130043, 33087.45125583143, 32836.15394043254, 31970.174062337883, 32087.335220027137, 31115.411887105944, 32344.872088162152, 32561.032004019027, 32264.303781706865, 33277.30505944317, 33610.063499976495, 34373.93942366658, 33601.42603995724, 33201.020524800086, 33014.951266600794, 31452.895437610103, 31137.61933712428], [33097.63671130043, 32760.44952230476, 32437.350050197485, 31698.09470297905, 31694.900192590903, 30991.971548161062, 32031.47047767203, 32210.584418406062, 31653.87602968599, 32428.423267475155, 32608.9857278031, 32941.714940084945, 32082.76977504996, 31836.936246619538, 31698.07929906437, 29821.298388902393, 29442.24180364168], [29576.147776884856, 29812.18081155194, 29668.597257416226, 29540.081393885597, 29953.66521935856, 29979.239290436984, 30206.678402127414, 29983.89858738839, 30171.545450548758, 30536.813347403415, 30932.202130599653, 31117.032995948834, 31228.660405559225, 31356.152558630623, 31559.112063519835, 32171.336509664623, 32280.51301674168], [34346.71094688275, 34620.81555566358, 34528.62165017618, 34430.98323885861, 35042.37900603179, 35018.471450848716, 35160.625492624524, 34941.65101462947, 35227.672821042775, 35677.361793113996, 36150.4448752411, 36408.90396501243, 36506.465331244115, 36697.82278042925, 36903.47119662882, 37505.20060865883, 37655.88536315317], [28335.32931213966, 28561.45997040827, 28485.40189670806, 28404.852217803545, 28909.24113672193, 28889.51789596655, 29006.792053396024, 28826.14261786377, 29062.104718797036, 29433.088861394597, 29823.372663089744, 30036.59609032597, 30117.082208621032, 30274.94816403601, 30444.603872978463, 30941.018247939683, 31065.330067709532], [978.0617717704338, 985.8672131627471, 981.4201776588767, 977.2954345829065, 992.4183174076038, 989.6700340047511, 989.6327924946704, 985.9949779257196, 997.1151592764033, 1008.1579721250749, 1022.8947677404428, 1030.9724356060754, 1037.9914598336532, 1040.9818277829272, 1045.379809786435, 1059.4487151913208, 1052.952177624834], [0.0019383188997990075, 0.007215473340116407, 0.0048035160198587334, 0.0026955101557057937, 0.0005780391110936645, 0.004712771352412881, 0.0054521569486438715, 0.003087605493358181, 0.0027113908381422025, 0.0023832150316200895, 0.006140578520092976, 0.0034850073530363623, 0.0013270041733912663, 0.0012084725951193587, 0.002451597264423677, 0.003267136732589382, 0.0034197271102394122], [2.3548476e6, 2.3371700348313623e6, 2.3455659641480837e6, 2.33759573918283e6, 2.3302674803949795e6, 2.31928759769832e6, 2.345437207318999e6, 2.339161470352428e6, 2.343428912482287e6, 2.343102690043657e6, 2.3564717461502953e6, 2.3718318490108084e6, 2.368467437736609e6, 2.374245148257786e6, 2.378019310976879e6, 2.349027247918754e6, 2.343960109665487e6], [0.0016459319014481277, 0.0009512828773011611, 0.001344430799331053, 0.0009725283383045189, 0.0006054398744915067, 0.00020530838004203465, 0.001424218014834629, 0.0011264493805745745, 0.0012847185147283246, 0.0012306044456087014, 0.0018416259976506064, 0.002426394580626113, 0.002137690884425786, 0.0022471051351534346, 0.0022933597516428352, 0.0009993762316444284, 0.0007916909286181176], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 522.2180142130555 260.3041818935904 … 138.09053746572528 508.93403093098647; … ; 570.010375864664 283.3599872989167 … 147.3896495243548 540.9630895862134; 584.5876692094154 287.69498264141833 … 147.60868725572777 541.2763171936715], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 517.0569579985373 257.73160783627503 … 136.7257951413384 503.9042597020584; … ; 540.4414845414992 268.6608852745626 … 139.74391408956728 512.901006011763; 552.7581067114585 272.03059915772667 … 139.57170634813937 511.8049662326089]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 73039.9832027548, 73904.55459806437, 74550.66492214068, 74860.98994368347, 75733.46194817973, 76498.30698802973, 76752.97717360531, 76770.55222346167, 76832.24695639806, 76753.7209094448, 77116.31837871073, 77470.21772329362, 78350.52467663818, 79274.68845409717, 80588.01295690308, 81654.55796910566], [72421.99999999999, 72649.8894774634, 72803.25517754252, 72940.94572111928, 72710.54258772895, 72702.86615140147, 72868.78889945275, 72620.39157992031, 72803.90687961855, 72815.5737056593, 72747.56054896949, 72843.14451006791, 73011.58903245578, 73719.9944519607, 74383.01578799875, 75090.41549899522, 74895.51754824647], [64900.920495538005, 65463.58380069047, 66244.58580220747, 66819.37970353474, 67093.95488726921, 67894.40981397845, 68574.0119118085, 68801.39027088766, 68820.29437705256, 68877.64581712022, 68795.1076901447, 69116.52992777732, 69429.13155623838, 70227.98745694225, 71054.07996339002, 72248.67946120119, 73189.74408709395], [64900.920495538005, 65113.954294275485, 65257.432515736095, 65376.59661606725, 65166.62240079795, 65177.50624567498, 65320.467795085126, 65096.93938534276, 65264.429630136976, 65276.827040018914, 65204.34713603357, 65286.6407968125, 65433.289966606164, 66077.50065574021, 66669.6628493077, 67319.97924922906, 67131.3873831831], [40512.94792630535, 40824.03239788954, 41276.85630017064, 41644.53205643153, 41828.26675614179, 42153.1145372568, 42637.05978119024, 42772.9544027586, 42775.302763984306, 42765.75323777293, 42844.15743758258, 43066.60498903848, 43317.256206849874, 43730.28470922329, 44284.15790586211, 44944.83114595922, 45669.05801542291], [40512.94792630535, 40605.998409090615, 40661.763249795484, 40745.3314532069, 40626.71324051809, 40466.29013425863, 40614.11331593337, 40469.94412650092, 40565.1525094133, 40530.02457067646, 40607.90669728412, 40680.19579680292, 40824.22640768151, 41145.81694827942, 41551.5882926151, 41878.759898039774, 41888.75454203204], [14866.888022051655, 14831.604611566769, 15211.00576911382, 15295.649345573385, 15397.787097528764, 15566.314255853744, 15687.263609084435, 15669.020337117292, 15750.731897368316, 15637.02618775778, 15642.378072107484, 15622.019394026775, 15840.50718489764, 15782.116478632286, 16081.03274006844, 16084.617000245411, 16242.236503905659], [14866.888022051655, 14752.391615598352, 14984.336764338868, 14965.381326242183, 14955.472207272285, 14943.403255331954, 14942.969921142334, 14825.35836989662, 14936.90985840524, 14819.546193386268, 14825.924169501519, 14756.371157007008, 14928.841490807676, 14849.390531163595, 15088.746931934691, 14987.347737889246, 14897.76859194183], [15944.236265986641, 16480.326253537703, 16304.974358671863, 16365.767308921733, 16200.179731457636, 16717.347340207896, 17028.989770054704, 16711.829535749035, 16969.27507403667, 16915.385063081492, 16972.90067366923, 17024.281291191233, 17006.69184650376, 17637.104293109565, 17466.90953283722, 18501.85925011351, 18580.023732838825], [15944.236265986641, 16392.307724776372, 16062.00342257074, 16012.392997584171, 15734.815411593463, 16048.375906983532, 16221.036903721631, 15812.019931916417, 16092.492323211924, 16031.074407070315, 16087.000145649741, 16080.930837287478, 16027.908948617833, 16594.748229227534, 16389.107707447933, 17239.68922447474, 17042.043067040657], [15944.236265986641, 16077.396830550611, 16287.41188663517, 16430.883870775844, 16499.10845388045, 16656.691613854287, 16805.763329482794, 16867.79002922028, 16855.55826287006, 16843.53623309841, 16866.05454393889, 16956.508669423452, 17041.404516034243, 17237.56328441258, 17451.66892264518, 17741.753465450078, 18002.5360557812], [15944.236265986641, 15991.530277087604, 16044.702660253863, 16076.103544079053, 16025.157145235651, 15990.147416683962, 16008.401604781538, 15959.58309524833, 15984.651127713909, 15962.981724862706, 15985.730849518139, 16016.913635934417, 16060.623806487876, 16218.82016663914, 16374.807524493704, 16531.436754915892, 16512.357529249493], [3173.2320350842087, 3195.6734388749824, 3239.4323179696917, 3262.6297844857713, 3274.6158797047988, 3286.3649820084283, 3320.156624456499, 3336.6727055259003, 3319.751430881002, 3317.13078379293, 3339.3262423096903, 3366.7937946079596, 3393.1085885941748, 3423.026640226369, 3468.617212680446, 3520.629692598898, 3577.0914071785583], [3173.2320350842087, 3178.6059081620488, 3191.1594482662986, 3192.1821524573247, 3180.5496769258143, 3154.855822847461, 3162.629366666868, 3157.017321963265, 3148.223726902905, 3143.7162213368247, 3165.03011354716, 3180.2328232507043, 3197.8256560191026, 3220.7251446989185, 3254.5849617905296, 3280.457436973027, 3280.993969245264], [34195.564496956766, 33585.5932267943, 33045.16665795331, 33838.299622646606, 35143.50191609041, 37045.16978341042, 37480.28449221372, 38331.850266956266, 38472.51073977291, 38508.01917878777, 38196.4758810455, 38528.18159522106, 38000.0215936233, 38414.58720273696, 38580.23905207248, 36912.507791730444, 38209.41922524605], [34195.564496956766, 33406.21847062016, 32552.739322596582, 33107.65341460305, 34133.97411220627, 35562.747972119665, 35702.00499969126, 36267.960916655094, 36484.68075585312, 36494.87838567592, 36202.81087339029, 36393.2557810697, 35813.013585785455, 36144.27812893163, 36199.63176741769, 34394.39000280641, 35046.595061790234], [33097.63671130043, 32681.573287034145, 31933.44848784514, 32593.583411432664, 33708.745557535294, 35748.48396854936, 36335.29066451346, 36732.677368976234, 37197.268251700756, 36993.93671100211, 36902.19115495981, 37124.768890766696, 36694.25910858102, 37213.56800706376, 37137.650776743176, 35855.80223114492, 37046.17950830772], [33097.63671130043, 32507.026742622576, 31457.58758175901, 31889.81347051706, 32740.4323838613, 34317.951117292534, 34611.33624103596, 34754.89176504904, 35275.32856726531, 35059.94985114979, 34976.081336856005, 35067.60906209906, 34582.4014004367, 35014.2393856413, 34846.05891141669, 33409.77136421434, 33979.64371455823], [29576.147776884856, 29832.560366024612, 30220.449200869112, 30462.778085085938, 30597.63524280934, 30942.145629343304, 31243.398565661413, 31347.805528965215, 31365.90623975429, 31328.16102815797, 31353.588163007687, 31503.15902313488, 31646.350438500875, 32007.921380995656, 32420.36460715799, 32951.4818087734, 33439.7082254273], [34346.71094688275, 34644.482284406586, 35029.152732777125, 35358.28858058128, 35494.48315416016, 35934.54007234499, 36294.64330014879, 36408.78992992064, 36406.727473347535, 36496.59776132361, 36392.52202524461, 36559.46620246759, 36723.58433666893, 37152.22935730184, 37553.29838143983, 38202.26085389388, 38650.773116097225], [28335.32931213966, 28580.98453430934, 28898.329733623596, 29169.86003096077, 29282.21774983674, 29645.255646307698, 29942.33339450796, 30036.502013723297, 30034.800529517684, 30108.94166661571, 30023.08132733133, 30160.8068360612, 30296.20091748811, 30649.824233456442, 30980.697920122497, 31516.078597376974, 31886.09197856269], [978.0617717704338, 986.5411502591456, 994.9838685611778, 998.3130378674734, 1001.8364902997092, 1017.7241122901545, 1035.9700459983446, 1044.794812001784, 1047.6606639507897, 1052.887027638626, 1048.997501892342, 1053.9047021748434, 1059.196781068561, 1067.8367186447108, 1080.4169747921385, 1094.9367985338667, 1099.2627455693898], [0.0019383188997990075, 0.003001013761172233, 0.0035495618718972555, 0.004707412227283658, 0.007245441856263746, 0.004599885156610917, 0.007745490476403605, 0.0030069824280203328, 0.007298597398772699, 0.0015795030127374599, 0.008888227037276764, 0.0037507768998572555, 0.0010348707161047521, 0.006384017690445276, 0.00476744203468793, 0.004987117492730286, 0.005370970865356428], [2.3548476e6, 2.3356051377636087e6, 2.328550675109072e6, 2.3453016895829653e6, 2.3774429034770518e6, 2.3955998123222357e6, 2.397043998735029e6, 2.4303750744700334e6, 2.4426944876150605e6, 2.4419835522614853e6, 2.423497269419403e6, 2.421125565675924e6, 2.417217817077147e6, 2.4319381131654116e6, 2.432387628875018e6, 2.394500675568175e6, 2.399278705855669e6], [0.0016459319014481277, 0.0007892049327658416, 0.0005151467220903291, 0.0012926114911810968, 0.002711158774821874, 0.003367191858471805, 0.003354948088022363, 0.004543277181819791, 0.004872992622991685, 0.004519848939154615, 0.0036445941978719234, 0.003364588558191466, 0.002980490714698553, 0.003505325420423053, 0.0033733992861579433, 0.0017060429000236566, 0.0018992615943938017], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 522.5750015309087 260.4821253754142 … 138.1849359147428 509.2819373411853; … ; 566.5392744983092 287.2534011228603 … 152.8345892876037 561.0806968806262; 584.9727875705987 294.3703596814462 … 155.5022728389872 570.2787767158177], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 519.7840202059906 259.09093608149794 … 137.44691443573345 506.56195193799215; … ; 527.890786205733 267.657390378273 … 142.40843509023875 522.8045848427025; 536.5510605460245 270.00354894514237 … 142.63041150269962 523.0733616251047]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 71880.11691366554, 71648.64763641944, 71434.348411708, 71671.63007753086, 71768.26034157777, 71345.98090448935, 71613.17171288707, 71734.761039546, 71884.47375890019, 72253.8638894035, 72825.88475304272, 71817.3840919521, 72292.52150357212, 72076.2567955142, 72397.04940029584, 72742.8986105553], [72421.99999999999, 72375.00062964245, 72596.00927578499, 72433.39989059405, 72493.79088629448, 72284.4071734579, 71777.44474617575, 71394.49726372007, 71384.68361595787, 71487.68299792151, 71437.72660554678, 71723.45737059393, 70965.96691006733, 71830.2888953247, 71340.60798959556, 71360.58542287738, 72008.50997875378], [64900.920495538005, 64416.61971100136, 64219.01822477217, 64031.355608935555, 64240.94571253247, 64328.65228723695, 63913.50713692882, 64148.51978427006, 64253.83994298366, 64385.8742998892, 64709.66516920566, 65231.283714795514, 64324.284578233885, 64752.619718955044, 64550.28665408553, 64842.721492135475, 65157.31828052821], [64900.920495538005, 64860.11837936804, 65068.14289621876, 64926.87186880951, 64977.867529792944, 64791.29454607324, 64300.02319537179, 63952.639028074205, 63940.270643847296, 64030.47460474201, 63978.742730907965, 64243.82227023722, 63561.700396217, 64338.5966404812, 63891.45192251077, 63914.40817576293, 64499.51119917896], [40512.94792630535, 40210.73845757825, 40030.974102280015, 39925.47218113322, 40086.096919611475, 40178.04497878115, 40217.592187724535, 40418.936110956536, 40523.03964702691, 40591.767619168655, 40843.301867674, 41124.64711283478, 40594.3166979476, 40831.588717308194, 40797.92888292404, 40925.18074562264, 41076.876467782386], [40512.94792630535, 40487.58330041519, 40560.27661533486, 40483.85344889383, 40545.93322901249, 40466.999602012, 40460.80752527695, 40295.51484111787, 40325.28055352733, 40367.707575033084, 40381.959876316316, 40502.1083379957, 40113.05858529824, 40570.514800405894, 40381.52341181553, 40339.28013277248, 40662.177690526354], [14866.888022051655, 14696.613727209116, 14467.111123527122, 14556.377859949382, 14558.555201393658, 14291.094127643368, 14086.225354998673, 14133.129384276119, 14375.149625033979, 14466.064938342022, 14379.70929318777, 14440.102680567707, 14324.580732863153, 14221.191121914697, 14319.920872826182, 14472.52294697987, 14535.09379351808], [14866.888022051655, 14797.797686360635, 14658.399955389219, 14759.95738648737, 14725.559544756008, 14393.87358645951, 14171.411609774032, 14089.973157436965, 14304.996532286495, 14386.214581024193, 14217.284527874792, 14221.510559724788, 14154.758421545874, 14130.261961775477, 14173.764105545239, 14265.328747476415, 14388.352216704136], [15944.236265986641, 16032.881484289774, 15919.8069259313, 15892.266651227523, 15972.985477396605, 16643.0686088299, 15871.826038925803, 15912.152233682094, 16016.379131687727, 15902.984193305547, 16065.41982408799, 15735.592924241464, 15715.772471459759, 16035.88242923021, 15751.412507447607, 15777.391539184791, 16016.29544006134], [15944.236265986641, 16143.265444520297, 16130.30377249101, 16114.529370126442, 16156.215057137717, 16762.763124125737, 15967.810689364636, 15863.563670411748, 15938.216569209255, 15815.20227226014, 15883.954260954662, 15497.389865293739, 15529.45715410342, 15933.350277817513, 15590.645171325965, 15551.51633952611, 15854.600133448284], [15944.236265986641, 15825.097703442245, 15779.473947715902, 15746.460689848202, 15799.552306898517, 15833.430687437853, 15778.410657363354, 15842.19661930457, 15865.149886748179, 15888.465844493992, 15983.067135451858, 16109.093937456892, 15888.817969143729, 15993.545316857233, 15946.366391886659, 16006.513963315974, 16072.20956247838], [15944.236265986641, 15934.05110381838, 15988.115266157705, 15966.684226412777, 15980.792397136334, 15947.302405216966, 15873.830379562494, 15793.821669048064, 15787.725347839763, 15800.764062404493, 15802.531780005756, 15865.236875873465, 15700.451144177654, 15891.283865559439, 15783.609252205937, 15777.358558994287, 15909.94976508142], [3173.2320350842087, 3149.3926966667295, 3139.62532409849, 3131.5616090351555, 3132.1354539509366, 3136.106537428384, 3144.4065401509115, 3161.3893051827235, 3167.9685333861953, 3174.073936572916, 3193.3613541552095, 3216.4913888776987, 3173.439899475313, 3191.431631741542, 3183.8715823907282, 3192.358688249406, 3193.6500161028403], [3173.2320350842087, 3171.075788288146, 3181.1384676420366, 3175.358344447334, 3168.064858865991, 3158.660956973014, 3163.42229560676, 3151.7358427207487, 3152.50832628291, 3156.553557736734, 3157.2910165751646, 3167.800621926721, 3135.8177932087733, 3171.0258727985483, 3151.3752870513526, 3146.6556546205834, 3161.4079648431643], [34195.564496956766, 33626.81012666934, 33136.60732067452, 31781.241473923048, 31210.942688072366, 30017.882962467236, 31108.30712772367, 31747.677370526435, 31219.402278812104, 30346.194716834492, 31234.772768027455, 31573.6492846604, 31044.04035291401, 31899.834501883946, 31564.51755583185, 31520.306344535216, 31649.718416120362], [34195.564496956766, 33858.32562033395, 33574.75028177588, 32225.720873558086, 31568.970178935124, 30233.767186455454, 31296.434188723193, 31650.73422870938, 31067.046464736115, 30178.688591173937, 30881.963087872497, 31095.692090549037, 30676.00370432549, 31695.86950802585, 31242.3532165374, 31069.049527386935, 31330.19315869344], [33097.63671130043, 32686.92688208064, 31905.851835992675, 30721.009754524737, 30156.950208943108, 29361.830336143852, 29937.96980488376, 30598.72338655397, 30399.20964301484, 29422.53770875043, 30269.339863573903, 30048.10724926177, 29861.326163232552, 30695.97526676512, 30357.523023515903, 30298.3521760271, 30535.08550692667], [33097.63671130043, 32911.97142198727, 32327.721349205065, 31150.661188471302, 30502.887123546694, 29572.996325594813, 30119.01926696349, 30505.28863395574, 30250.856503801413, 29260.130021569796, 29927.435147471697, 29593.243482969432, 29507.31095520588, 30499.707652700083, 30047.67791562893, 29864.589324284956, 30226.813220618285], [29576.147776884856, 29355.4459522797, 29276.027227207618, 29223.948785157314, 29315.922556156645, 29375.321208685487, 29243.588418444524, 29377.987785541027, 29421.754492913464, 29442.1666504551, 29589.596525575827, 29854.287767609712, 29448.079572501665, 29633.609058284197, 29571.648548629262, 29686.87372040162, 29816.760160658676], [34346.71094688275, 34090.41043633801, 33975.90427769255, 33845.013143936354, 33967.83121603067, 33999.8720449401, 33728.43922110957, 33824.90642967522, 33881.94215428897, 33989.39395442195, 34164.411467137805, 34413.81683919455, 33928.71167497803, 34166.29739526954, 34027.64935418932, 34200.718248528865, 34381.278202036745], [28335.32931213966, 28123.88666831895, 28029.421445185795, 27921.43895496258, 28022.761335543844, 28049.19435965456, 27825.267868956325, 27904.851329706256, 27951.904628113392, 28040.550150727147, 28184.935995003903, 28390.690291547, 27990.48851966984, 28186.491846880217, 28072.110067833983, 28214.888342073486, 28363.84658588154], [978.0617717704338, 970.763322383628, 967.0867198719469, 962.3936798419992, 957.1919403450855, 953.4590336113916, 941.4794973747075, 945.6255690538518, 950.1432957812035, 954.3136950122254, 955.6571764920526, 963.1791079912027, 947.4933307542427, 952.7132654011801, 950.9887512668871, 955.1295232049558, 959.2799178328174], [0.0019383188997990075, 0.008420778712518118, 0.0026987230992572275, 0.004344856863112145, 0.00140264439363591, 0.0035581329432852193, 0.004101602911587454, 0.00401499741066913, 0.008094521950996914, 0.0016324975154700105, 0.00787687468355358, 0.00252414678187618, 0.0016869566944830439, 0.005137575176657139, 0.010879213280617028, 0.008229209029909867, 0.003745318617516258], [2.3548476e6, 2.356012791771349e6, 2.3419130125414245e6, 2.319431827578101e6, 2.3085070816997276e6, 2.2800857208709377e6, 2.303164918978561e6, 2.2986153809140828e6, 2.294249699793486e6, 2.2799773521179217e6, 2.2892195586596965e6, 2.270733289698109e6, 2.271488055284018e6, 2.3031771952578006e6, 2.2987889760059267e6, 2.2885973157663886e6, 2.2951339046520586e6], [0.0016459319014481277, 0.0017659877500444544, 0.001108532330851665, 0.00018196439603466097, 0.0, 0.0, 0.0010897302420797273, 0.0009068959081413149, 0.0008386972974888684, 0.0002021791179543771, 0.0007666856431592812, 0.0, 7.140604585397453e-5, 0.0015562193202293957, 0.0015032599416867191, 0.0011447352098592639, 0.0014268657674098998], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 514.2174196661936 256.31621487310747 … 135.97493369306204 501.1369524661312; … ; 539.5730764109886 263.06227287078957 … 137.33565668942936 508.8124490669719; 542.799960289989 262.71352670032456 … 137.76434681888202 510.31828900041626], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 517.7577287028365 258.08091318368344 … 136.9111005129709 504.5872044676365; … ; 531.8483409208358 259.29617229200994 … 135.36950665772497 501.5280945374928; 537.3200285331673 260.06125642907597 … 136.37352280576425 505.16628162649033])])

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

Threads.nthreads()
2

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

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

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

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

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

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

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

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

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

model = Bit.init_model(parameters, initial_conditions, T)
+data_vector = Bit.run_n_sims(model, 4)
BeforeIT.DataVector(BeforeIT.Data[BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72198.58404257115, 72375.91443641676, 72765.93733340643, 73939.4649248779, 74176.0027554375, 75356.11768947734, 75996.5767883861, 75462.6340928915, 75804.96362689347, 76193.11233527533, 77668.39364650112, 77546.73376197548, 78332.53689696721, 78633.8979952248, 79186.2754946885, 80166.10490992111], [72421.99999999999, 71997.70066113611, 71973.53152048937, 72392.94474772546, 73163.18125159419, 73419.22517773451, 74263.01247440914, 74654.8790116578, 74182.65805761784, 74261.91376174006, 74028.76995376711, 74874.9066488124, 74226.40547903822, 74998.3676758159, 75051.78706897597, 75301.68241110005, 75819.50465942374], [64900.92049553801, 64701.58350230435, 64865.03170251701, 65243.91892162383, 66305.36137614022, 66512.86189203903, 67580.57722513235, 68153.38021033359, 67643.7700453157, 67968.22727518104, 68314.83652676558, 69660.32648557838, 69537.13768411416, 70250.67748156452, 70512.53571450329, 71013.3660510594, 71905.49220859837], [64900.92049553801, 64521.559571772996, 64504.406475168624, 64909.48362249435, 65609.22745713267, 65834.26718972393, 66600.26290338715, 66950.15182072678, 66496.41538914258, 66584.69829615683, 66374.28453395466, 67154.86439017452, 66559.7572869493, 67260.50691001589, 67300.38763256828, 67529.70642846756, 68006.78176486128], [40512.94792630534, 40396.14317426025, 40446.29675901657, 40463.40534743259, 41094.38681434356, 41286.789179261505, 41878.10406618632, 42298.98228551956, 42158.07831022906, 42231.32874862645, 42431.566244671616, 43078.85140147212, 43102.67857525554, 43480.73435416603, 43663.724492782516, 43923.326643186396, 44336.339517763015], [40512.94792630534, 40283.74604147155, 40221.43053169373, 40255.99305070304, 40662.94060926232, 40865.56243279961, 41270.62619503918, 41552.205879413945, 41443.00480956312, 41371.68786215949, 41226.25471030344, 41529.44107359664, 41257.145748778894, 41630.00754332103, 41674.654783993414, 41768.606651364586, 41932.42648406145], [14866.888022051655, 14784.317704525005, 14876.333035726842, 14870.813587610262, 14824.299773412353, 15045.53555376664, 14969.441410392303, 15080.837822419353, 15173.417654170897, 15243.730325314502, 15478.42174791988, 15564.354618884221, 15725.248930373871, 15925.786284956912, 16002.861348018752, 16162.516515344654, 16419.87366266888], [14866.888022051655, 14743.18222005419, 14793.626208299027, 14794.586943462062, 14668.66080721678, 14892.034104124405, 14752.296804564998, 14814.589953993856, 14916.050399449467, 14933.436184963952, 15038.741530625846, 15004.553904411327, 15051.938962993272, 15247.91641686133, 15273.862456351642, 15369.641746621593, 15529.589332957614], [15944.236265986641, 16131.024936188285, 15737.513218743068, 16021.906148581553, 16475.11528248886, 16175.753197681586, 17109.229488839865, 17549.094650522926, 16026.725199421362, 16369.108253538465, 16570.49588195025, 17149.3830508176, 17039.887361793117, 17321.014253971538, 17255.71745377968, 17225.501673792623, 17692.336587059777], [15944.236265986641, 16086.142410053331, 15650.018552765945, 15939.77909269665, 16302.144555391282, 16010.72074961577, 16861.045418939702, 17239.270415389703, 15754.884381435586, 16035.906454146736, 16099.794194872587, 16532.573866004444, 16310.288354837012, 16583.75749078667, 16469.645599180778, 16380.480686944413, 16733.059412153885], [15944.236265986641, 15894.008399379052, 15940.413727716019, 16009.900871097332, 16259.415613027657, 16335.204070505413, 16585.67084444751, 16752.4598668307, 16649.686275157987, 16707.602471175782, 16792.27729202702, 17090.758640641398, 17063.467991987873, 17209.691631076144, 17290.251204268985, 17410.429120626904, 17595.68659913302], [15944.236265986641, 15849.785341625668, 15851.79101107343, 15927.835353339398, 16088.709497013018, 16168.544831552847, 16345.081442400831, 16456.699990426696, 16367.278966120897, 16367.510444127573, 16315.275679791457, 16476.057990843394, 16332.859330213741, 16477.173236870232, 16502.606189390535, 16556.3362601939, 16641.649779389765], [3173.2320350842083, 3162.2290910897796, 3173.007373802755, 3165.5855827132327, 3199.746682775395, 3222.939901919775, 3266.0475124790846, 3310.715074399232, 3301.66648913991, 3307.5100811887073, 3321.578179270642, 3371.016940545876, 3362.828430104533, 3390.4891575816496, 3412.8391351335913, 3437.849986191815, 3463.662008628703], [3173.2320350842083, 3153.430590660513, 3155.3666438821447, 3149.3590350322665, 3166.1528352812898, 3190.0579918484113, 3218.670687902437, 3252.2653488665696, 3245.664548134742, 3240.183975606866, 3227.2253932175627, 3249.7721001380237, 3218.8417809516027, 3246.175376339949, 3257.3696917106754, 3269.2014647738433, 3275.862511930434], [34195.564496956766, 33561.887672711986, 33931.83890400375, 34079.54090287432, 34659.53768998571, 34784.668726770426, 35269.61034484024, 34233.937033204864, 36131.79918282743, 35944.08554315477, 36946.704064261874, 37755.07155154344, 39022.208846251386, 38170.04007627968, 38779.078851144106, 39672.26965023301, 40829.09514618035], [34195.564496956766, 33468.50598701205, 33743.19061696944, 33904.851803193764, 34295.65037676764, 34429.77959332595, 34757.994351561014, 33629.546688965915, 35518.94173859344, 35212.42479566843, 35897.19558491992, 36397.14078299838, 37351.39000696171, 36545.35922418568, 37012.525677460864, 37726.09118267916, 38615.3446416575], [33097.63671130043, 32674.789445113794, 32616.067481073158, 32669.728653092418, 33113.87463535259, 33116.74390204141, 33870.26762078045, 33166.27500328036, 34027.3862537576, 33983.28924374061, 35234.07560352828, 35879.266976215986, 37343.289951698884, 36565.03807240679, 37067.48415050014, 37797.33898786814, 39111.54000375103], [33097.63671130043, 32583.87599745464, 32434.734389238467, 32502.26614233024, 32766.215097043783, 32778.87170213016, 33378.95029569483, 32580.73392610559, 33450.22327142398, 33291.54153519847, 34233.216066954694, 34588.802978198364, 35744.357594533016, 35008.67299933882, 35378.90144801064, 35943.137856509624, 36990.915211406864], [29576.14777688489, 29485.30745714425, 29566.980167495567, 29737.751037129343, 30237.9680096651, 30378.700708299395, 30841.641024160097, 31147.778186341955, 30929.221788938405, 31046.809224715173, 31202.877955496915, 31780.845895359187, 31748.38843601163, 32033.43160935605, 32136.849795123908, 32371.34856617795, 32746.45274204479], [34346.71094688275, 34241.21829692747, 34321.22163958095, 34525.3189997103, 35073.27964958436, 35138.69128182576, 35729.70103001498, 35987.62179521568, 35708.247519772, 35907.823883334226, 36093.52377862004, 36833.80273503536, 36743.07466439655, 37151.70390629137, 37307.969181815686, 37565.400724185885, 38066.05940219595], [28335.32931213966, 28248.300048082452, 28314.301158455553, 28482.677278077226, 28934.733531390313, 28988.69678112538, 29476.267654142153, 29689.04697469203, 29458.56894993212, 29623.215340475912, 29776.413930416325, 30387.12882667858, 30312.28003654605, 30649.39074719215, 30778.30638190551, 30990.682103693616, 31403.715204194406], [978.0617717704337, 975.0577482328215, 976.8298954405429, 980.848884784324, 994.1137168906718, 995.4699019140412, 1009.235170957308, 1017.9802287762128, 1006.3007366051343, 1013.5941671316257, 1018.4347926486386, 1045.6778551840318, 1045.674583705922, 1065.541965917252, 1067.7167375636534, 1076.6167606955228, 1092.980064357622], [0.0019383188997990075, 0.006180645555652786, 0.007946114819394223, 0.009669780781965676, 0.0039045636325558686, 0.003982444473914271, 0.005433796638021127, 0.0022300593934068136, 0.0064019586199843825, 0.00150950432786634, 0.00414955755712576, 0.007862313949820399, 0.006579503827814248, 0.007177762100617935, 0.007060894078610103, 0.006448279721443795, 0.0070569688236932215], [2.3548476e6, 2.352894107491056e6, 2.3792285946662766e6, 2.376425794859108e6, 2.3891053912846474e6, 2.3935595212524175e6, 2.384242556935767e6, 2.355965660506408e6, 2.377779830661825e6, 2.374199000492918e6, 2.3753975914124493e6, 2.40478903133388e6, 2.428491530398096e6, 2.405756284966814e6, 2.403337670959579e6, 2.4268330831881044e6, 2.4271434154318525e6], [0.0016459319014481277, 0.0015843163821143377, 0.002750253932426547, 0.00265267562678386, 0.0030706984668677144, 0.003118131664968147, 0.0026291141291000593, 0.0013191084002262862, 0.0022790894369903872, 0.0019968757896172617, 0.0019939210262490317, 0.003243763524521515, 0.004124076368032978, 0.0030626397816997625, 0.0028990509575712196, 0.0037939827625059087, 0.0036876236738887774], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 516.4921951219619 257.45009679194186 … 136.57645443105204 503.3538630487975; … ; 554.6248227198777 284.47015177904336 … 149.51126427526503 548.1160374529913; 559.3549406624493 287.30062655300054 … 151.01368172847322 553.6011348186955], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 515.0551212510976 256.7337746274531 … 136.1964478096705 501.9533449166397; … ; 527.4169292198405 270.5150720990762 … 142.17678087528236 521.2274414836482; 529.0267573494109 271.7232079326681 … 142.82573112806574 523.5849224308989]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72772.74728174081, 73433.82663298365, 74195.16669567446, 73848.60463466439, 74388.37811594515, 75876.26111019871, 76479.83271452914, 77004.1104744783, 77915.12310919678, 78691.40508798986, 79214.34798571681, 79236.16086533944, 80240.94582554064, 80544.40470606438, 79659.10050193616, 81323.75002351387], [72421.99999999999, 72792.97440397317, 73316.61377134528, 74031.58285257351, 73818.45383976286, 73990.59941399397, 75244.54745869289, 75791.9911571113, 75980.82154462284, 76331.82199080386, 77192.42172946758, 77739.41821977001, 77887.49623871194, 78341.14659235544, 78296.82670887868, 78030.87292825597, 79481.07532877786], [64900.92049553801, 65218.32812000463, 65818.24239252899, 66512.90501978395, 66194.07870947894, 66673.69912463805, 68031.82083259986, 68588.18233502428, 69053.07841019506, 69880.01166249948, 70586.30128219437, 71066.46756123404, 71092.53047743528, 72003.78955695135, 72275.0409099194, 71473.85778038908, 72958.08552539734], [64900.92049553801, 65236.45549795788, 65713.18529701093, 66366.25885530305, 66167.05309266817, 66317.17330482864, 67465.41667235355, 67971.31641778463, 68135.44881517478, 68459.99079615904, 69241.71109673081, 69743.24707110699, 69882.47713783321, 70299.01473432974, 70258.21811151835, 70012.93611165273, 71304.96429162288], [40512.94792630534, 40688.65694201937, 41016.20570643739, 41361.45728489391, 41221.303444878446, 41497.70110835112, 42112.505108652906, 42355.28493409798, 42606.072224213494, 43028.2810138674, 43333.27332288951, 43554.049608039975, 43536.68605050662, 44008.796207369545, 44181.98347738146, 43770.10574582954, 44773.137600888906], [40512.94792630534, 40699.966319062005, 40950.73687463557, 41270.264469509086, 41204.473674405686, 41275.799487440534, 41761.89420628377, 41974.35150210826, 42039.89047387551, 42153.909996622024, 42507.82287491896, 42743.095963556065, 42795.65584667455, 42966.83594097478, 42949.092697467306, 42875.4472243398, 43758.6451846239], [14866.888022051655, 14871.700175822622, 15001.52522382133, 14818.429241961127, 15238.321176871747, 15344.346903176773, 15721.291068935669, 15931.114621781353, 16299.232575180049, 16638.384612383114, 16987.125068238536, 16913.64100313799, 17067.900795440564, 17315.08008978841, 17392.566145413017, 17241.088684668503, 17407.637917644613], [14866.888022051655, 14875.833752037568, 14977.580241228872, 14785.75790079325, 15232.099698500971, 15262.295720612748, 15590.402250190124, 15787.833938444202, 16082.636030442998, 16300.278582208208, 16663.539312488516, 16598.717845901763, 16777.391086209176, 16905.125103108236, 16907.22952736135, 16888.681793054613, 17013.2068458274], [15944.236265986641, 16093.31751706733, 16233.528587835586, 16775.39598754941, 16173.670034359107, 16354.619069554403, 16560.134929223954, 17156.18606422575, 16588.500635361343, 17221.164354115514, 17139.176100033663, 17362.032812532325, 17129.25898706698, 17502.882883494993, 17681.8060656006, 17929.16033002897, 19160.56998843448], [15944.236265986641, 16097.79064076683, 16207.617118591595, 16738.409969896245, 16167.066673193078, 16267.165635171785, 16422.262251359985, 17001.887377592702, 16368.06007759799, 16871.215747300295, 16812.693941988484, 17038.760834112818, 16837.704910949367, 17088.481443700355, 17188.3982564725, 17562.689292340325, 18726.420094409707], [15944.236265986641, 16019.625035534766, 16165.355182173824, 16329.00608917642, 16260.21255168883, 16351.100485673094, 16661.61356506123, 16789.84823200634, 16887.49020239871, 17076.04297510094, 17240.37177405134, 17352.06951265795, 17369.3848717747, 17575.882079252784, 17618.239180837776, 17442.020727124112, 17834.42718823603], [15944.236265986641, 16024.077676472696, 16139.552529266002, 16293.004261981332, 16253.573857076717, 16263.665866295783, 16522.89601900454, 16638.84430133851, 16663.076444864506, 16729.043357294882, 16911.961951464684, 17028.98304567577, 17073.743655605038, 17159.7522972172, 17126.605194882915, 17085.506795763347, 17430.325709081764], [3173.2320350842083, 3186.16230506049, 3212.590834754315, 3237.749091505615, 3227.237247139945, 3250.3777221420282, 3296.6495304613995, 3317.7768014762114, 3339.9431531999167, 3370.62656846147, 3394.6342470219806, 3412.42447191376, 3411.376139982013, 3444.0000476110226, 3440.635160366936, 3416.54320323701, 3506.9172158198676], [3173.2320350842083, 3187.047896120386, 3207.4629940536443, 3230.6105747669435, 3225.9196356722914, 3232.996901859196, 3269.2030210768894, 3287.9375002997763, 3295.5594594729614, 3302.1325893394596, 3329.9702568585512, 3348.886911412988, 3353.311712353643, 3362.4592758488648, 3344.624817860776, 3346.7092506173003, 3427.4557103155503], [34195.564496956766, 34483.321539430886, 34652.520256550764, 35702.95331251767, 36537.50081384904, 36746.8390387644, 37851.20201509282, 37371.51553951573, 38442.3480675065, 37594.870490742695, 38053.32538991285, 38091.000085302265, 38245.0125372994, 38602.48595466803, 38158.63944571362, 36623.038985049556, 36512.10841787893], [34195.564496956766, 34492.90614885969, 34597.20894773732, 35624.23624005827, 36522.58333912219, 36550.34181293612, 37536.06891959002, 37035.40495271941, 37931.49703666229, 36830.91096506231, 37328.452051685694, 37381.765568209026, 37594.050968860356, 37688.52647349296, 37093.829062748955, 35874.466109738496, 35684.79858263861], [33097.63671130043, 33364.24889259952, 33469.95314166161, 34463.069131246986, 35322.190835294336, 35555.128003901475, 36368.87201170674, 36334.26844509248, 36932.043027782616, 36567.577361912154, 36821.49479308406, 36706.375523295304, 36742.69750497456, 37188.29930978089, 36870.590428044576, 35904.29324364062, 36529.70390133344], [33097.63671130043, 33373.52245675301, 33416.52941084827, 34387.085727682825, 35307.76954545936, 35365.003242167106, 36066.080168731074, 36007.48661375406, 36441.262073955484, 35824.49330038926, 36120.08645161356, 36022.92199200953, 36117.30657398212, 36307.82236892107, 35841.72283517159, 35170.411491217616, 35701.99537872202], [29576.14777688489, 29720.79433559398, 30004.363665266348, 30322.028103810804, 30222.53536217489, 30358.721481144446, 30955.622163346015, 31198.767998364692, 31358.143962031674, 31695.377398217537, 31987.016833115802, 32197.37721784624, 32250.480225257288, 32639.432086114288, 32729.86547536555, 32387.363356505542, 33065.828004584444], [34346.71094688275, 34514.688655775804, 34821.877128183594, 35189.46167413815, 34973.42440517793, 35301.956692876425, 36042.297837984326, 36342.48691000899, 36640.65238656123, 37114.86029212535, 37521.204159355795, 37783.402105207635, 37759.788777689435, 38268.201646922236, 38442.96243075901, 37998.16678031559, 38783.129957509474], [28335.32931213966, 28473.90746321632, 28727.331627760897, 29030.581309390775, 28852.3550108334, 29123.38738351106, 29734.153584164193, 29981.803387514476, 30227.78376626703, 30618.995524136928, 30954.220847742134, 31170.52875425953, 31151.048245269354, 31570.478393865542, 31714.652442103255, 31347.70518909225, 31995.283647422355], [978.0617717704337, 982.8451286348501, 992.0015990789581, 1001.4152418352214, 998.118942126122, 1013.0209506171403, 1033.9008312695246, 1046.9274266505315, 1054.2820616022343, 1069.773972156737, 1078.0802897228257, 1085.6882381803607, 1082.261474488751, 1096.1558239145304, 1102.2130037947263, 1088.3276435680332, 1109.127563303295], [0.0019383188997990075, 0.0014069533667375733, 0.002560565448267438, -0.0038228227379891733, 0.0027837412520197446, 0.004448931773406661, 0.004690294466956013, -0.0006529811073571201, 0.0025273241518457557, 0.0007150184691735451, -0.0009145086929540636, 0.00799084053675192, 0.004768988790551987, 0.00909885776035213, 0.011434551012977634, 0.008737959284945696, 0.0037317985249945007], [2.3548476e6, 2.3527436703879554e6, 2.347390582302063e6, 2.3666762673779866e6, 2.3776906490034983e6, 2.3775990570210135e6, 2.4116404151976695e6, 2.410756842916506e6, 2.4181327658219687e6, 2.4030600977312224e6, 2.4062620075604133e6, 2.401294090708604e6, 2.39484019302477e6, 2.402293496174172e6, 2.3971064000319294e6, 2.3859269109116523e6, 2.3903488745396766e6], [0.0016459319014481277, 0.0014684859046952513, 0.0011947354654637146, 0.001826664383494229, 0.002213073771090767, 0.002147538242092476, 0.0035044539711421305, 0.003193986675593958, 0.003316463783367312, 0.0024742482375731054, 0.0024011434244495936, 0.0022036815243120515, 0.0018856154787038684, 0.002260937446037015, 0.002143572237155667, 0.0017266703850274824, 0.0018667726059342696], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 520.617203312895 259.50624356057307 … 137.66723372750138 507.37394084982554; … ; 558.260447342666 281.7796981446371 … 149.1636484085019 547.8520095078919; 572.7071144169116 288.5908384653677 … 152.73227326527802 561.5957408429226], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 520.7619084147508 259.57837309676137 … 137.70549821617354 507.5149649983216; … ; 546.8496349190884 276.0201368223088 … 146.11475175012725 536.6539449734416; 559.7304267097395 282.0518011605337 … 149.27158810339066 548.8708202628522]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 73701.64294836906, 74084.2620492551, 74259.46552132671, 74189.68126230803, 74170.45474971528, 73286.11679263882, 74284.76433379026, 73620.34709216804, 74391.36335675046, 74725.69602532736, 75291.32536901008, 76402.6690809726, 76458.23825698004, 77569.27048459591, 77448.36574221907, 77319.67065260714], [72421.99999999999, 73386.98835310769, 73417.77812480369, 73851.22505437836, 74147.83089787229, 74509.7862267452, 73697.98018486974, 74545.01576001494, 74298.09055679399, 75190.12038841755, 74989.27044742198, 75228.20298938129, 75745.97614456817, 75873.95840896493, 77146.44618420114, 76545.49818935, 76133.52595391987], [64900.92049553801, 66066.22179732806, 66407.2934699324, 66587.65926098796, 66525.57317931904, 66516.94652743678, 65711.58144090505, 66656.73493984612, 66097.22718585945, 66828.25418693977, 67121.49465129343, 67630.81509556783, 68657.68014183502, 68685.4065228089, 69708.71435904913, 69567.33271250651, 69441.40824428672], [64900.92049553801, 65784.16512330454, 65809.87382452095, 66221.59445135237, 66488.04613466164, 66821.26303444542, 66080.87641825643, 66890.26210374245, 66705.71336562479, 67545.80439085078, 67358.24733616428, 67574.11509773748, 68067.5566013698, 68160.52523076136, 69328.7373630538, 68756.33964836842, 68376.12230135492], [40512.94792630534, 41114.0553982388, 41355.37758435792, 41300.477160517046, 41281.99087940034, 41194.93930843698, 40769.333239164276, 40924.749606754944, 40320.43789638457, 40441.11740079903, 40700.64449919976, 41010.513616363496, 41442.66727202568, 41672.08111564353, 42126.14916320569, 42316.02079120663, 42298.81803257127], [40512.94792630534, 40938.52706612336, 40983.33238086684, 41073.4283127665, 41258.7037276894, 41383.40707028179, 40998.45434179268, 41068.12657710091, 40691.62486241345, 40875.342900034135, 40844.20487298501, 40976.13141899117, 41086.46104008825, 41353.63070695264, 41896.522670175844, 41822.714550683995, 41649.92081991377], [14866.888022051655, 14946.966775762561, 15129.898683005995, 14992.469723895952, 15086.206830370184, 15188.010273671203, 15138.974358456928, 15466.977218006845, 15329.168949535619, 15646.589913781534, 15563.82924298559, 15640.179609417299, 15747.924325120322, 15542.983976742878, 15423.375098408298, 15483.225783912898, 15461.886271581112], [14866.888022051655, 14883.15365582288, 14993.785641290044, 14910.048812328372, 15077.696708166339, 15257.495757840088, 15224.054447388586, 15521.164680489495, 15470.28814394378, 15814.590917544703, 15618.726387027047, 15627.067270778964, 15612.568443032264, 15424.207340991617, 15339.303432593077, 15302.727434592385, 15224.688747614118], [15944.236265986641, 16513.719771358636, 16312.523297595995, 16609.660748156068, 16484.009074911122, 16257.37319432979, 15770.82921438202, 16145.880045338627, 16092.864752100966, 16288.7685242641, 16389.057240982504, 16453.570619339018, 16818.524385950474, 16992.549505518582, 17439.92370331086, 16946.216731121298, 16938.994671136992], [15944.236265986641, 16443.217709219272, 16165.77101520353, 16518.34934950709, 16474.71045311612, 16331.751037600054, 15859.46028808061, 16202.4459959361, 16241.014473525021, 16463.664746202663, 16446.865150720863, 16439.77635385369, 16673.966528249286, 16862.695555587074, 17344.859981649905, 16748.663314935056, 16679.13713992047], [15944.236265986641, 16221.987173603042, 16319.242648663934, 16351.160782201981, 16349.500029008148, 16344.27600158878, 16159.008032684349, 16300.453604518974, 16135.178301857379, 16242.96428522524, 16346.132403446307, 16488.738004832903, 16745.937516465576, 16779.148474772417, 17071.855434819885, 17073.0825446898, 17029.094547524448], [15944.236265986641, 16152.730606120229, 16172.429917002679, 16261.270483827111, 16340.27728370291, 16419.051427131457, 16249.8206470607, 16357.561092665823, 16283.71755868768, 16417.368696604597, 16403.78890757925, 16474.914255883887, 16602.00355430416, 16650.925296418347, 16978.798025802455, 16874.050168611484, 16767.854813178667], [3173.2320350842083, 3221.6785238755874, 3240.01469873828, 3238.7831788250737, 3235.2264687121306, 3228.686859002644, 3196.038688576095, 3167.4297381298998, 3105.487944134063, 3082.1636203012654, 3115.5629979033574, 3152.9360146706495, 3207.193530915119, 3218.3885128311913, 3288.4098173167054, 3311.9017620914096, 3302.538990226135], [3173.2320350842083, 3207.924204277813, 3210.8665685961396, 3220.978009504434, 3233.401478977108, 3243.4581730579444, 3214.0002260894476, 3178.5266045493786, 3134.0768362235935, 3115.2575139117093, 3126.5522928895643, 3150.2926713228235, 3179.6271989692873, 3193.7941774920705, 3270.4849409870462, 3273.292701582177, 3251.8754387339786], [34195.564496956766, 34275.1534657182, 34522.7262109474, 33839.53508402748, 33430.75449397778, 33143.64356114946, 33212.74304992572, 33549.597546750905, 33271.869486665426, 32905.95328659508, 33404.61064451725, 34108.088558307245, 33214.15182285335, 32767.11964098922, 32918.76548454308, 34196.84984474488, 35477.218005365045], [34195.564496956766, 34128.82247349271, 34212.14955928898, 33653.50267042166, 33411.89622103285, 33295.27646621537, 33399.39658836531, 33667.13619265103, 33578.16785377646, 33259.272010508415, 33522.43625758269, 34079.493182892686, 32928.67097312527, 32516.719316312898, 32739.3277523212, 33798.19422639493, 34932.96951457279], [33097.63671130043, 33148.25246270885, 33236.26372665173, 32482.677195269876, 32093.280016351433, 31613.511587871988, 31605.76306928984, 31802.44008306092, 31393.993992518215, 30891.0657686894, 31332.445602357544, 31921.0270344174, 30820.598724977564, 30516.495981914297, 30338.942964872338, 31493.94740876629, 32857.24632804735], [33097.63671130043, 33006.732551550456, 32937.26047184546, 32304.10409064506, 32075.17621213264, 31758.144105191925, 31783.38548075698, 31913.857686162544, 31683.004776864313, 31222.750185872417, 31442.962220893358, 31894.265237135583, 30555.69083992716, 30283.294510879397, 30173.567652539245, 31126.80133725608, 32353.190268101367], [29576.14777688489, 30107.189913778915, 30294.584928379772, 30364.890816481333, 30367.741189808272, 30355.64635425296, 29975.630931301166, 30336.802266466446, 30099.78130989168, 30365.616628763426, 30531.529265670648, 30786.732017080896, 31261.0734659282, 31297.682454631, 31803.058052345634, 31803.1113046439, 31734.096210727694], [34346.71094688275, 34963.40893318271, 35114.783729535324, 35223.3190961669, 35161.53784041667, 35170.118265590165, 34759.739033886224, 35327.24044949202, 35013.53557592046, 35463.949381130085, 35588.58921743829, 35834.65605726222, 36373.51893316653, 36372.3443679678, 36875.72684810924, 36746.034415168215, 36688.49179617502], [28335.32931213966, 28844.092452661822, 28968.973542756372, 29058.51298542021, 29007.544721538765, 29014.623395630882, 28676.06897942559, 29144.245962111465, 28885.44590078332, 29257.028015795324, 29359.853314341843, 29562.8533905352, 30007.404167651785, 30006.435175547827, 30421.715356722314, 30314.721769989665, 30267.250294156744], [978.0617717704337, 995.6229503665629, 997.9248120175176, 999.4493483395805, 996.2941490942443, 991.1819075935825, 976.2114757174894, 992.6922238878021, 983.9103000472145, 998.6881770461633, 1001.3761681844275, 1009.4270212247047, 1023.0877427402538, 1015.3797002101056, 1029.9294585942775, 1018.186992694436, 1018.8202373839886], [0.0019383188997990075, -6.645329095977814e-5, 0.005685648830358936, 0.002034856836269583, 0.003714992268320838, 0.008248899441464452, 0.0018965836066504593, 0.007305187945280567, -0.0008370156979057297, 0.0037868618094389905, 0.002144161604355821, 0.0021256185356599566, 0.0035887085647836603, 0.0029790570184615728, 0.004734840638125792, 0.005088520930401463, 0.005069466306027781], [2.3548476e6, 2.356945720645812e6, 2.343492159867911e6, 2.331692283652736e6, 2.3292497549017644e6, 2.3339206129236366e6, 2.3484289783377377e6, 2.3418357162545905e6, 2.3261930018833615e6, 2.326564830981358e6, 2.3296739507075413e6, 2.3289104202449406e6, 2.297820149821647e6, 2.296739644465868e6, 2.296338451309395e6, 2.321139023502643e6, 2.3269747535862597e6], [0.0016459319014481277, 0.0016101900840634223, 0.001060013878813396, 0.0005329749572180287, 0.0004757334734204821, 0.0008270511835557971, 0.0014207802759618024, 0.0012070876604184494, 0.0004415024270185969, 0.0005114399397227381, 0.000654224640446107, 0.0006223324876288126, 0.0, 2.2111654919754752e-5, 0.00011194848900406228, 0.0012827243459926517, 0.001551387752360633], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 527.3856692904748 262.8800452124053 … 139.4570247328364 513.9702331634481; … ; 588.6835291492393 287.29106552633664 … 145.54077864249555 530.7872996654155; 584.1987960449281 286.38538931598106 … 144.92182510677583 528.8459739285485], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 525.1341004287932 261.75773082537603 … 138.86164053353937 511.7759388543538; … ; 581.8208503530666 283.9419208567607 … 143.8441121551356 524.5995560539104; 575.2367259913508 281.9920116870868 … 142.69861006817567 520.7330598007087]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72421.99999999999, 72757.81550926217, 72282.56339181474, 71454.98111336528, 72458.8414801945, 73375.6698532591, 73885.7316147331, 73990.99300027933, 75578.55635431729, 77209.83993987275, 76013.82304510819, 77643.81683257988, 78102.19533967086, 78777.67708676611, 80440.44136607683, 81309.01187522615, 81347.86205600032], [72421.99999999999, 72803.00297717264, 72370.26952724502, 71848.6328692618, 72462.95535749014, 72942.98786736537, 72982.92427483357, 72585.66010218054, 73631.08849334891, 74554.36470308562, 73422.39643921137, 75091.07194640778, 75625.64171479298, 76010.69278639852, 76822.73269029158, 76993.39244675657, 76578.78734074374], [64900.92049553801, 65207.32413975091, 64790.566804238915, 64017.10458997068, 64920.80472151117, 65745.71564892864, 66199.17413513172, 66293.71942078587, 67739.74327383316, 69217.158450531, 68123.88414492169, 69611.23432124118, 70027.47995740549, 70627.05522596175, 72130.90049544229, 72910.2129730425, 72929.99230750788], [64900.92049553801, 65247.822247706325, 64869.18230928037, 64369.78043197073, 64924.49062400565, 65358.0260119158, 65390.28858986677, 65034.58312511529, 65994.26176029928, 66836.57521956855, 65801.43753194944, 67322.58173198423, 67806.96863150316, 68146.35307506955, 68886.90307221815, 69040.37463183659, 68654.42103240591], [40512.94792630534, 40685.91744700377, 40419.94552064927, 40180.39219633063, 40677.2067133781, 41156.441381919976, 41408.57053215276, 41444.093148174215, 42095.79087505635, 42895.014379254055, 42330.627167564155, 42996.281963655565, 43248.87771404043, 43678.38891991175, 44530.75428052143, 45007.7921597605, 45171.36566335746], [40512.94792630534, 40711.18612193821, 40468.99022866144, 40401.74949982785, 40679.516176705554, 40913.74988997097, 40902.60056211694, 40656.93318219312, 41011.08902620268, 41419.72769876823, 40887.511835485246, 41582.6660005995, 41877.49289689425, 42144.23075637986, 42528.039062105825, 42618.92408969648, 42523.163087481225], [14866.888022051655, 14674.430433265174, 14372.892713847843, 14456.27523086171, 14791.162689918632, 15202.13123668507, 15374.845231589485, 15560.173950932249, 16265.642068889772, 16658.482026363024, 16527.32374295466, 16974.245092028756, 16890.610641413336, 17020.96546355788, 17325.33631606767, 17266.13010719522, 17388.46387130743], [14866.888022051655, 14683.544235674806, 14390.332478235474, 14535.916118588277, 14792.002463604254, 15112.487239615473, 15186.980500178563, 15264.63494724155, 15846.517694263242, 16085.547455615055, 15963.882190405086, 16416.172097642844, 16355.02386528662, 16423.12168399467, 16546.150890961708, 16349.699753085855, 16369.05314200374], [15944.236265986641, 16453.535922768366, 16415.621063155544, 15714.4158380449, 16175.18937490134, 16104.490086083319, 16357.896639521501, 16192.041572238672, 16463.136013123043, 17158.00693848788, 16532.54984492434, 16926.858514147654, 17571.509444019033, 17425.80463987825, 17822.497950499124, 18358.29649192836, 18325.19313830657], [15944.236265986641, 16463.754668635313, 16435.539430969013, 15800.987932686165, 16176.107727209532, 16009.525055219707, 16158.02003508472, 15884.501319213996, 16038.92272005613, 16567.892225476455, 15968.93012662613, 16370.343478261137, 17014.331950878095, 16813.741303627437, 17020.953300013425, 17383.89747776064, 17250.866007398974], [15944.236265986641, 16017.845174675153, 15931.24489746559, 15774.911600915468, 15975.10250100838, 16164.231195159286, 16279.68433811774, 16297.742793076246, 16614.54284143251, 16962.529665039616, 16715.814565577624, 17017.53228001737, 17142.16269641696, 17308.778414641783, 17664.012818895124, 17849.549052287566, 17874.949460451448], [15944.236265986641, 16027.793327457894, 15950.575533472194, 15861.816972018458, 15976.009493310936, 16068.91388265019, 16080.76340723571, 15988.19492538134, 16186.428178105474, 16379.137994834658, 16145.947074782282, 16458.036105366988, 16598.599420385784, 16700.825503322696, 16869.595839837497, 16902.15270712371, 16827.01817677933], [3173.2320350842083, 3186.547773710893, 3171.0426390697735, 3146.6656344140474, 3186.0978291540823, 3224.066464639068, 3243.0813203568973, 3248.4217101947465, 3298.511270854936, 3343.7312950595556, 3312.157373008866, 3345.775918527031, 3384.8965256141696, 3421.16952865669, 3487.45346929482, 3525.2968549600364, 3538.108973264755], [3173.2320350842083, 3188.526832926208, 3174.8903152188623, 3164.000891283562, 3186.2787210266697, 3205.054774751083, 3203.454215692403, 3186.723472191392, 3213.5169947150594, 3228.730465380132, 3199.2409007740807, 3235.7747269999036, 3277.5643600599396, 3301.00449301769, 3330.6095925332684, 3338.185497344043, 3330.6848859223815], [34195.564496956766, 33964.19188124731, 32472.461329128368, 33310.195281692664, 33656.61312728296, 32780.99007137434, 33317.494815492086, 33247.356283147994, 32699.02255309066, 33051.800458941994, 33773.22442214895, 35095.44461406841, 34829.96850619174, 35526.68111113076, 36088.72347482099, 37269.81077030911, 36553.45262826427], [34195.564496956766, 33985.28591520084, 32511.86272771536, 33493.704068030376, 33658.5239938351, 32587.68697905494, 32910.389435209196, 32615.87937406868, 31856.451609969077, 31915.051079351273, 32621.843938594713, 33941.58947889803, 33725.540079010534, 34278.84323987197, 34465.67807880285, 35291.64973076094, 34410.481168672944], [33097.63671130043, 33020.2601750225, 31398.357234965948, 32206.297433564454, 32841.33042528631, 31868.38292280403, 32573.075604022833, 32452.67195421341, 31945.03515584244, 32553.463863174, 33149.902132483716, 34349.013351320114, 34438.77096599329, 34874.16304771215, 35326.87065583175, 36593.017653967196, 36090.613245234854], [33097.63671130043, 33040.7679642766, 31436.45533833583, 32383.724749870613, 32843.195003864064, 31680.4612964961, 32175.066257756116, 31836.288720536588, 31121.892557142146, 31433.85375612518, 32019.77165189969, 33219.699108993394, 33346.74707727617, 33649.24419747498, 33738.088641591756, 34650.77860454754, 33974.776064812555], [29576.14777688489, 29715.779686439033, 29569.2029449907, 29268.783194230044, 29638.988946119414, 29979.463893216976, 30149.2140928933, 30176.320637176563, 30749.24407768423, 31420.712702267458, 30907.72919690955, 31517.667677374116, 31726.41970205483, 32045.095474969305, 32721.305149436306, 33072.61657669953, 33120.676093877526], [34346.71094688275, 34508.8651554902, 34246.80828703379, 33793.53647180081, 34309.665426132764, 34776.52175622115, 35057.877145856764, 35122.52398844035, 35972.84789067884, 36758.59004602683, 36193.514165461085, 37040.63134853996, 37238.38852610544, 37516.763313637704, 38313.3115055494, 38732.13836728397, 38704.345456711664], [28335.32931213966, 28469.10319539001, 28252.911674818966, 27878.971760385815, 28304.767520310048, 28689.914379785743, 28922.026782961686, 28975.35909697652, 29676.85880765255, 30325.079906920175, 29858.90394069914, 30557.75817409672, 30720.9037736513, 30950.55724146434, 31607.693098394353, 31953.216635433237, 31930.288056483503], [978.0617717704337, 982.679297821645, 974.5555722143546, 954.7849239397726, 972.1503492590944, 989.7299994904665, 992.0828963817763, 994.874795169197, 1017.6513054701431, 1037.8557022367286, 1022.6407825511202, 1052.9352953271389, 1062.6717292452383, 1065.1964373546768, 1096.283840456659, 1105.458029058973, 1104.9707569186255], [0.0019383188997990075, 0.002593162369883162, 0.0007960634663217725, 0.009514240510487104, 0.005865386634583247, 0.009307786411442365, 0.0077406036784704035, 0.008302798427290758, 0.0073470339398029605, 0.006672638941733311, 0.006137070850996462, 0.007708276610510767, 0.006076497224037913, 0.009275406628220795, 0.006121258929647988, 0.007685144847510816, 0.005661766352824227], [2.3548476e6, 2.349349551516748e6, 2.3416735379990647e6, 2.349667049485377e6, 2.3679280617124173e6, 2.343476263757142e6, 2.353597335235232e6, 2.359896875352744e6, 2.348868446187758e6, 2.345275692024648e6, 2.3441252874589837e6, 2.375665015242386e6, 2.3796449639199e6, 2.391362483637416e6, 2.3927367769688917e6, 2.3994282586308657e6, 2.3673587551640784e6], [0.0016459319014481277, 0.0013539376914363703, 0.0009505988183734818, 0.0014343164957022537, 0.0022271568524103572, 0.001260180449456914, 0.001769316592966746, 0.002092127487716377, 0.0016461784672773066, 0.0015269824482565014, 0.0015065213432487042, 0.0028952913717882663, 0.002985169782438112, 0.003461351018956601, 0.0034020937023561525, 0.00360165645882535, 0.0021503135894766125], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 520.5293620328416 259.4624582986359 … 137.6440057858293 507.28833404285444; … ; 572.685482498458 285.69260837946626 … 152.69489929027293 564.4793796816422; 575.6024762173496 292.225540101258 … 153.1375782998871 565.7096214763386], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086171; 520.8526455684826 259.6236018325128 … 137.72949191609558 507.6033940148377; … ; 542.289188930588 270.5289685459804 … 144.59034779213712 534.5186395159287; 541.8573826649537 275.09361555861074 … 144.1597817829628 532.5445033801451])])

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/previews/PR36/examples/change_expectations-03790606.svg b/previews/PR36/examples/change_expectations-3ca0c4f8.svg similarity index 86% rename from previews/PR36/examples/change_expectations-03790606.svg rename to previews/PR36/examples/change_expectations-3ca0c4f8.svg index d5db7ac..761e0de 100644 --- a/previews/PR36/examples/change_expectations-03790606.svg +++ b/previews/PR36/examples/change_expectations-3ca0c4f8.svg @@ -1,284 +1,284 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR36/examples/change_expectations-2961dfbf.svg b/previews/PR36/examples/change_expectations-ad822ad4.svg similarity index 86% rename from previews/PR36/examples/change_expectations-2961dfbf.svg rename to previews/PR36/examples/change_expectations-ad822ad4.svg index 155d7c1..808cd3f 100644 --- a/previews/PR36/examples/change_expectations-2961dfbf.svg +++ b/previews/PR36/examples/change_expectations-ad822ad4.svg @@ -1,82 +1,82 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR36/examples/change_expectations.html b/previews/PR36/examples/change_expectations.html index 15c2f88..1694f5b 100644 --- a/previews/PR36/examples/change_expectations.html +++ b/previews/PR36/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/previews/PR36/examples/get_parameters_and_initial_conditions.html b/previews/PR36/examples/get_parameters_and_initial_conditions.html index b981553..7455d6e 100644 --- a/previews/PR36/examples/get_parameters_and_initial_conditions.html +++ b/previews/PR36/examples/get_parameters_and_initial_conditions.html @@ -31,4 +31,4 @@ ".jld2", init_conds, ) -end +end diff --git a/previews/PR36/examples/multithreading_speedup.html b/previews/PR36/examples/multithreading_speedup.html index d683127..0381cc9 100644 --- a/previews/PR36/examples/multithreading_speedup.html +++ b/previews/PR36/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.046511 seconds (3.78 M allocations: 6.420 GiB, 14.85% gc time)
-  2.902325 seconds (3.65 M allocations: 6.150 GiB, 18.43% gc time)

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

+@time data = Bit.run_one_sim!(model; multi_threading = true);
  5.183762 seconds (3.96 M allocations: 6.422 GiB, 17.20% gc time)
+  2.628658 seconds (3.83 M allocations: 6.152 GiB, 8.49% gc time)

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

diff --git a/previews/PR36/examples/scenario_analysis_via_overload-d0c662c1.svg b/previews/PR36/examples/scenario_analysis_via_overload-8554c64d.svg similarity index 86% rename from previews/PR36/examples/scenario_analysis_via_overload-d0c662c1.svg rename to previews/PR36/examples/scenario_analysis_via_overload-8554c64d.svg index 9d6edd5..7e7089c 100644 --- a/previews/PR36/examples/scenario_analysis_via_overload-d0c662c1.svg +++ b/previews/PR36/examples/scenario_analysis_via_overload-8554c64d.svg @@ -1,46 +1,46 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR36/examples/scenario_analysis_via_overload.html b/previews/PR36/examples/scenario_analysis_via_overload.html index 60ac9fb..b6a6620 100644 --- a/previews/PR36/examples/scenario_analysis_via_overload.html +++ b/previews/PR36/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/previews/PR36/examples/scenario_analysis_via_shock-1f49fe96.svg b/previews/PR36/examples/scenario_analysis_via_shock-0beb5639.svg similarity index 86% rename from previews/PR36/examples/scenario_analysis_via_shock-1f49fe96.svg rename to previews/PR36/examples/scenario_analysis_via_shock-0beb5639.svg index 6f999ee..107b614 100644 --- a/previews/PR36/examples/scenario_analysis_via_shock-1f49fe96.svg +++ b/previews/PR36/examples/scenario_analysis_via_shock-0beb5639.svg @@ -1,48 +1,48 @@ - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/previews/PR36/examples/scenario_analysis_via_shock.html b/previews/PR36/examples/scenario_analysis_via_shock.html index cb69efd..4193b36 100644 --- a/previews/PR36/examples/scenario_analysis_via_shock.html +++ b/previews/PR36/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/previews/PR36/index.html b/previews/PR36/index.html index e08bc45..c526123 100644 --- a/previews/PR36/index.html +++ b/previews/PR36/index.html @@ -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.