From f245acb7ded295cd9a9b1e6409fa98689572f247 Mon Sep 17 00:00:00 2001 From: "Matthew N. White" Date: Thu, 7 Mar 2024 17:52:52 -0500 Subject: [PATCH] Discrepancy actually due to indexing offset error Had an off-by-one error in the "coefficient hacking" line, creating a discrepancy in the fourth decimal place. Now fixed, --- HARK/ConsumptionSaving/ConsIndShockModel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HARK/ConsumptionSaving/ConsIndShockModel.py b/HARK/ConsumptionSaving/ConsIndShockModel.py index e6c557268..bc4edd291 100644 --- a/HARK/ConsumptionSaving/ConsIndShockModel.py +++ b/HARK/ConsumptionSaving/ConsIndShockModel.py @@ -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, ]