diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json
index 0aa9966..59881ad 100644
--- a/dev/.documenter-siteinfo.json
+++ b/dev/.documenter-siteinfo.json
@@ -1 +1 @@
-{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-12-06T01:09:53","documenter_version":"1.8.0"}}
\ No newline at end of file
+{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-12-08T15:03:53","documenter_version":"1.8.0"}}
\ No newline at end of file
diff --git a/dev/api.html b/dev/api.html
index 20542fd..9b75b5d 100644
--- a/dev/api.html
+++ b/dev/api.html
@@ -1,9 +1,9 @@
-
API · BeforeIT.jl In this page we document the functions which constitute the bulk of BeforeIT.jl functionality.
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 + predictionspi_ [vector]
: inflation data + predictionsP_bar
: Global price indexP_bar_g [vector]
: Producer price index for principal good gP_bar_HH
: Consumer price indexP_bar_CF
: Capital price indexP_bar_h
: CPI_hP_bar_CF_h
: Capital price index _hY_e
: Expected GDPgamma_e
: Expected growthpi_e
: Expected inflationt
: Time indexsource This is a Bank type. It represents the bank of the model.
Fields
E_k
: equity capital (common equity) of the bankPi_k
: Profits of the bankPi_e_k
: Expected profits of the bankD_k
: Residual and balancing item on the bank’s balance sheetr
: Rate for loans and morgagesHousehold fields (bank' owner)
Y_h
: Net disposable income of bank owner (investor)C_d_h
: Consumption budgetI_d_h
: Investment budgetC_h
: Realised consumptionI_h
: Realised investmentK_h
: Capital stockD_h
: Depositssource This is a CentralBank type. It represents the central bank of the model.
Fields
r_bar
: Nominal interest rater_G
: Interest rate on government bondsrho
: Parameter for gradual adjustment of the policy rater_star
: Real equilibrium interest ratepi_star
: Inflation target by CBxi_pi
: Weight the CB puts on inflation targetingxi_gamma
: Weight placed on economicE_CB
: Central bank equitysource 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 i
th firm.
Fields
G_i
: Principal productalpha_bar_i
: Average productivity of laborbeta_i
: Productivity of intermediate consumptionkappa_i
: Productivity of capitalw_i
: Wagesw_bar_i
: Average wage ratedelta_i
: Depreciation rate for capitaltau_Y_i
: Net tax rate on productstau_K_i
: Net tax rate on productionN_i
: Number of persons employedY_i
: Production of goodsQ_i
: Sales of goodsQ_d_i
: Demand for goodsP_i
: PriceS_i
: InventoriesK_i
: Capital, in real termsM_i
: Intermediate goods/services and raw materials, in real termsL_i
: Outstanding loanspi_bar_i
: Operating marginD_i
: Deposits of the firmPi_i
: ProfitsV_i
: VacanciesI_i
: InvestmentsE_i
: EquityP_bar_i
: Price indexP_CF_i
: Price indexDS_i
: Differnece in stock of final goodsDM_i
: Difference in stock of intermediate goodsDL_i
: Obtained loansDL_d_i
: Target loansK_e_i
: Expected capital L_e_i
: Expected loansQ_s_i
: Expected salesI_d_i
: Desired investmentsDM_d_i
: Desired materialsN_d_i
: Desired employmentPi_e_i
: Expected profitsHousehold fields (firms' owners)
Y_h
: Net disposable income of firm owner (investor)C_d_h
: Consumption budgetI_d_h
: Investment budgetC_h
: Realised consumptionI_h
: Realised investmentK_h
: Capital stockD_h
: Deposits of the owner of the firmssource This is a Government type. It represents the government of the model.
Fields
alpha_G
: Autoregressive coefficient for government consumptionbeta_G
: Scalar constant for government consumptionsigma_G
: Variance coefficient for government consumptionY_G
: Government revenuesC_G
: Consumption demand of the general governmentL_G
: Loans taken out by the governmentsb_inact
: Social benefits for inactive personssb_other
: Social benefits for allC_d_j [vector]
: Local governments consumption demandC_j
: Realised government consumptionP_j
: Price inflation of government goods <- ??source This is a Model type. It is used to store all the agents of the economy.
Fields
w_act
: Workers that are activew_inact
: Workers that are inactivefirms
: Firmsbank
: Bankcb
: CentralBankgov
: Governmentrotw
: RestOfTheWorldagg
: Aggregatessource This is a RestOfTheWorld type. It represents the rest of the world of the model.
Fields
alpha_E
: Autoregressive coefficient for exportsbeta_E
: Scalar constant for exportssigma_E
: Variance coefficient for exportsalpha_I
: Autoregressive coefficient for importsbeta_I
: Scalar constant for importssigma_I
: Variance coefficient for importsY_EA
: GDP euro areagamma_EA
: Growth euro areapi_EA
: Inflation euro areaalpha_pi_EA
: Autoregressive coefficient for euro area inflationbeta_pi_EA
: Autoregressive coefficient for euro area inflation Scalar constant for euro area inflationsigma_pi_EA
: Variance coefficient for euro area inflationalpha_Y_EA
: Autoregressive coefficient for euro area GDPbeta_Y_EA
: Autoregressive coefficient for euro area GDP Scalar constant for euro area GDPsigma_Y_EA
: Variance coefficient for euro area GDPD_RoW
: Net creditor/debtor position of the national economy to the rest of the worldY_I
: Supply of imports (in real terms)C_E
: Total demand for exportsC_d_l [vector]
: Demand for exports of specific productC_l
: Realised consumption by foreign consumersY_m [vector]
: Supply of imports per sectorQ_m [vector]
: Sales for imports per sectorQ_d_m [vector]
: Demand for goodsP_m [vector]
: Price of imports per sectorP_l
: Price inflation of exports <- ??source 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 i
th worker.
Fields
Y_h
: Net disposable income of worker owner (investor)D_h
: DepositsK_h
: Capital stockw_h
: Wages (0 if inactive or unemployed)O_h
: Occupation (0 if unemployed, -1 if inactive)C_d_h
: Consumption budgetI_d_h
: Investment budgetC_h
: Realised consumptionI_h
: Realised investmentsource 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 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
source 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 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 run_one_sim!(model; shock = NoShock())
Run a single simulation based on the provided model
. The simulation runs for a number of epochs specified by model.prop.T
.
Arguments
model::Model
: The model configuration used for the simulation.Returns
data::Data
: The data collected during the simulation.Details
The function initializes the data using BeforeIT.init_data(model)
, then iteratively updates the model and data for each epoch using BeforeIT.run_one_epoch!(model)
and BeforeIT.update_data!(data, model)
respectively.
Example
```julia model = BeforeIT.initmodel(parameters, initial conditions, T) data = runone sim!(model)
source firms_deposits(firms, model)
Calculate the new deposits of firms.
Arguments
firms
: Firms objectmodel
: Model objectReturns
DD_i
: Vector of new depositsThe 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 firms_equity(firms, model)
Calculate the equity of firms.
Arguments
firms
: Firms objectmodel
: Model objectReturns
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
: DepositsM_i
: Intermediate goodsa_sg
: Technology coefficient of the gth product in the sth industryG_i
: Vector of goodsP_bar_g
: Producer price index for principal good gP_i
: PriceS_i
: StockP_bar_CF
: Capital price indexK_i
: Capital stockL_i
: Loanssource 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 objectmodel
: Model objectReturns
Q_s_i
: Vector of desired quantitiesI_d_i
: Vector of desired investmentsDM_d_i
: Vector of desired intermediate goodsN_d_i
: Vector of desired employmentPi_e_i
: Vector of expected profitsDL_d_i
: Vector of desired new loansK_e_i
: Vector of expected capitalL_e_i
: Vector of expected loansP_i
: Vector of pricessource firms_loans(firms, model)
Calculate the new loans of firms.
Arguments
firms
: Firms objectmodel
: Model objectReturns
The new loans L_i
are calculated as follows:
\[L_i = (1 - theta) * L_i + DL_i\]
where:
theta
: Rate of repaymentL_i
: LoansDL_i
: Acquired new loanssource firms_production(firms)
Calculate the production of firms.
Arguments
Returns
Y_i
: Vector of productionThe production Y_i
is computed using a Leontief technology.
source firms_profits(firms, model)
Calculate the profits of firms.
Arguments
firms
: Firms objectmodel
: Model objectReturns
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 firms_stocks(firms)
Calculate the stocks of firms.
Arguments
Returns
K_i
: Vector of capital stockM_i
: Vector of intermediate goodsDS_i
: Vector of differneces in stock of final goodsS_i
: Vector of stock of final goodsThe stocks are calculated as follows:
K_i = K_i - delta_i / kappa_i * Y_i + I_i
+API · BeforeIT.jl In this page we document the functions which constitute the bulk of BeforeIT.jl functionality.
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 + predictionspi_ [vector]
: inflation data + predictionsP_bar
: Global price indexP_bar_g [vector]
: Producer price index for principal good gP_bar_HH
: Consumer price indexP_bar_CF
: Capital price indexP_bar_h
: CPI_hP_bar_CF_h
: Capital price index _hY_e
: Expected GDPgamma_e
: Expected growthpi_e
: Expected inflationt
: Time indexsource This is a Bank type. It represents the bank of the model.
Fields
E_k
: equity capital (common equity) of the bankPi_k
: Profits of the bankPi_e_k
: Expected profits of the bankD_k
: Residual and balancing item on the bank’s balance sheetr
: Rate for loans and morgagesHousehold fields (bank' owner)
Y_h
: Net disposable income of bank owner (investor)C_d_h
: Consumption budgetI_d_h
: Investment budgetC_h
: Realised consumptionI_h
: Realised investmentK_h
: Capital stockD_h
: Depositssource This is a CentralBank type. It represents the central bank of the model.
Fields
r_bar
: Nominal interest rater_G
: Interest rate on government bondsrho
: Parameter for gradual adjustment of the policy rater_star
: Real equilibrium interest ratepi_star
: Inflation target by CBxi_pi
: Weight the CB puts on inflation targetingxi_gamma
: Weight placed on economicE_CB
: Central bank equitysource 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 i
th firm.
Fields
G_i
: Principal productalpha_bar_i
: Average productivity of laborbeta_i
: Productivity of intermediate consumptionkappa_i
: Productivity of capitalw_i
: Wagesw_bar_i
: Average wage ratedelta_i
: Depreciation rate for capitaltau_Y_i
: Net tax rate on productstau_K_i
: Net tax rate on productionN_i
: Number of persons employedY_i
: Production of goodsQ_i
: Sales of goodsQ_d_i
: Demand for goodsP_i
: PriceS_i
: InventoriesK_i
: Capital, in real termsM_i
: Intermediate goods/services and raw materials, in real termsL_i
: Outstanding loanspi_bar_i
: Operating marginD_i
: Deposits of the firmPi_i
: ProfitsV_i
: VacanciesI_i
: InvestmentsE_i
: EquityP_bar_i
: Price indexP_CF_i
: Price indexDS_i
: Differnece in stock of final goodsDM_i
: Difference in stock of intermediate goodsDL_i
: Obtained loansDL_d_i
: Target loansK_e_i
: Expected capital L_e_i
: Expected loansQ_s_i
: Expected salesI_d_i
: Desired investmentsDM_d_i
: Desired materialsN_d_i
: Desired employmentPi_e_i
: Expected profitsHousehold fields (firms' owners)
Y_h
: Net disposable income of firm owner (investor)C_d_h
: Consumption budgetI_d_h
: Investment budgetC_h
: Realised consumptionI_h
: Realised investmentK_h
: Capital stockD_h
: Deposits of the owner of the firmssource This is a Government type. It represents the government of the model.
Fields
alpha_G
: Autoregressive coefficient for government consumptionbeta_G
: Scalar constant for government consumptionsigma_G
: Variance coefficient for government consumptionY_G
: Government revenuesC_G
: Consumption demand of the general governmentL_G
: Loans taken out by the governmentsb_inact
: Social benefits for inactive personssb_other
: Social benefits for allC_d_j [vector]
: Local governments consumption demandC_j
: Realised government consumptionP_j
: Price inflation of government goods <- ??source This is a Model type. It is used to store all the agents of the economy.
Fields
w_act
: Workers that are activew_inact
: Workers that are inactivefirms
: Firmsbank
: Bankcb
: CentralBankgov
: Governmentrotw
: RestOfTheWorldagg
: Aggregatessource This is a RestOfTheWorld type. It represents the rest of the world of the model.
Fields
alpha_E
: Autoregressive coefficient for exportsbeta_E
: Scalar constant for exportssigma_E
: Variance coefficient for exportsalpha_I
: Autoregressive coefficient for importsbeta_I
: Scalar constant for importssigma_I
: Variance coefficient for importsY_EA
: GDP euro areagamma_EA
: Growth euro areapi_EA
: Inflation euro areaalpha_pi_EA
: Autoregressive coefficient for euro area inflationbeta_pi_EA
: Autoregressive coefficient for euro area inflation Scalar constant for euro area inflationsigma_pi_EA
: Variance coefficient for euro area inflationalpha_Y_EA
: Autoregressive coefficient for euro area GDPbeta_Y_EA
: Autoregressive coefficient for euro area GDP Scalar constant for euro area GDPsigma_Y_EA
: Variance coefficient for euro area GDPD_RoW
: Net creditor/debtor position of the national economy to the rest of the worldY_I
: Supply of imports (in real terms)C_E
: Total demand for exportsC_d_l [vector]
: Demand for exports of specific productC_l
: Realised consumption by foreign consumersY_m [vector]
: Supply of imports per sectorQ_m [vector]
: Sales for imports per sectorQ_d_m [vector]
: Demand for goodsP_m [vector]
: Price of imports per sectorP_l
: Price inflation of exports <- ??source 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 i
th worker.
Fields
Y_h
: Net disposable income of worker owner (investor)D_h
: DepositsK_h
: Capital stockw_h
: Wages (0 if inactive or unemployed)O_h
: Occupation (0 if unemployed, -1 if inactive)C_d_h
: Consumption budgetI_d_h
: Investment budgetC_h
: Realised consumptionI_h
: Realised investmentsource 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 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
source 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 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 run_one_sim!(model; shock = NoShock())
Run a single simulation based on the provided model
. The simulation runs for a number of epochs specified by model.prop.T
.
Arguments
model::Model
: The model configuration used for the simulation.Returns
data::Data
: The data collected during the simulation.Details
The function initializes the data using BeforeIT.init_data(model)
, then iteratively updates the model and data for each epoch using BeforeIT.run_one_epoch!(model)
and BeforeIT.update_data!(data, model)
respectively.
Example
```julia model = BeforeIT.initmodel(parameters, initial conditions, T) data = runone sim!(model)
source firms_deposits(firms, model)
Calculate the new deposits of firms.
Arguments
firms
: Firms objectmodel
: Model objectReturns
DD_i
: Vector of new depositsThe 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 firms_equity(firms, model)
Calculate the equity of firms.
Arguments
firms
: Firms objectmodel
: Model objectReturns
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
: DepositsM_i
: Intermediate goodsa_sg
: Technology coefficient of the gth product in the sth industryG_i
: Vector of goodsP_bar_g
: Producer price index for principal good gP_i
: PriceS_i
: StockP_bar_CF
: Capital price indexK_i
: Capital stockL_i
: Loanssource 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 objectmodel
: Model objectReturns
Q_s_i
: Vector of desired quantitiesI_d_i
: Vector of desired investmentsDM_d_i
: Vector of desired intermediate goodsN_d_i
: Vector of desired employmentPi_e_i
: Vector of expected profitsDL_d_i
: Vector of desired new loansK_e_i
: Vector of expected capitalL_e_i
: Vector of expected loansP_i
: Vector of pricessource firms_loans(firms, model)
Calculate the new loans of firms.
Arguments
firms
: Firms objectmodel
: Model objectReturns
The new loans L_i
are calculated as follows:
\[L_i = (1 - theta) * L_i + DL_i\]
where:
theta
: Rate of repaymentL_i
: LoansDL_i
: Acquired new loanssource firms_production(firms)
Calculate the production of firms.
Arguments
Returns
Y_i
: Vector of productionThe production Y_i
is computed using a Leontief technology.
source firms_profits(firms, model)
Calculate the profits of firms.
Arguments
firms
: Firms objectmodel
: Model objectReturns
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 firms_stocks(firms)
Calculate the stocks of firms.
Arguments
Returns
K_i
: Vector of capital stockM_i
: Vector of intermediate goodsDS_i
: Vector of differneces in stock of final goodsS_i
: Vector of stock of final goodsThe 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 firms_wages(firms)
Calculate the wages set by firms.
Arguments
Returns
source 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 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 quantitiesN_i
: Vector of employmentalpha_i
: Vector of labour productivityK_i
: Vector of capital stockkappa_i
: Vector of capital productivityM_i
: Vector of intermediate goodsbeta_i
: Vector of intermediate goods productivityReturns
Y_i
: Vector of productionThe 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 gov_expenditure(gov::AbstractGovernment, model)
Computes government expenditure on consumption and transfers to households.
Arguments
gov
: government objectmodel
: model objectReturns
C_G
: government consumptionC_d_j
: local government consumptionssource gov_loans(gov::AbstractGovernment, model, Y_G)
Computes government new government debt.
Arguments
gov::AbstractGovernment
: government objectmodel
: model objectReturns
source 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
Returns
source gov_social_benefits(gov::AbstractGovernment, model)
Computes social benefits paid by the government households.
Arguments
gov
: government objectmodel
: model objectReturns
sb_other
: social benefits for other householdssb_inact
: social benefits for inactive householdssource 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 _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 workerswiD_h
: Array of deposits from inactive workersfD_h
: Array of deposits from firmsbD_h
: Deposits from the bank ownerfD_i
: Array of deposits from firmsbE_k
: Bank equityfL_i
: Array of loans to firmsReturns
D_k
: New deposits of the bankThe 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 _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 bankD_i
: Array of deposits from firmsD_h
: Array of deposits from householdsD_k
: Residual and balancing item on the bank’s balance sheetr_bar
: Base interest rater
: Interest rate set by the bankReturns
Pi_k
: Total profits of the bankThe 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 firms_wages(firms)
Calculate the wages set by firms.
Arguments
Returns
source 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 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 quantitiesN_i
: Vector of employmentalpha_i
: Vector of labour productivityK_i
: Vector of capital stockkappa_i
: Vector of capital productivityM_i
: Vector of intermediate goodsbeta_i
: Vector of intermediate goods productivityReturns
Y_i
: Vector of productionThe 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 gov_expenditure(gov::AbstractGovernment, model)
Computes government expenditure on consumption and transfers to households.
Arguments
gov
: government objectmodel
: model objectReturns
C_G
: government consumptionC_d_j
: local government consumptionssource gov_loans(gov::AbstractGovernment, model, Y_G)
Computes government new government debt.
Arguments
gov::AbstractGovernment
: government objectmodel
: model objectReturns
source 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
Returns
source gov_social_benefits(gov::AbstractGovernment, model)
Computes social benefits paid by the government households.
Arguments
gov
: government objectmodel
: model objectReturns
sb_other
: social benefits for other householdssb_inact
: social benefits for inactive householdssource 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 _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 workerswiD_h
: Array of deposits from inactive workersfD_h
: Array of deposits from firmsbD_h
: Deposits from the bank ownerfD_i
: Array of deposits from firmsbE_k
: Bank equityfL_i
: Array of loans to firmsReturns
D_k
: New deposits of the bankThe 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 _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 bankD_i
: Array of deposits from firmsD_h
: Array of deposits from householdsD_k
: Residual and balancing item on the bank’s balance sheetr_bar
: Base interest rater
: Interest rate set by the bankReturns
Pi_k
: Total profits of the bankThe 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 _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 rateD_k
: Deposits from commercial banksL_G
: Loans provided to the governmentr_G
: Interest rate on government loansReturns
Pi_CB
: Profits of the central bankThe profits Pi_CB
are calculated as follows:
\[\{Pi}_{CB} = r_{G} \cdot L_{G} - r_{bar} \cdot D_{k}\]
source 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 modelw_act
: The Workers
object containing the active workers of the modelw_inact
: The Workers
object containing the inactive workers of the modelfirms
: The Firms
object containing the firms of the modelReturns
D_k
: New deposits of the bankThe 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 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 bank_expected_profits(Pi_k, pi_e, gamma_e)
Calculate the expected profits of a bank.
Arguments
Pi_k
: Past profits of the bankpi_e
: Expected inflation rategamma_e
: Expected growth rateReturns
E_Pi_k
: Expected profits of the bankThe expected profits E_Pi_k
are calculated as follows:
\[E_{\Pi_k} = \Pi_k \cdot (1 + \pi_e) \cdot (1 + \gamma_e)\]
source 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 _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 rateD_k
: Deposits from commercial banksL_G
: Loans provided to the governmentr_G
: Interest rate on government loansReturns
Pi_CB
: Profits of the central bankThe profits Pi_CB
are calculated as follows:
\[\{Pi}_{CB} = r_{G} \cdot L_{G} - r_{bar} \cdot D_{k}\]
source 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 modelw_act
: The Workers
object containing the active workers of the modelw_inact
: The Workers
object containing the inactive workers of the modelfirms
: The Firms
object containing the firms of the modelReturns
D_k
: New deposits of the bankThe 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 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 bank_expected_profits(Pi_k, pi_e, gamma_e)
Calculate the expected profits of a bank.
Arguments
Pi_k
: Past profits of the bankpi_e
: Expected inflation rategamma_e
: Expected growth rateReturns
E_Pi_k
: Expected profits of the bankThe expected profits E_Pi_k
are calculated as follows:
\[E_{\Pi_k} = \Pi_k \cdot (1 + \pi_e) \cdot (1 + \gamma_e)\]
source 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 bank_rate(bank, model)
Update the interest rate set by the bank.
Arguments
bank
: The bank whose interest rate is to be updatedmodel
: Model objectReturns
r
: The updated interest rate\[r = \bar{r} + \mu\]
source central_bank_equity(cb, model)
Calculate the equity of the central bank.
Arguments
cb
: The central bankmodel
: The model objectReturns
E_CB
: The equity of the central bankThe equity E_CB
is calculated as follows:
\[E_{CB} = E_{CB} + \Pi_{CB}\]
where \Pi_{CB}
are the profits of the central bank.
source 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 updatedmodel
: The model objectReturns
r_bar
: The updated base interest ratesource 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 modelbank
: The Bank
object containing the bank of the modelP_bar_CF
: Capital price indexzeta_b
: Parameter of loan-to-capital ratio for new firms after bankruptcyReturns
This function does not return a value. It modifies the banks
and firms
collections in-place. source 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 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 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 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 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 Perform the firms market exchange process
source Perform the retail market exchange process
source 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
Theme
Automatic (OS) documenter-light documenter-dark catppuccin-latte catppuccin-frappe catppuccin-macchiato catppuccin-mocha
This document was generated with Documenter.jl version 1.8.0 on Friday 6 December 2024 . Using Julia version 1.10.7.
+\sum_h(\max(0, D_h)) - r_{bar} \cdot \max(0, -D_k)\]
source bank_rate(bank, model)
Update the interest rate set by the bank.
Arguments
bank
: The bank whose interest rate is to be updatedmodel
: Model objectReturns
r
: The updated interest rate\[r = \bar{r} + \mu\]
source central_bank_equity(cb, model)
Calculate the equity of the central bank.
Arguments
cb
: The central bankmodel
: The model objectReturns
E_CB
: The equity of the central bankThe equity E_CB
is calculated as follows:
\[E_{CB} = E_{CB} + \Pi_{CB}\]
where \Pi_{CB}
are the profits of the central bank.
source 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 updatedmodel
: The model objectReturns
r_bar
: The updated base interest ratesource 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 modelbank
: The Bank
object containing the bank of the modelP_bar_CF
: Capital price indexzeta_b
: Parameter of loan-to-capital ratio for new firms after bankruptcyReturns
This function does not return a value. It modifies the banks
and firms
collections in-place. source 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 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 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 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 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 Perform the firms market exchange process
source Perform the retail market exchange process
source 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
Theme
Automatic (OS) documenter-light documenter-dark catppuccin-latte catppuccin-frappe catppuccin-macchiato catppuccin-mocha
This document was generated with Documenter.jl version 1.8.0 on Sunday 8 December 2024 . Using Julia version 1.10.7.
diff --git a/dev/examples/basic_example-03acb1a0.svg b/dev/examples/basic_example-03acb1a0.svg
new file mode 100644
index 0000000..39d46da
--- /dev/null
+++ b/dev/examples/basic_example-03acb1a0.svg
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dev/examples/basic_example-29886d8c.svg b/dev/examples/basic_example-29886d8c.svg
new file mode 100644
index 0000000..3e83f0d
--- /dev/null
+++ b/dev/examples/basic_example-29886d8c.svg
@@ -0,0 +1,273 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dev/examples/basic_example-7b90d60f.svg b/dev/examples/basic_example-7b90d60f.svg
new file mode 100644
index 0000000..33d653f
--- /dev/null
+++ b/dev/examples/basic_example-7b90d60f.svg
@@ -0,0 +1,280 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dev/examples/basic_example-952228f8.svg b/dev/examples/basic_example-952228f8.svg
deleted file mode 100644
index 77bb7a7..0000000
--- a/dev/examples/basic_example-952228f8.svg
+++ /dev/null
@@ -1,281 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/dev/examples/basic_example-b17081b5.svg b/dev/examples/basic_example-b17081b5.svg
deleted file mode 100644
index 2922ea0..0000000
--- a/dev/examples/basic_example-b17081b5.svg
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/dev/examples/basic_example-b50d133d.svg b/dev/examples/basic_example-b50d133d.svg
deleted file mode 100644
index 2064c53..0000000
--- a/dev/examples/basic_example-b50d133d.svg
+++ /dev/null
@@ -1,282 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/dev/examples/basic_example.html b/dev/examples/basic_example.html
index c3d25de..d0a0e32 100644
--- a/dev/examples/basic_example.html
+++ b/dev/examples/basic_example.html
@@ -22,10 +22,10 @@
"Y_EA" => 2.35485e6
"D_I" => 54049.0
⋮ => ⋮We can now initialise the model, by specifying in advance the maximum number of epochs.
T = 16
-model = Bit.init_model(parameters, initial_conditions, T)
Model(Workers{Vector{Float64}, Vector{Int64}}([0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249 … 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569], [3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487 … 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958], [6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249 … 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983 … 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522], [1, 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, 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], [10, 1, 3, 5, 2, 1, 1, 1, 2, 3 … 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [108.22026659306621, 10.822026659306621, 32.46607997791986, 54.11013329653311, 21.644053318613242, 10.822026659306621, 10.822026659306621, 10.822026659306621, 21.644053318613242, 32.46607997791986 … 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [108.22026659306621, 10.822026659306621, 32.46607997791986, 54.11013329653311, 21.644053318613242, 10.822026659306621, 10.822026659306621, 10.822026659306621, 21.644053318613242, 32.46607997791986 … 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951], [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 … 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [2981.5365853658536, 298.15365853658534, 894.460975609756, 1490.7682926829268, 596.3073170731707, 298.15365853658534, 298.15365853658534, 298.15365853658534, 596.3073170731707, 894.460975609756 … 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334], [76.5511425407355, 7.65511425407355, 22.965342762220647, 38.27557127036775, 15.3102285081471, 7.65511425407355, 7.65511425407355, 7.65511425407355, 15.3102285081471, 22.965342762220647 … 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064], [940.8074124607996, 94.08074124607997, 282.2422237382399, 470.4037062303998, 188.16148249215993, 94.08074124607997, 94.08074124607997, 94.08074124607997, 188.16148249215993, 282.2422237382399 … 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137, 24.99375238071137], [0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726, 0.36061475737617726 … 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956, 0.35565736393550956], [123.84292053067003, 12.384292053067004, 37.15287615920101, 61.921460265335014, 24.768584106134007, 12.384292053067004, 12.384292053067004, 12.384292053067004, 24.768584106134007, 37.15287615920101 … 13.530111496595195, 13.530111496595195, 13.530111496595195, 13.530111496595195, 13.530111496595195, 13.530111496595195, 13.530111496595195, 13.530111496595195, 13.530111496595195, 13.530111496595195], [12.548454674764377, 1.2548454674764373, 3.764536402429312, 6.274227337382189, 2.5096909349528747, 1.2548454674764373, 1.2548454674764373, 1.2548454674764373, 2.5096909349528747, 3.764536402429312 … 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0 … 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0 … 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [7.749284819252181, 1.3061857958470848, 2.7379855788259944, 4.169785361804905, 2.02208568733654, 1.3061857958470848, 1.3061857958470848, 1.3061857958470848, 2.02208568733654, 2.7379855788259944 … 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [70.53582526964651, 11.88921238727358, 24.921793027800895, 37.954373668328216, 18.405502707537238, 11.88921238727358, 11.88921238727358, 11.88921238727358, 18.405502707537238, 24.921793027800895 … 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181], [38.25246668743176, 6.447669663541784, 13.515402335517333, 20.583135007492885, 9.981535999529559, 6.447669663541784, 6.447669663541784, 6.447669663541784, 9.981535999529559, 13.515402335517333 … 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651]), Bank{Float64}(89460.0, 6476.292527744358, 0.0, 126431.00000000006, 0.028359903595743693, 3695.3696336675216, 0.0, 0.0, 0.0, 0.0, 33636.12938055408, 18241.296726948152), CentralBank{Float64}(0.0016459319014481277, 0.0089810924595537, 0.9259668580654086, -0.003424572940686137, 0.0049629315732038215, 0.30996974466133875, 1.328593153520194, 106179.90000000002), Government{Float64}(0.9905949533296431, 0.09373211872949586, 0.011235005057648862, 0.0, 14732.121510837034, 232610.9, 2.238468336136841, 0.5902859043576301, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, 0.0), RestOfTheWorld{Float64}(0.962809216044625, 0.39260026877953946, 0.020320381298662014, 0.9662360466537488, 0.35492769963078624, 0.02122821278168188, 2.3548476e6, 0.0, 0.0019383188997990075, 0.38456173629534834, 0.0026219533879005877, 0.0025327891562467505, 0.9635784504324201, 0.5360029623199525, 0.006618207536795881, 0.0, 33097.63671130043, 34095.03119997918, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0), Aggregates{Float64, Int64}([104531.39273728609, 105062.38754395355, 105399.12953350678, 106689.88106040593, 107938.33111423723, 108890.48532381697, 110110.17779727321, 110374.00540561741, 110808.89423399912, 111932.48072916963 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.007497362866886709, -0.007895434153021436, -0.0019938777296781562, -0.0035311300388783107, 0.001212170001002849, -0.001672412335241874, 0.001839696090252002, 0.004290005139261838, 0.00600429551344886, 0.0036060572293247772 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 1.0, [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 … 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1), MutableNamedTuple(tau_VAT = 0.1528683933530887, tau_EXPORT = 0.0029486201783457183, tau_SIW = 0.17114894621657745, psi_H = 0.07125099957246343, tau_FIRM = 0.07701197259426128, H_inact = 4130, theta_DIV = 0.7858074440019603, I_s = [48, 2, 1, 1, 5, 2, 4, 1, 1, 1 … 14, 10, 13, 41, 20, 16, 7, 7, 2, 19], psi = 0.9096681249468772, tau_INC = 0.21340742230566648, zeta_b = 0.5, tau_CF = 0.08761417854834112, H_act = 4743, zeta = 0.03, mu = 0.026713971694295565, tau_G = 0.009147800682711324, theta_UB = 0.3585824478060919, T_prime = 54, tau_SIF = 0.21215146534992413, T = 16, zeta_LTV = 0.6, I = 624, products = MutableNamedTuple(a_sg = [0.37790282216028437 0.0 … 0.0 0.0; 0.0006712800413285777 0.8149348034258406 … 2.4029219530949635e-5 0.00019143106686926454; … ; 0.00037430822580994426 0.000357977071568566 … 0.3197327950788158 0.0011366219595362582; 0.0 5.36965607352849e-5 … 0.0 0.05594572929254256], b_CF_g = [0.0033476048872100555, 0.0, 0.0, 0.0008050086095806136, 0.0, 0.003306696048303853, 0.0030629933432974495, 0.0, 0.0, 0.0 … 0.0017883064872300512, 0.0, 0.0, 0.0, 0.0, 0.002291709084994238, 0.0, 0.0, 0.0, 0.0], b_CFH_g = [0.0006092803753845975, 0.0, 0.0, 0.004372477702289994, 0.0, 0.0, 0.06710603871527036, 0.0, 0.0, 0.0 … 0.0041711096896454745, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], c_E_g = [0.005090338238241512, 0.0005933402816643566, 1.793599921320476e-5, 0.007268146142708006, 0.05434404438533037, 0.02138421321578873, 0.023894091259534518, 0.028037089231640524, 0.005923381894006229, 0.011927802553688313 … 0.0014618202435669027, 0.0009447261124040238, 0.0001280209174610526, 0.0010477673386531637, 0.0, 0.0013030104043795392, 5.5260305268213854e-5, 0.0, 1.307076865739618e-5, 8.641230390167474e-6], b_HH_g = [0.011287997598927976, 0.0020040637862256817, 0.0003326837475323491, 0.00034402684015257527, 0.06305103828047173, 0.03068200872784047, 0.0003505790613555631, 0.0020473225369636873, 0.0, 0.0191077565617325 … 0.005591228759882936, 0.0004356874830029748, 0.014434120586233577, 0.03514505772295519, 0.024907176866291014, 0.013342154173060372, 0.009686226103767459, 0.011051272187723254, 0.0021206651420422927, 0.01721782824162338], c_G_g = [0.0, 0.0, 0.0, 0.0, 8.57086390274792e-6, 0.0, 0.0, 0.0, 2.4536198623552867e-5, 0.0 … 0.008555738848801895, 0.3324338967920097, 0.22067672180252998, 0.2370889178393625, 0.0477595425645907, 0.012942508661614227, 0.004667927760053456, 0.021757222045203074, 0.0, 0.002000708524749294], c_I_g = [0.016810689305736877, 0.004087420487057966, 0.00036885674795364003, 0.05818437780960789, 0.04895082866561155, 0.04689140072807505, 0.010101572733480902, 0.016066325760592727, 0.00037371898454196314, 0.041008926225895866 … 0.0018123421762754539, 0.000401097116716159, 0.0003479865324437806, 0.0006664256271585853, 0.0028556289501379516, 0.001307065586721844, 6.418152296577174e-5, 0.0, 3.538212163497461e-5, 0.00020458795490837936]), J = 156, G = 62, H = 8873, L = 312, theta = 0.05, C = [4.3800671000101816e-5 0.00010629745355671226 9.959785873214212e-5; 0.00010629745355671226 0.0004129178961230129 0.0003596689472264872; 9.959785873214212e-5 0.0003596689472264872 0.0004506370179043619]))
Note that the it is very simple to inspect the model by typing
fieldnames(typeof(model))
(:w_act, :w_inact, :firms, :bank, :cb, :gov, :rotw, :agg, :prop)
and to inspect the specific attributes of one agent type by typing
fieldnames(typeof(model.bank))
(:E_k, :Pi_k, :Pi_e_k, :D_k, :r, :Y_h, :C_d_h, :I_d_h, :C_h, :I_h, :K_h, :D_h)
We can now define a data tracker, which will store the time series of the model.
data = Bit.init_data(model);
We can run now the model for a number of epochs and progressively update the data tracker.
for t in 1:T
+model = Bit.init_model(parameters, initial_conditions, T)
Model(Workers{Vector{Float64}, Vector{Int64}}([0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249, 0.7661282859097249 … 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569, 4.655745607447569], [3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487, 3.781806633594487 … 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958, 22.981960001210958], [6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249, 6.973481059156249 … 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032, 42.37769888790032], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983 … 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522, 11.337587012313522], [1, 2, 3, 4, 4, 5, 6, 7, 8, 9 … 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Workers{Vector{Float64}, Vector{Int64}}([2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714 … 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714, 2.8287542404944714], [13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984 … 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984, 13.963459838592984], [25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977 … 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977, 25.74799087814977], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1 … -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]), Firms{Vector{Float64}, Vector{Int64}}([1, 1, 1, 1, 1, 1, 1, 1, 1, 1 … 62, 62, 62, 62, 62, 62, 62, 62, 62, 62], [10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621, 10.822026659306621 … 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951, 11.988103388298951], [1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485, 1.6631751855300485 … 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877, 3.4759574544453877], [0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754, 0.042702129272078754 … 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946, 0.17805766706016946], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983, 0.2697101055708983 … 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687, 2.6020133813757687], [0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721, 0.011078553057541721 … 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782, 0.012425621091468782], [0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832, 0.009528627732528832 … 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318, 0.010357147774366318], [-0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635, -0.26105054841223635 … 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037, 0.013413693877270037], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1 … 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [10.822026659306621, 10.822026659306621, 10.822026659306621, 21.644053318613242, 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], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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, 21.644053318613242, 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.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, 596.3073170731707, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534, 298.15365853658534 … 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334, 79.20833333333334], [7.65511425407355, 7.65511425407355, 7.65511425407355, 15.3102285081471, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355, 7.65511425407355 … 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064, 4.057486672347064], [94.08074124607995, 94.08074124607995, 94.08074124607995, 188.1614824921599, 94.08074124607995, 94.08074124607995, 94.08074124607995, 94.08074124607995, 94.08074124607995, 94.08074124607995 … 24.993752380711367, 24.993752380711367, 24.993752380711367, 24.993752380711367, 24.993752380711367, 24.993752380711367, 24.993752380711367, 24.993752380711367, 24.993752380711367, 24.993752380711367], [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.384292053067, 12.384292053067, 12.384292053067, 24.768584106134, 12.384292053067, 12.384292053067, 12.384292053067, 12.384292053067, 12.384292053067, 12.384292053067 … 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191, 13.530111496595191], [1.2548454674764378, 1.2548454674764378, 1.2548454674764378, 2.5096909349528755, 1.2548454674764378, 1.2548454674764378, 1.2548454674764378, 1.2548454674764378, 1.2548454674764378, 1.2548454674764378 … 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878, 3.5771064837982878], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0 … 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0 … 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.3061857958470853, 1.3061857958470853, 1.3061857958470853, 2.0220856873365403, 1.3061857958470853, 1.3061857958470853, 1.3061857958470853, 1.3061857958470853, 1.3061857958470853, 1.3061857958470853 … 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208, 2.631055234104208], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [11.889212387273586, 11.889212387273586, 11.889212387273586, 18.40550270753724, 11.889212387273586, 11.889212387273586, 11.889212387273586, 11.889212387273586, 11.889212387273586, 11.889212387273586 … 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181, 23.94848771160181], [6.447669663541786, 6.447669663541786, 6.447669663541786, 9.98153599952956, 6.447669663541786, 6.447669663541786, 6.447669663541786, 6.447669663541786, 6.447669663541786, 6.447669663541786 … 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651, 12.987566600381651]), Bank{Float64}(89460.0, 6476.292527744357, 0.0, 126431.00000000006, 0.028359903595743693, 3695.3696336675207, 0.0, 0.0, 0.0, 0.0, 33636.12938055406, 18241.296726948145), CentralBank{Float64}(0.0016459319014481277, 0.0089810924595537, 0.9259668580654086, -0.003424572940686137, 0.0049629315732038215, 0.30996974466133875, 1.328593153520194, 106179.90000000002), Government{Float64}(0.9905949533296431, 0.09373211872949586, 0.011235005057648862, 0.0, 14732.121510837034, 232610.9, 2.238468336136841, 0.5902859043576301, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, 0.0), RestOfTheWorld{Float64}(0.962809216044625, 0.39260026877953946, 0.020320381298662014, 0.9662360466537488, 0.35492769963078624, 0.02122821278168188, 2.3548476e6, 0.0, 0.0019383188997990075, 0.38456173629534834, 0.0026219533879005877, 0.0025327891562467505, 0.9635784504324201, 0.5360029623199525, 0.006618207536795881, 0.0, 33097.63671130043, 34095.03119997918, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0, [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.0), Aggregates{Float64, Int64}([104531.39273728609, 105062.38754395355, 105399.12953350678, 106689.88106040593, 107938.33111423723, 108890.48532381697, 110110.17779727321, 110374.00540561741, 110808.89423399912, 111932.48072916963 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.007497362866886709, -0.007895434153021436, -0.0019938777296781562, -0.0035311300388783107, 0.001212170001002849, -0.001672412335241874, 0.001839696090252002, 0.004290005139261838, 0.00600429551344886, 0.0036060572293247772 … 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 1.0, [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 … 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1), MutableNamedTuple(tau_VAT = 0.1528683933530887, tau_EXPORT = 0.0029486201783457183, tau_SIW = 0.17114894621657745, psi_H = 0.07125099957246343, tau_FIRM = 0.07701197259426128, H_inact = 4130, theta_DIV = 0.7858074440019603, I_s = [48, 2, 1, 1, 5, 2, 4, 1, 1, 1 … 14, 10, 13, 41, 20, 16, 7, 7, 2, 19], psi = 0.9096681249468772, tau_INC = 0.21340742230566648, zeta_b = 0.5, tau_CF = 0.08761417854834112, H_act = 4743, zeta = 0.03, mu = 0.026713971694295565, tau_G = 0.009147800682711324, theta_UB = 0.3585824478060919, T_prime = 54, tau_SIF = 0.21215146534992413, T = 16, zeta_LTV = 0.6, I = 624, products = MutableNamedTuple(a_sg = [0.37790282216028437 0.0 … 0.0 0.0; 0.0006712800413285777 0.8149348034258406 … 2.4029219530949635e-5 0.00019143106686926454; … ; 0.00037430822580994426 0.000357977071568566 … 0.3197327950788158 0.0011366219595362582; 0.0 5.36965607352849e-5 … 0.0 0.05594572929254256], b_CF_g = [0.0033476048872100555, 0.0, 0.0, 0.0008050086095806136, 0.0, 0.003306696048303853, 0.0030629933432974495, 0.0, 0.0, 0.0 … 0.0017883064872300512, 0.0, 0.0, 0.0, 0.0, 0.002291709084994238, 0.0, 0.0, 0.0, 0.0], b_CFH_g = [0.0006092803753845975, 0.0, 0.0, 0.004372477702289994, 0.0, 0.0, 0.06710603871527036, 0.0, 0.0, 0.0 … 0.0041711096896454745, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], c_E_g = [0.005090338238241512, 0.0005933402816643566, 1.793599921320476e-5, 0.007268146142708006, 0.05434404438533037, 0.02138421321578873, 0.023894091259534518, 0.028037089231640524, 0.005923381894006229, 0.011927802553688313 … 0.0014618202435669027, 0.0009447261124040238, 0.0001280209174610526, 0.0010477673386531637, 0.0, 0.0013030104043795392, 5.5260305268213854e-5, 0.0, 1.307076865739618e-5, 8.641230390167474e-6], b_HH_g = [0.011287997598927976, 0.0020040637862256817, 0.0003326837475323491, 0.00034402684015257527, 0.06305103828047173, 0.03068200872784047, 0.0003505790613555631, 0.0020473225369636873, 0.0, 0.0191077565617325 … 0.005591228759882936, 0.0004356874830029748, 0.014434120586233577, 0.03514505772295519, 0.024907176866291014, 0.013342154173060372, 0.009686226103767459, 0.011051272187723254, 0.0021206651420422927, 0.01721782824162338], c_G_g = [0.0, 0.0, 0.0, 0.0, 8.57086390274792e-6, 0.0, 0.0, 0.0, 2.4536198623552867e-5, 0.0 … 0.008555738848801895, 0.3324338967920097, 0.22067672180252998, 0.2370889178393625, 0.0477595425645907, 0.012942508661614227, 0.004667927760053456, 0.021757222045203074, 0.0, 0.002000708524749294], c_I_g = [0.016810689305736877, 0.004087420487057966, 0.00036885674795364003, 0.05818437780960789, 0.04895082866561155, 0.04689140072807505, 0.010101572733480902, 0.016066325760592727, 0.00037371898454196314, 0.041008926225895866 … 0.0018123421762754539, 0.000401097116716159, 0.0003479865324437806, 0.0006664256271585853, 0.0028556289501379516, 0.001307065586721844, 6.418152296577174e-5, 0.0, 3.538212163497461e-5, 0.00020458795490837936]), J = 156, G = 62, H = 8873, L = 312, theta = 0.05, C = [4.3800671000101816e-5 0.00010629745355671226 9.959785873214212e-5; 0.00010629745355671226 0.0004129178961230129 0.0003596689472264872; 9.959785873214212e-5 0.0003596689472264872 0.0004506370179043619]))
Note that the it is very simple to inspect the model by typing
fieldnames(typeof(model))
(:w_act, :w_inact, :firms, :bank, :cb, :gov, :rotw, :agg, :prop)
and to inspect the specific attributes of one agent type by typing
fieldnames(typeof(model.bank))
(:E_k, :Pi_k, :Pi_e_k, :D_k, :r, :Y_h, :C_d_h, :I_d_h, :C_h, :I_h, :K_h, :D_h)
We can now define a data tracker, which will store the time series of the model.
data = Bit.init_data(model);
We can run now the model for a number of epochs and progressively update the data tracker.
for t in 1:T
Bit.run_one_epoch!(model; multi_threading = true)
Bit.update_data!(data, model)
-end
Note that we can equivalently run the model for a number of epochs in the single command data = BeforeIT.run_one_sim!(model)
, but writing the loop explicitely is more instructive.
We can then plot any time series stored in the data tracker, for example
plot(data.real_gdp, title = "gdp", titlefont = 10)
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))
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}}([72422.0, 72261.72471842117, 71281.34249787165, 72415.0937550587, 72552.82256083682, 72431.34094068738, 72924.5068761251, 73773.93708061901, 74181.87140036981, 74539.17458762674, 75423.86733547597, 74873.60771677352, 75387.7306897918, 76567.95344829277, 76629.10064745527, 76274.23876364478, 77475.55068086338], [72422.0, 72295.8839104264, 70945.81175759561, 71973.74107058211, 71672.06713057922, 71603.15217403913, 72158.49557648113, 72930.00293182943, 73240.68252846393, 73268.85056562767, 73785.7653066205, 73032.65373714102, 73029.36000486909, 74027.41613992819, 74056.14172630096, 73654.57507036068, 74671.439843943], [64900.92049553802, 64774.805266484735, 63862.08059213402, 64889.61176945754, 64998.59464690491, 64884.45118139118, 65335.66820708844, 66107.40511566389, 66471.46535765215, 66789.01584048258, 67594.50719451251, 67091.05256427304, 67548.59446965608, 68631.50853734717, 68684.75506279217, 68344.90541947984, 69436.1966284175], [64900.92049553802, 64805.4252803139, 63561.47330240338, 64494.12509859904, 64209.543812302705, 64142.55447064869, 64649.37134667312, 65351.17196785168, 65628.102925391, 65650.77287365042, 66126.44803384501, 65441.452071090695, 65435.457178649376, 66354.30377848913, 66378.54173400535, 65997.57727500433, 66923.05809982136], [40512.94792630534, 40352.22978808121, 40025.4294128378, 40569.41927402573, 40745.200401784976, 40675.075069590326, 40819.204879293546, 41247.98959664229, 41500.44732653624, 41722.868313635365, 42121.729882539024, 41880.494449709746, 42106.21448253402, 42576.28888263774, 42684.15282248925, 42664.191130490406, 43197.50036205236], [40512.94792630534, 40371.304887250815, 39837.024404035394, 40322.1583623046, 40250.57379396807, 40209.99131140346, 40390.43307788614, 40776.13478765352, 40973.90683267298, 41011.8118499874, 41206.90419649208, 40850.75826793241, 40788.99666764464, 41163.6006039691, 41250.95615348741, 41198.87552302539, 41634.03191518627], [14866.888022051655, 14756.62371804465, 14706.644186901702, 14807.972754864772, 15007.380908593726, 15130.08941891924, 15308.253558623652, 15503.182798294722, 15529.558285753285, 15766.051886730675, 15967.573613924385, 15952.067679574939, 16375.755176720968, 16478.814200493158, 16189.945066969003, 16355.413480630727, 16779.033086047137], [14866.888022051655, 14763.599393547804, 14637.418060708078, 14717.721701001323, 14825.198716879471, 14957.090135288785, 15147.453085558534, 15325.834728011972, 15332.525679696779, 15497.361033168103, 15620.780010561035, 15559.846396620782, 15863.468885584727, 15932.044430784834, 15646.338744552379, 15793.681451857206, 16171.741261772919], [15944.236265986641, 16547.46139012076, 15845.046840029207, 16317.385884746067, 16174.709322221997, 15762.218959949427, 16080.329858144469, 16459.61103861553, 16650.154037148845, 15968.249424461073, 17048.45280322267, 16552.08452550965, 16088.53889869156, 16886.71107899789, 17140.2523284664, 16877.840414992304, 16551.751349844646], [15944.236265986641, 16555.283621226183, 15770.462101447683, 16217.935318704787, 15978.356340138633, 15581.991830221566, 15911.419365622858, 16271.321943835315, 16438.903776142288, 15696.112646110792, 16678.1839995615, 16145.110335168583, 15585.23765650347, 16326.407223668402, 16564.737742405185, 16298.165462178831, 15952.685645603366], [15944.236265986641, 15903.16152527303, 15723.149528178164, 15961.406950741726, 16005.613102458465, 15979.09429741388, 16043.058748310583, 16228.95011803029, 16329.135983935088, 16414.752441359928, 16600.836399520296, 16491.49368859639, 16594.47902809325, 16813.25376150237, 16853.93059380645, 16801.479283665572, 17056.613748399057], [15944.236265986641, 15910.679186249821, 15649.138576422896, 15864.125991200872, 15811.31286496223, 15796.387388685405, 15874.539757802573, 16043.299660082757, 16121.958667081355, 16135.00619441277, 16240.2892047471, 16086.00927476999, 16075.350351406345, 16255.38723206792, 16288.029771384496, 16224.426978898902, 16439.27531023722], [3173.2320350842083, 3156.9738626337885, 3136.572462611857, 3177.2873917384136, 3190.913315159333, 3188.8043613083696, 3197.220029637389, 3230.919424657729, 3250.530199030681, 3267.012598951603, 3296.2569559477793, 3280.434465085235, 3298.9585067453336, 3314.1411404204487, 3331.9810852158994, 3336.6526996103307, 3379.5021910771798], [3173.2320350842083, 3158.46621113155, 3121.808199714575, 3157.922584666, 3152.1772035841936, 3152.343184188411, 3163.6358920811263, 3193.9594447196014, 3209.288817634276, 3211.334968932465, 3224.6668161429575, 3199.7768199205143, 3195.7564742408827, 3204.177391446672, 3220.1038690423015, 3222.0542706262854, 3257.186200624508], [34195.564496956766, 31706.52797696222, 31626.754644168497, 31982.563067735387, 32394.798623632618, 32796.45907006331, 33671.278753785424, 33569.723946769824, 33056.82873090624, 32575.89484576405, 32344.343999790653, 31399.84058809731, 32303.308691187776, 32623.841286153714, 32654.412752214383, 32535.730193916395, 32845.75053958754], [34195.564496956766, 31721.51612430032, 31477.88331225433, 31787.636991769345, 32001.541768932842, 32421.460365981504, 33317.589972006244, 33185.704365801, 32637.417373997945, 32020.724467374068, 31641.8696054137, 30627.797364146572, 31292.75729845799, 31541.37685819159, 31557.982520148813, 31418.279892149287, 31656.9480822261], [33097.63671130043, 31101.118154788044, 30922.53258606568, 31262.247226313266, 31769.266695396174, 31932.501577834995, 32954.56017372143, 33006.57029970382, 32555.116979975275, 31493.889882964315, 32058.23296400045, 30910.87952611775, 31486.086559342748, 31997.70199999034, 32039.66232268402, 32158.93645638525, 31898.484656669145], [33097.63671130043, 31115.820115899074, 30776.976120850064, 31071.711303197946, 31383.603489339508, 31567.381468856252, 32608.399924592155, 32628.992893472885, 32142.071134046502, 30957.159431012613, 31361.972505407535, 30150.858626726855, 30501.100503321984, 30936.01297668631, 30963.873434293102, 31054.42725885027, 30743.967060846513], [29576.147776884878, 29518.675515737905, 29124.025315909188, 29569.99360020722, 29650.73653846254, 29575.302382438113, 29694.285393110244, 30066.20678061372, 30232.592571550947, 30392.62267883786, 30736.123406886618, 30499.751563843325, 30654.818769291873, 31109.20548858297, 31186.595268932964, 31078.973313708117, 31552.02375395757], [34346.71094688275, 34279.96854499965, 33781.459459503414, 34347.13298474562, 34375.26466100839, 34338.273523783, 34652.308093101514, 35037.29629098138, 35231.987704059786, 35388.64107870814, 35841.991273954816, 35582.40953753418, 35880.91023339269, 36490.386553875345, 36467.556900150164, 36241.558613376525, 36844.24208553145], [28335.329312139664, 28280.26820485153, 27869.00847391326, 28335.677484686523, 28358.885538355495, 28328.368611813887, 28587.44066534464, 28905.04800146144, 29065.664408440087, 29194.900216939586, 29568.904793270158, 29354.7552056642, 29601.01213344207, 30103.817548363306, 30084.983554116072, 29898.539620965854, 30395.74107588547], [978.0617717704337, 976.1612057471267, 956.5958167214617, 972.4851845046691, 972.5934474340173, 970.8752751700957, 989.0747208767303, 1003.9020440687905, 1006.8850820413442, 1007.7520829366229, 1016.3925136710792, 1008.8914628954642, 1012.8654669715431, 1031.916494888831, 1030.6028937090762, 1024.3734923952331, 1039.9307889284917], [0.0019383188997990075, 0.0033377938821534947, 0.0029167714235693865, 0.003966093139174953, 0.0012014712571790653, 0.001062658304219033, 0.00389959767678838, 0.0035425937308115607, 0.005711662719937838, 0.003124835266633097, 0.006427543823254389, -0.0010856491146444824, 0.0029065221066268965, 0.0030552492760622663, 0.007490259507987318, 0.004243305280670739, 0.007650798607264919], [2.3548476e6, 2.3253478407580536e6, 2.3118571498940894e6, 2.323337782832051e6, 2.315208354436807e6, 2.3220739665255006e6, 2.3406804668413643e6, 2.341365916560376e6, 2.3409942773712105e6, 2.3304903412811044e6, 2.320927611753943e6, 2.290477886359066e6, 2.30837283229992e6, 2.3239368066658466e6, 2.3357783807886853e6, 2.3411130431032274e6, 2.3521166434527533e6], [0.0016459319014481277, 0.0003684950460678617, 0.0, 0.0005794673174966443, 0.00021997461333060647, 0.0005197556046618663, 0.0013589108560630228, 0.0013684059019620767, 0.0013825575181104796, 0.0009105747031261154, 0.0005870600061240693, 0.0, 0.0008351611134573856, 0.001506625497390663, 0.00206816306747933, 0.002237069282266634, 0.00270932995701031], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 517.076701213853 257.74144901633974 … 136.73101585594438 503.9235006969701; … ; 552.3451959916507 267.27656873718234 … 143.46074182796647 533.2546088789047; 560.9149851373193 278.17694593371925 … 145.76090621168873 542.1321444922927], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 517.3211310608717 257.8632872326146 … 136.79565064070619 504.1617128304798; … ; 533.3747194644044 258.09686750993 … 138.53353569821527 514.9398048139922; 540.6135122908277 268.10875046019123 … 140.48530980591207 522.5104882658566]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72757.14090955805, 72937.80815511568, 72753.15869263453, 73551.51998191312, 73600.45540150159, 73308.72553873362, 73699.32683123552, 72694.9487967447, 72662.63905033006, 73871.29825840566, 74218.73011357327, 73623.4402020617, 74269.46537658059, 75181.18509014923, 75489.57278492431, 75924.71696418739], [72422.0, 72742.45572315402, 73324.19359371641, 72906.8218479765, 73115.85924000865, 72831.35990642413, 72467.02420373332, 72151.37407750428, 71077.84453537583, 71000.38794440673, 71715.22790788795, 71703.20079109095, 70958.41053902043, 71410.81498736783, 71963.13524793823, 71892.24802606595, 71605.75490830987], [64900.92049553802, 65207.34801280065, 65366.32467339926, 65182.28380781821, 65894.63596932907, 65925.02822391683, 65636.05555326922, 65990.32837388074, 65065.55362167924, 65040.75260611015, 66145.46255912514, 66476.41360523064, 65941.85070530867, 66519.6515029749, 67336.99988969907, 67607.37320955658, 68000.80022691787], [64900.92049553802, 65194.186664670306, 65712.60044816528, 65319.95639251823, 65504.32852223645, 65236.13789106115, 64882.44873256204, 64604.29250465373, 63618.16579389314, 63552.861932682936, 64214.8850004888, 64223.298152816875, 63554.880092645464, 63959.29339759345, 64454.711966062685, 64385.661010693984, 64132.58856024945], [40512.94792630534, 40687.2275056669, 40832.69567525355, 40868.75101037492, 41359.10145652339, 41465.46102043044, 41439.896568660646, 41605.02000765913, 41139.94786367086, 41028.57727642195, 41486.19800819166, 41564.465412416605, 41211.029123035805, 41544.306539904646, 42100.12486310955, 42326.4017206551, 42567.79837148296], [40512.94792630534, 40679.01525993115, 41049.00542498147, 40955.07057845957, 41114.123013800796, 41032.163439618525, 40964.10032465577, 40731.16392160045, 40224.786822855654, 40089.99592507643, 40275.346654689376, 40155.701999754514, 39719.2676031188, 39945.25573944841, 40298.07425682642, 40309.41040323309, 40146.33783373208], [14866.888022051655, 14692.280058071268, 14594.627557353091, 14559.568014027831, 14911.055434149801, 14887.565014420785, 15158.273763789708, 15409.67716444342, 15296.61638105839, 15479.009351317993, 16048.000647078597, 16109.543855192098, 16042.973124383887, 16174.330227825958, 16354.400440959222, 16366.81744360839, 16549.494088199008], [14866.888022051655, 14689.314591470269, 14671.942076566093, 14590.319519552193, 14822.73419381897, 14731.9958793821, 14984.232554240372, 15086.018140319175, 14956.342071167925, 15124.907150391824, 15579.610092208191, 15563.535726549335, 15462.247758352174, 15551.776192104946, 15654.367903624574, 15586.885123930953, 15608.079488726518], [15944.236265986641, 16571.600757542077, 16923.543315242776, 16557.286495109216, 16684.18995569002, 17287.880776427817, 15869.962693512945, 16402.384481552126, 16105.133711850025, 15253.408014975003, 15412.301572813325, 16133.462017525273, 15857.500321489602, 16464.010718552905, 16869.68499383328, 15961.135086773302, 16103.126173572733], [15944.236265986641, 16568.255971819413, 17013.195182661573, 16592.257415031585, 16585.3660758306, 17107.22929605238, 15687.750157592145, 16057.875008838502, 15746.873876931279, 14904.466734099833, 14962.465070168717, 15586.643219680858, 15283.488721074436, 15830.306807935593, 16147.59625490935, 15200.534856716164, 15187.103121982373], [15944.236265986641, 16016.789000576793, 16073.284940769769, 16042.320798256093, 16207.567242922927, 16229.840551155401, 16159.019435182312, 16250.351334659736, 16001.294388332622, 15979.572671322923, 16205.395393076255, 16273.583733686799, 16171.014243094589, 16278.288790282682, 16502.445723712255, 16573.89996198286, 16653.089753621796], [15944.236265986641, 16013.556197182854, 16158.432594759966, 16076.204050573459, 16111.566497170097, 16060.245170452563, 15973.488065881638, 15909.035108594471, 15645.344466486753, 15614.019442149802, 15732.410981685462, 15722.015726509626, 15585.65403008321, 15651.73336336379, 15796.0762671307, 15784.099483790393, 15705.782135827956], [3173.2320350842083, 3185.4869019469957, 3198.276714675389, 3201.1007980931404, 3239.508167188241, 3247.83892544462, 3245.8365548083793, 3258.7700739224733, 3222.3426624042254, 3216.4153563247905, 3250.015672561401, 3256.6206652273663, 3234.3127844606456, 3259.0269775447046, 3297.9319184672345, 3310.299275119781, 3320.2543456937437], [3173.2320350842083, 3184.843948302068, 3215.2194715585997, 3207.8618962783175, 3220.3198957307663, 3213.900300028914, 3208.5691634944833, 3190.324101257667, 3150.6614226865354, 3142.8357278797466, 3155.157959274499, 3146.2425334128493, 3117.236762388264, 3133.5862100560066, 3156.7674864737787, 3152.552700297507, 3131.3823536956975], [34195.564496956766, 33641.35014495978, 33930.435228903865, 34634.93575840518, 33484.84134594639, 33851.77694423968, 34392.22689788687, 34245.17707596013, 35745.724886402655, 35614.89068247676, 36579.60096269297, 35613.20674462212, 35893.72479553239, 35911.27020851794, 35254.18161353397, 35417.706637788724, 35700.51152461849], [34195.564496956766, 33634.560027981795, 34110.18049997035, 34708.088781715, 33286.50376125862, 33498.03933478934, 33997.349165654436, 33525.90434395625, 34950.55871603855, 34800.154358583, 35511.957711134826, 34406.15206049264, 34594.43966250144, 34529.036392262686, 33745.16425177426, 33729.937210968805, 33669.695200035065], [33097.63671130043, 32835.31755668213, 33343.49362163755, 33867.382585283354, 32887.66821039702, 33892.22835401708, 33551.63438511647, 33962.931898379116, 35592.47404623704, 34713.24627486187, 35654.802932371356, 35201.9479161829, 35381.787162380395, 35824.45231822094, 35397.206821286745, 34582.48810390128, 34996.21319368612], [33097.63671130043, 32828.69012804868, 33520.12959046294, 33938.91444678255, 32692.867804700836, 33538.068043418236, 33166.40799840932, 33249.587337210025, 34800.71695161744, 33919.13622374454, 34614.15162031344, 34008.83221538669, 34101.033206026776, 34445.560144384, 33882.067419196195, 32934.519568782955, 33005.46073616657], [29576.147776884878, 29715.79056568142, 29828.832767716183, 29769.16292169468, 30080.693158908398, 30079.085113419063, 29936.30230581552, 30079.58724128338, 29586.75109012121, 29535.823830594392, 29939.07842073836, 30082.67995334284, 29895.5972823925, 30079.8137161512, 30506.236204362533, 30641.09276752171, 30804.294690787046], [34346.71094688275, 34508.87778952886, 34554.29441229562, 34434.40016026815, 34816.48788521054, 34847.95830240957, 34698.882329336055, 34922.696868799125, 34485.01902983022, 34497.741620886176, 35175.4293397357, 35358.01786060599, 35046.88067240655, 35425.24929631211, 35788.07046138514, 35939.52918892875, 36151.14045010896], [28335.329312139664, 28469.11361821175, 28506.58139683928, 28407.671107609985, 28722.885613275816, 28748.84805947057, 28625.86345124714, 28810.50583783078, 28449.43063272631, 28459.926508381825, 29019.0049224428, 29169.63669255544, 28912.95491878914, 29225.101242678073, 29524.421233161513, 29649.371564760448, 29823.946498033427], [978.0617717704337, 982.6796575903064, 983.197493387419, 978.7207258553836, 997.454925210107, 997.984808088222, 1000.8709181175659, 988.0442637983051, 993.7835017278345, 1007.1871546295171, 1030.9547986509072, 1035.7157912820423, 999.3727505095369, 1014.5884905117235, 1042.693223951303, 1026.7512531059149, 1045.3650860219166], [0.0019383188997990075, 0.0034641607852239353, 0.0051371347153443825, 0.0073067470481034125, 0.002151511472250789, 0.0009155934312508052, 0.005071539071470843, 0.0002813484124575272, 0.001638761038026182, 0.00779575299858104, 0.0059852136041746995, 0.006873720465355726, 0.0027122686291662923, 0.0024054440346314987, -0.0025244945618511094, 0.0038447636712271027, 0.0021001777515716746], [2.3548476e6, 2.342407699727753e6, 2.3531732617608756e6, 2.3544590601503025e6, 2.318726071639517e6, 2.3381983319862615e6, 2.3374901610418144e6, 2.3283232163165906e6, 2.362208568419968e6, 2.3720770171588333e6, 2.368246782227599e6, 2.3656730470165075e6, 2.378263627054326e6, 2.3905849264855357e6, 2.3725504635455986e6, 2.384796128022753e6, 2.3866653513674582e6], [0.0016459319014481277, 0.0010839703125167899, 0.0015736639083838116, 0.0016785809935030314, 0.00011090133426323433, 0.0009497116647909077, 0.000965993072926283, 0.0005151954414437781, 0.0019461456561448763, 0.0023918755992763897, 0.0021933228990460045, 0.002081788249390881, 0.0025133991428856702, 0.002892107258591496, 0.00187804052154472, 0.0023349072435120063, 0.0022873370150730916], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 520.5295526038178 259.46255329042145 … 137.6440561786683 507.2885197661567; … ; 538.4282285285136 254.21348617143866 … 142.40397714438262 529.1663870012752; 521.6902960341979 256.9623472945898 … 143.0497185683965 532.0064061145885], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 520.4244897410769 259.4101837784768 … 137.6162743197729 507.186129452571; … ; 512.7703644567146 242.09938306946987 … 135.61796241621786 503.9498799356083; 492.01404983160637 242.34509652132635 … 134.91236447207112 501.74333009184204]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 71756.80740848665, 72940.27451079307, 73442.35187069116, 73175.92350063204, 74424.4546752723, 75213.05146810507, 75277.65466286683, 75538.99670341743, 76126.57250897247, 77436.5895562433, 76833.46089259027, 77427.8724077178, 77668.41060147232, 77046.37940131103, 76583.58934413418, 77352.91517783863], [72422.0, 71807.7537740971, 72380.1281955477, 72405.34957408671, 72022.02921078201, 72994.72520106331, 73382.70586375821, 73813.33713892188, 73891.1064584415, 74074.92066736343, 75039.28239738442, 74474.18016435101, 75163.96358915757, 75397.88334923194, 75312.55021812535, 74714.04233504793, 75192.26351481711], [64900.92049553802, 64330.79593160165, 65397.264313148364, 65871.07081956755, 65660.1934189941, 66778.79783500197, 67483.09322352159, 67568.26283785801, 67799.41907767371, 68363.61208741022, 69530.30313090101, 68991.95934900346, 69521.98725612741, 69716.02426314885, 69146.41683495675, 68758.92231562312, 69451.3065156745], [64900.92049553802, 64376.4699292042, 64895.04469747203, 64940.97462874902, 64624.812946399565, 65495.945096160656, 65840.85985260484, 66253.91010225397, 66320.36843907714, 66521.17618079364, 67377.7613620997, 66873.4630818222, 67489.23812924726, 67677.97389258633, 67590.3660983386, 67080.38989550468, 67511.36565401319], [40512.94792630534, 39932.56613205775, 40579.135777747484, 40691.81198421009, 40355.46763163128, 41124.97440173064, 41601.71987496387, 41462.16239730964, 41643.56578808893, 41704.413146634695, 42541.79353733803, 42171.84637988082, 42503.38616927243, 42796.99081557143, 42508.199781327006, 42017.92932729715, 42417.99635952451], [40512.94792630534, 39960.91771551592, 40267.50748275961, 40117.24565557563, 39719.11155388438, 40334.94391665969, 40589.32211127654, 40655.631279264904, 40735.10752384115, 40580.456908812026, 41224.7708380922, 40876.89983858927, 41260.63226457263, 41545.88070261648, 41551.60768863876, 40992.19398667671, 41233.16041422709], [14866.888022051655, 14669.947578229487, 14931.613974758933, 15033.522457641759, 14796.981600968982, 14837.686815026842, 14863.310866506907, 14797.083376535984, 14971.849038803126, 14915.059398194866, 15098.42958008978, 15241.246030961123, 15135.223107992684, 15118.829228232526, 15352.21585009723, 15313.136968481425, 15465.398426518894], [14866.888022051655, 14680.363043183974, 14816.946342854291, 14821.249880340873, 14563.651404921266, 14552.647733973628, 14501.605083008835, 14509.247250549137, 14645.23675829899, 14513.09057083949, 14631.00747992632, 14773.24188774717, 14692.685246631447, 14676.851421311616, 15006.734075686796, 14939.314983062242, 15033.412912427737], [15944.236265986641, 15841.651633975653, 15969.906136743939, 16134.714206268316, 16177.469355121639, 16526.23580233104, 16609.330213295394, 16579.877116326174, 16445.59539478252, 16772.575894818572, 17057.082637275686, 16602.24331465441, 17459.722387652237, 17491.378823735347, 16449.236958134723, 16486.726317085602, 17314.513761449263], [15944.236265986641, 15852.898993009152, 15847.264919154512, 15906.892857131543, 15922.370565518555, 16208.758885269122, 16205.134213350582, 16257.361693721426, 16086.833200332318, 16320.546004479334, 16529.023917878083, 16092.447813543766, 16949.218634237983, 16980.04285083469, 16079.068141627487, 16084.254845851405, 16830.878039808067], [15944.236265986641, 15788.250507721143, 16022.252605314861, 16112.15018097489, 16031.186037905896, 16336.773693628587, 16542.534354296335, 16547.8619949831, 16602.856463834192, 16716.715427287745, 17007.581473640173, 16886.31812834585, 17017.106960114823, 17111.194081215017, 16976.40329772336, 16837.513543958223, 16989.59335863238], [15944.236265986641, 15799.45995267512, 15899.209391959956, 15884.647434734863, 15778.3939562521, 16022.93643455596, 16139.963863548679, 16225.969337572405, 16240.663604523268, 16266.191006422643, 16481.055227387827, 16367.799705925474, 16519.54481207436, 16610.972277023273, 16594.371284125304, 16426.478707955648, 16515.033439849834], [3173.2320350842083, 3129.4336412286657, 3153.7558233802474, 3157.1401471588338, 3124.6197342655805, 3189.5160029244776, 3236.8429681079456, 3222.221335495849, 3231.977306466474, 3237.4620049494197, 3281.548435248088, 3263.8434830925275, 3296.591849655218, 3349.295136642358, 3327.8671745498727, 3276.2262269466187, 3295.3123370096473], [3173.2320350842083, 3131.655496913139, 3129.5364916667536, 3112.5614878442393, 3075.3483250801432, 3128.2438705623513, 3158.0728453301213, 3159.5419761464273, 3161.4714206626054, 3150.2106725212952, 3179.9571900622623, 3163.6225254499423, 3200.2030024926758, 3251.383182159814, 3252.9778251756957, 3196.2474874264044, 3203.2663932366704], [34195.564496956766, 34797.50603569583, 35492.78179949581, 35862.85698054944, 35054.00728029806, 35017.04088653732, 36132.55873413301, 36849.974808777704, 37178.127500712275, 36852.61066428348, 37331.43628607214, 37100.811733839815, 37487.01771516064, 37526.400919511725, 37836.1635406214, 37570.25841321475, 38013.19656632639], [34195.564496956766, 34822.21179573251, 35220.214262889494, 35356.475252509095, 34501.24871023713, 34344.346734144725, 35253.25562434135, 36133.16097987879, 36367.08318838923, 35859.41309810423, 36175.71752350857, 35961.57852595342, 36390.937100417854, 36429.36912361918, 36984.70958475388, 36653.09894277789, 36951.397199244144], [33097.63671130043, 33484.86397147247, 34033.163177952985, 34280.55375797896, 33208.002367387504, 33081.48323035353, 33993.868220794204, 34411.44303608347, 34700.14101896959, 34118.0865949595, 34592.15248453182, 34282.68656674529, 35157.47697236019, 35265.18918557969, 35099.43672887, 34804.46168194477, 35858.18993598077], [33097.63671130043, 33508.63777334467, 33771.80481211008, 33796.51407147098, 32684.353023778945, 32445.972068983872, 33166.61116821919, 33742.06406449305, 33943.15421242037, 33198.58591487204, 33521.23736202023, 33229.98790148201, 34129.5096567024, 34234.26074915106, 34309.569272582245, 33954.820423320256, 34856.58505089024], [29576.147776884878, 29316.33500034067, 29809.05972132499, 30021.341184537556, 29895.775091326792, 30463.54764892239, 30826.722431576516, 30889.146781531348, 31007.176252987934, 31247.38158175006, 31814.471966676945, 31577.15804624553, 31778.764819075477, 31889.50020776129, 31640.030643522172, 31415.303010166488, 31704.645702489608], [34346.71094688275, 34044.99097971232, 34600.7863883623, 34855.32565508268, 34771.05139457002, 35309.40657371201, 35644.423024665644, 35665.71227568754, 35777.39148400608, 36093.91734334426, 36680.56390543498, 36388.98955538952, 36707.77086273533, 36785.54627744635, 36471.018371947815, 36318.039535577576, 36707.46161182709], [28335.329312139664, 28086.416551816157, 28544.936319797078, 28754.92597372774, 28685.401444061536, 29129.53338180298, 29405.91505565338, 29423.478249388216, 29515.61129671023, 29776.738613210076, 30260.709947536157, 30020.167112436513, 30283.15512710165, 30347.318242796573, 30087.839197075387, 29961.63480699442, 30282.900001470007], [978.0617717704337, 969.4699515485318, 987.4182034610641, 994.4039799474218, 993.3669330973281, 1005.8436123675705, 1011.9477672794388, 1013.4037806390592, 1014.8513406797452, 1022.3131623159164, 1035.267258789039, 1025.811747368406, 1035.45157431663, 1040.9777779412216, 1035.3678194867334, 1025.5797698790154, 1039.1992013577803], [0.0019383188997990075, 0.006606915927781953, 0.005002760602064171, 0.007352217332445399, 0.006406190356976982, 0.009064960535340338, 0.007884733496392071, 0.00617599866946561, 0.00597670779007653, 0.0034085231370473146, 0.006228063099480652, 0.009750561141601333, 0.001022232957388347, 0.002595975697647912, 1.2398625185205958e-5, 0.004560171257316004, 0.004497628776414242], [2.3548476e6, 2.3585004996332433e6, 2.36603453431644e6, 2.370498783218781e6, 2.3689297406765283e6, 2.3596328163884855e6, 2.3896090404809685e6, 2.404319079657286e6, 2.4030427604770856e6, 2.410637768970612e6, 2.408586233156943e6, 2.41283971166401e6, 2.4121518988706027e6, 2.4158908502277085e6, 2.4144016218583495e6, 2.405460549986655e6, 2.422108858890411e6], [0.0016459319014481277, 0.0018282725474971725, 0.002121925950270894, 0.0023191381679425666, 0.002229349732931583, 0.0018863109922224845, 0.0031771421128739923, 0.0036891428085911483, 0.0035009638596579322, 0.0036308698077333074, 0.0034212792261477916, 0.003565447551431786, 0.0032969056683279543, 0.0032648605330148008, 0.0029628051335166975, 0.0024838574143280275, 0.003083935189959198], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 513.5323156885711 255.97471874399452 … 135.79377108680404 500.4692759029941; … ; 557.988485713482 279.7159843657496 … 144.01976634139197 524.5325987045475; 558.4915415147232 282.1627534984208 … 145.07430778011226 529.5391332759764], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 513.8969167076626 256.1564573424517 … 135.89018283307985 500.82460233999524; … ; 544.3669551283525 272.88760002854286 … 140.50397757099458 511.72778817693325; 542.8915389138784 274.28127390340586 … 141.02203588258726 514.7478405843275]), BeforeIT.Data{Float64, Vector{Float64}, Matrix{Float64}}([72422.0, 72778.67247939, 72361.96445060895, 73213.26933054916, 72513.04444500057, 72663.13278041253, 73645.39783058336, 73999.2613400394, 74143.34448569133, 75610.98304405507, 77205.46365294818, 77378.6211083045, 77186.96834010232, 78309.43352047382, 78086.2876053575, 78363.17748890725, 77587.45274575072], [72422.0, 72728.7002337789, 71994.89309836294, 72756.64609745004, 72851.52100102206, 72869.2796536801, 73716.93587477098, 73100.01937111998, 72573.28522391914, 73616.56903575403, 74745.60523672967, 74886.15834547002, 74766.60019291117, 74794.71528693377, 74436.61643245738, 74602.18761473073, 73591.0464091162], [64900.92049553802, 65222.733392249225, 64855.045676132475, 65626.2626156571, 65001.02931399031, 65132.200298555515, 66032.16608697589, 66343.80085038891, 66471.8975843831, 67800.50795349527, 69248.3541611585, 69403.65350726279, 69225.33286189812, 70207.38697730361, 69986.97908395692, 70249.52702439258, 69519.48043983334], [64900.92049553802, 65177.94930452865, 64526.05475532124, 65216.95872189874, 65304.44126846612, 65316.98175411374, 66096.30875107285, 65537.5883420213, 65064.288861390116, 66012.1132337283, 67042.01877072139, 67168.07448693625, 67054.61940804956, 67056.30833907268, 66715.86109545677, 66877.94654143129, 65938.64252961459], [40512.94792630534, 40689.231072820345, 40375.4705931527, 40832.114326110626, 40437.259092033164, 40576.81963768912, 40954.87867753684, 41180.91016718087, 41237.285178328675, 41998.12137476566, 42801.05302986383, 42955.321031003485, 42924.88785278265, 43719.90379497443, 43691.35406416128, 43755.92387003793, 43537.182877597814], [40512.94792630534, 40661.29249988911, 40170.65748863398, 40577.448850462, 40626.0122232413, 40691.93694925233, 40994.66163759732, 40680.47810785989, 40364.04453921678, 40890.32409162022, 41437.36028666888, 41571.67608357643, 41578.883034678525, 41757.647957730514, 41649.26600589886, 41655.886685688856, 41294.65180622203], [14866.888022051655, 14955.60614880818, 14904.81504324953, 14920.249662199078, 14587.43511323753, 14907.402009915615, 15117.937983982634, 15196.639504768073, 15313.52141768476, 15570.063881105734, 15493.224481016334, 15525.440855214138, 15379.446289622834, 15761.190732960584, 15973.026379835863, 15732.896868634758, 15760.14966171764], [14866.888022051655, 14945.337134572661, 14829.207220072774, 14827.193680657847, 14655.526376486901, 14949.694630606364, 15132.623324104112, 15011.96933669124, 14989.242329670004, 15159.367547525117, 14999.591817850065, 15025.346867314725, 14897.189728426863, 15053.790079411538, 15226.463881986221, 14977.806688393219, 14948.369409299874], [15944.236265986641, 16064.091931755538, 15969.953044802487, 16237.473916675857, 16027.959448992411, 15751.704384333494, 16100.933216805963, 16435.720146053285, 16184.089587031904, 16731.69533649866, 17829.514730884468, 17585.786185691097, 17494.018047076403, 17713.615105608806, 16807.980545917584, 17588.06209367253, 16573.042380786235], [15944.236265986641, 16053.06179448886, 15888.94208408618, 16136.202550091773, 16102.774795057017, 15796.392309051436, 16116.57342387737, 16235.992620709083, 15841.3753498238, 16290.358294996437, 17261.445065957534, 17019.32588186048, 16945.45441051844, 16918.584887731962, 16022.393166182886, 16743.9344617876, 15719.39131680651], [15944.236265986641, 16015.61668777426, 15913.085440605926, 16090.37097143157, 15953.628160870518, 15989.503309449345, 16176.27887233198, 16253.390134983612, 16274.961432326627, 16581.837370439294, 16968.313675472134, 17054.069100041506, 17027.879822111863, 17287.05344730054, 17230.31822869896, 17271.59935592556, 17128.636006094617], [15944.236265986641, 16004.619835214706, 15832.362952826057, 15990.017069988302, 16028.096543177075, 16034.865874841355, 16191.992269052611, 16055.878291190525, 15930.322893168981, 16144.453178308046, 16427.682906239617, 16504.73607267773, 16493.932980799975, 16511.168356272217, 16424.991228688465, 16442.66014786876, 16246.367197799298], [3173.2320350842083, 3181.2871013286494, 3159.0990365702387, 3194.070442975187, 3166.774334397677, 3169.896018925432, 3187.2445139956076, 3204.620848147639, 3210.8206810735064, 3263.757086916806, 3339.061047179559, 3366.4953795968445, 3362.872578445263, 3418.224914409134, 3417.9573439851174, 3420.794895729359, 3409.470857457315], [3173.2320350842083, 3179.1027242993437, 3143.0738392993053, 3174.1493714842736, 3181.556210936014, 3178.8890822283697, 3190.3405559153384, 3165.6781680594395, 3142.8283510379742, 3177.667968751976, 3232.6745684182383, 3258.0563268621727, 3257.4222693196657, 3264.806649292023, 3258.2056030445074, 3256.616063569394, 3233.854434219867], [34195.564496956766, 34811.00509964384, 35734.04525157069, 35111.451517321424, 35461.22342319838, 35070.31952654304, 35482.549325623004, 35920.048299870345, 36377.615861261605, 35404.754406510045, 34823.742680063806, 34053.51297081031, 33444.817907035125, 34794.76766026613, 35579.662590296546, 34780.368118329265, 36946.57792286331], [34195.564496956766, 34787.102711244195, 35552.77675766916, 34892.46519616353, 35626.7494036405, 35169.81477865021, 35517.01654633632, 35483.546443339284, 35607.28356642982, 34470.87237897896, 33714.216586148395, 32956.606463460615, 32396.081654121055, 33233.09368524812, 33916.70648264301, 33111.106910389055, 35043.51843447228], [33097.63671130043, 33741.26177363728, 34622.31948216632, 33888.020091757455, 34000.83263246112, 33643.11277806892, 34010.901373365436, 34734.056777833895, 34969.1675586153, 34093.6519548253, 33742.07126887929, 32741.439934414797, 32056.201756415205, 33680.04377333627, 33965.735974852745, 33494.073461766864, 35229.500097213655], [33097.63671130043, 33718.09390641542, 34446.69045209915, 33676.66417992463, 34159.54179740365, 33738.55901388066, 34043.93905714448, 34311.9671374802, 34228.660561221004, 33194.353277366965, 32667.008519894312, 31686.79695074249, 31051.008634834205, 32168.40132318853, 32378.213104252707, 31886.547131527637, 33414.8845576839], [29576.147776884878, 29722.801872342476, 29535.0967093524, 29883.467433428414, 29627.87122677416, 29729.9391101603, 30091.65722265606, 30220.85801023183, 30258.023140062236, 30845.440016339715, 31541.244788566648, 31687.22997873939, 31623.23073982324, 32095.53383767175, 31970.75715891088, 32065.403098880623, 31757.662972768612], [34346.71094688275, 34517.02000348672, 34339.73023998506, 34745.1534324405, 34389.89170522452, 34420.23283792828, 34944.6408685695, 35122.097442426275, 35206.10719979284, 35924.06882048894, 36662.568995679154, 36677.345118615754, 36572.00325475136, 37071.49030429263, 36975.094896694274, 37143.11188197755, 36725.86776116377], [28335.329312139664, 28475.830777074003, 28329.570372685936, 28664.036158558996, 28370.952548654346, 28395.98335839312, 28828.60918580144, 28975.00720529775, 29044.313525314705, 29636.617079135704, 30245.864517513404, 30258.054514687017, 30171.14964605001, 30583.21617718857, 30503.69195075823, 30642.302504048093, 30298.084695679296], [978.0617717704337, 982.9115164201688, 980.2187267951148, 997.6417497880798, 983.2663819914274, 982.0283504671022, 995.8679957503648, 1000.8453977307701, 1007.7672445280723, 1030.9991166666089, 1044.5403769127602, 1039.0784099076197, 1030.0988673235015, 1040.362835339259, 1041.1270283518288, 1041.0120435343808, 1035.9497059009734], [0.0019383188997990075, 0.0010373908252390152, 0.003370978142227088, 0.006267186915072553, 0.005260135376057518, 0.00928012483935059, 0.009101028094665287, 0.004493053844932815, 3.524053569048391e-5, -0.0016461205924724887, 0.0014591638324072953, 0.002971235729445132, 0.0026376982062688015, -0.0018277445258746416, -0.000987582636484463, -0.0014087703621578074, 0.0006047837843068393], [2.3548476e6, 2.3857753921475084e6, 2.3884348071954935e6, 2.379589959868747e6, 2.3794437482792065e6, 2.384974617214357e6, 2.408294587701246e6, 2.407312105505114e6, 2.413728129827542e6, 2.3920589326653266e6, 2.374182776573776e6, 2.3583877302324884e6, 2.345703849359788e6, 2.378784650494084e6, 2.384362906552679e6, 2.357544669897643e6, 2.4002633446569727e6], [0.0016459319014481277, 0.0028397113105430374, 0.0028164773283182115, 0.0023875379887354515, 0.0023254471860215285, 0.0025948791722485527, 0.0035733733295688873, 0.0033718053436452896, 0.003385139866673902, 0.0022137277840017368, 0.001348267455862829, 0.000662262640910635, 0.000144763894591903, 0.001479245768662792, 0.001577723752302773, 0.00032228339499080724, 0.0020945827457468226], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 520.6523692023319 259.52377230878017 … 137.6765326724641 507.4082122027378; … ; 579.3067901137362 286.23831265501633 … 147.85856719085706 544.8946907659881; 565.7135615975737 279.92885485833517 … 146.8830566803667 541.2669914905986], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 520.2948720512369 259.3455746960738 … 137.5819994078246 507.0598089282411; … ; 551.5033364831341 272.5004905044374 … 140.76219116534713 518.7428235225558; 536.5745554531495 265.51016459628175 … 139.31734395636167 513.3871893054107])])
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))
Theme
Automatic (OS) documenter-light documenter-dark catppuccin-latte catppuccin-frappe catppuccin-macchiato catppuccin-mocha
This document was generated with Documenter.jl version 1.8.0 on Friday 6 December 2024 . Using Julia version 1.10.7.