Skip to content

Commit

Permalink
allow time vary e in TPI calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Jan 16, 2024
1 parent 3b0e2e2 commit aaa8e03
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ogcore/TPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ def firstdoughnutring(
np.array([tr]),
np.array([ubi]),
theta[j],
p.e[-1, j],
p.rho[0, -1],
p.etr_params[0][-1],
p.mtry_params[0][-1],
Expand All @@ -177,7 +176,6 @@ def firstdoughnutring(
np.array([ubi]),
theta[j],
p.chi_n[-1],
p.e[-1, j],
p.etr_params[0][-1],
p.mtrx_params[0][-1],
None,
Expand Down Expand Up @@ -261,7 +259,7 @@ def twist_doughnut(
p_tilde_s = p_tilde[t : t + length]
n_s = n_guess
chi_n_s = p.chi_n[-length:]
e_s = p.e[-length:, j]
e_s = np.diag(p.e[t : t + p.S, :, j], max(p.S - length, 0))
rho_s = np.diag(p.rho[t : t + p.S, :], max(p.S - length, 0))

error1 = household.FOC_savings(
Expand Down Expand Up @@ -823,6 +821,7 @@ def run_TPI(p, client=None):
bmat_s[: p.T, :, :],
n_mat[: p.T, :, :],
p,
"TPI"
)

L[: p.T] = aggr.get_L(n_mat[: p.T], p, "TPI")
Expand Down Expand Up @@ -1143,7 +1142,7 @@ def run_TPI(p, client=None):
),
(1, p.S, 1),
)
e_3D = np.tile(p.e.reshape(1, p.S, p.J), (p.T, 1, 1))
e_3D = p.e
mtry_path = tax.MTR_income(
r_p_path[: p.T],
wpath[: p.T],
Expand Down

0 comments on commit aaa8e03

Please sign in to comment.