Skip to content

Commit

Permalink
small_mistakes_forget_after_lb
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah-Heyl committed Aug 30, 2023
1 parent 37fe695 commit c997e23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lectures/dynamic_programming/coleman_policy_iter.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function K!(Kg, g, grid, beta, dudc, f, f_prime, shocks)
for (i, y) in enumerate(grid)
function h(c)
vals = dudc.(g_func.(f(y - c) * shocks)) .* f_prime(y - c) .* shocks
return dudc * c - beta * mean(vals)
return dudc(c) - beta * mean(vals)
end
Kg[i] = find_zero(h, (1e-10, y - 1e-10))
end
Expand Down
2 changes: 1 addition & 1 deletion lectures/dynamic_programming/egm_policy_iter.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ The first step is to bring in the model that we used in the {doc}`Coleman policy
```{code-cell} julia
# model
function Model(alpha = 0.65, # productivity parameter
function Model(;alpha = 0.65, # productivity parameter
beta = 0.95, # discount factor
gamma = 1.0, # risk aversion
mu = 0.0, # lognorm(mu, sigma)
Expand Down

0 comments on commit c997e23

Please sign in to comment.