@@ -17,6 +17,9 @@ r <- r_w
1717η <- 2.5
1818η_b <- 2.5
1919ω <- 0.5
20+
21+ T <- 20
22+
2023hand_to_mouth <- 0.0
2124
2225y[~] <- y_bar
@@ -31,47 +34,59 @@ b_τ[~] <- 0
3134p[~] <- β/(1-β)*r
3235q[~] <- p[~]*a[~]*y[~]/r
3336n[~] <- 1 # total number of shares
34- x[~] <- 1/χ # number of shares per top earner
3537
36- W_τ[~] <- p[~]*(b_τ[~]) + q[~]*x[~]
38+ W_τ[~] <- p[~]*(b_τ[~]) + q[~]
3739W_b[~] <- 1.0 + p[~]*(b_b[~])*0 # adding/removing the last term affects the result !
38- c_b[~] <- a[~]*(1-y[~])*(1-ζ[~])/(1-χ)
39- c_τ[~] <- a[~]*(1-y[~])*ζ[~]*x[~] + b_τ[~]*r + (a[~]*y[~])*x[~]
40- y_b[~] <- a[~]*(1-y[~])*(1-ζ[~])/(1-χ) # labor income for bottom-earners
41- y_τ[~] <- a[~]*(1-y[~])*ζ[~]*x[~] + (a[~]*y[~])*x[~] # top earners income (labor plus dividends)
40+ c_b[~] <- a[~]*(1-y[~])*(1-ζ[~])
41+ c_τ[~] <- a[~]*(1-y[~])*ζ[~] + b_τ[~]*r + (a[~]*y[~])
42+ y_b[~] <- a[~]*(1-y[~])*(1-ζ[~]) # labor income for bottom-earners
43+ y_τ[~] <- a[~]*(1-y[~])*ζ[~] + (a[~]*y[~]) # top earners income (labor plus dividends)
4244c_b[~] <- b_b[~]*r + y_b[~]
4345c_τ[~] <- b_τ[~]*r + y_τ[~]
4446
45-
4647φ_τ <- (1-β_τ/p[~])*c_τ[~]^(-σ)/(W_τ[~])^(-η)
4748φ_b <- (1-β_b/p[~])*c_b[~]^(-σ)/(W_b[~])^(-η_b)
4849
50+ ΔNFA[~] <- 0.0
4951
5052
5153# exogenous processes
5254y[t] = y[~] + ρ_y*(y[t-1]-y[~])
5355ζ[t] = ζ[~] + ρ_ζ*(ζ[t-1]-ζ[~])
54- x[t] = x[~]
56+
5557a[t] = 1 + ρ_a*(a[t-1]-1)
5658
57- d[t] = d[t-1] + e_d[t] # income shock for top earners
58- d_b[t] = d_b[t-1] + e_d_b[t] # income shock for bottom earners
59+ d[t] = d[t-1] + e_d[t] # income shock for top earners (aggregate)
60+ d_b[t] = d_b[t-1] + e_d_b[t] # income shock for bottom earners (aggregate)
5961
60- y_b[t] = a[t]*(1-y[t])*(1-ζ[t])/(1-χ) # labor income for bottom-earners
61- y_τ[t] = a[t]*(1-y[t])*ζ[t]*x[t] + (a[t]*y[t])*x[t] # top earners income (labor plus dividends )
62+ y_b[t] = a[t]*(1-y[t])*(1-ζ[t]) # labor income for bottom-earners (aggregate)
63+ y_τ[t] = a[t]*(1-y[t])*ζ[t] + (a[t]*y[t]) # top earners income (per capita )
6264
63- c_b[t] = d_b[t]/(1-χ) + b_b[t-1]*r - (b_b[t]-b_b[t-1])*p[t] + y_b[t]
64- c_τ[t] = d[t] + b_τ[t-1]*r - (b_τ[t]-b_τ[t-1])*p[t] + y_τ[t]
65+ c_b[t] = d_b[t] + b_b[t-1]*r - (b_b[t]-b_b[t-1])*p[t] + y_b[t] # consumption bottom earners (aggregate)
66+ c_τ[t] = d[t] + b_τ[t-1]*r - (b_τ[t]-b_τ[t-1])*p[t] + y_τ[t] # consumption top earners (aggregate)
6567
66- W_τ[t] = q[t]*x[t] + p[t]*(b_τ[t])
67- W_b[t] = 1 + p[t]*(b_b[t])
68+ W_τ[t] = q[t] + p[t]*(b_τ[t]) # wealth top earners (aggregate )
69+ W_b[t] = 1 + p[t]*(b_b[t]) # wealth bottom earners (aggregate)
6870
6971p[t] = β_b*(c_b[t+1]/c_b[t])^(-σ)*(r+p[t+1]) + φ_b*(W_b[t])^(-η_b)/(c_b[t])^(-σ)*p[t]
7072p[t] = β_τ*(c_τ[t+1]/c_τ[t])^(-σ)*(r+p[t+1]) + φ_τ*(W_τ[t])^(-η )/(c_τ[t])^(-σ)*p[t]
7173
74+ q[t] = p[~]*a[~]*y[~]/r
75+
76+ ΔNFA[t] = b_τ[t] + b_b[t] - (b_τ[~] + b_b[~]) # change in net foreign asset position
77+
78+ # small open economy assumption:
7279r_w + p[t] = 1
7380
74- q[t] = p[~]*a[~]*y[~]/r
81+ # closed economy assumption:
82+ # b_τ[t] + b_b[t] = b_τ[~] + b_b[~] # net-zero change in bond supply
83+
84+
85+ ### Exogenous shocks
86+ # e_d[t] <- N(0, 0.01)
87+ # e_d_b[t] <- N(0, 0.01)
88+
7589
76- # e_d[t] <- N(0, 0.1)
77- e_d_b[t] <- N(0, 0.1)
90+ e_d[1] <- 0.01
91+ forall t, 2<=t<T: e_d[t] <- 0.02
92+ e_d_b[1] <- 0.01
0 commit comments