Skip to content

Commit

Permalink
Discrepancy actually due to indexing offset error
Browse files Browse the repository at this point in the history
Had an off-by-one error in the "coefficient hacking" line, creating a discrepancy in the fourth decimal place. Now fixed,
  • Loading branch information
mnwhite committed Mar 7, 2024
1 parent 8c4e060 commit f245acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HARK/ConsumptionSaving/ConsIndShockModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ def calc_vPPnext(S, a, R):
# Adjust the coefficients on the kinked portion of the cFunc
cFuncNowUnc.coeffs[i_kink + 2] = [
c_for_interpolation[i_kink + 1],
m_for_interpolation[i_kink + 1] - m_for_interpolation[i_kink],
m_for_interpolation[i_kink + 2] - m_for_interpolation[i_kink + 1],
0.0,
0.0,
]
Expand Down

0 comments on commit f245acb

Please sign in to comment.