Skip to content

Commit 350b64c

Browse files
committed
move E_threshold definition, remove accounting of government bonds from commercial bank
1 parent 60b1d12 commit 350b64c

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/agent_actions/bank_accounting.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function bank_accounting!(bank::AbstractBank, model::AbstractModel)
1919
cap_firms = model.capital_firms
2020

2121
# update profits from government loans
22-
bank.profitsB += model.gov.bond_interest_rate * model.gov.bonds
22+
# bank.profitsB += model.gov.bond_interest_rate * model.gov.bonds
2323

2424
#pay dividends
2525
div_B = 0.3

src/agent_actions/government.jl

-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ function gov_accounting!(gov::AbstractGovernment, model::AbstractModel)
2121

2222
gov.GB -= gov.bond_interest_rate * gov.bonds # - model.EXP # public expenditure to corporate sector is zero now
2323
gov.stock_bonds = model.gov.stock_bonds - gov.GB
24-
model.bank.loans += min(0, gov.GB) # add new loans
2524
gov.bonds = max(0, model.gov.stock_bonds)
26-
27-
2825
gov.deficitGDP = -gov.GB / model.agg.Y_nominal_tot
2926

3027
end

src/model_init/init.jl

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function initialise_model(W, F, N; params = ABCredit.PARAMS_ORIGINAL)
2727
params[:init_price_k] = 3.0
2828
params[:init_K] = 10.0
2929
params[:maastricht] = false
30-
params[:E_threshold_scale] = 0.0
3130

3231
workers = ABCredit.initialise_workers(params)
3332

src/params/standard_params.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ const PARAMS_ORIGINAL = Dict(
4545
#hard coded parameters
4646
:wb => 1.0, #initial wage rate
4747
:tax_rate_d => 0.00, #taxes on dividends (set to zero)
48-
:r_f => 0.01, #general refinancing rate
48+
:r_f => 0.01, #general refinancing rate
49+
:E_threshold_scale => 0.0
4950
)
5051

5152
par[to_be] = estimated
@@ -88,6 +89,7 @@ const PARAMS_GRAZZINI = Dict(
8889
:wb => 1.0, #initial wage rate
8990
:tax_rate_d => 0.00, #taxes on dividends (set to zero)
9091
:r_f => 0.01, #general refinancing rate
92+
:E_threshold_scale => 0.0
9193
)
9294

9395

0 commit comments

Comments
 (0)