Skip to content

Commit

Permalink
Forgot to actually take expectations
Browse files Browse the repository at this point in the history
Kind of embarrassing typo.
  • Loading branch information
mnwhite committed Aug 20, 2024
1 parent 247c3e6 commit 71ad8af
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions HARK/ConsumptionSaving/ConsIlliquidAssetModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

from HARK.metric import MetricObject
from HARK.rewards import UtilityFuncCRRA

# from HARK.distribution import expected
from HARK.distribution import expected
from HARK.interpolation import (
LinearInterp,
LinearInterpOnInterp1D,
Expand Down Expand Up @@ -309,16 +308,19 @@ def solve_one_period_basic_illiquid(
aNrmNow[:, j] = temp_grid

# Compute end-of-period marginal value of liquid and illiquid assets
EndOfPrd_dvda, EndOfPrd_dvdb = calc_marg_values_next(
EndOfPrd_dvda, EndOfPrd_dvdb = expected(
calc_marg_values_next,
IncShkDstn,
aNrmNow,
bNrmNow,
CRRA,
Rboro,
Rsave,
Rilqd,
PermGroFac,
MargValueFuncNext,
args=(
aNrmNow,
bNrmNow,
CRRA,
Rboro,
Rsave,
Rilqd,
PermGroFac,
MargValueFuncNext,
),
)
Rliqd = Rsave * np.ones_like(EndOfPrd_dvda)
# Rescale expected marginal value by discount factor and return factor
Expand Down

0 comments on commit 71ad8af

Please sign in to comment.