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