Skip to content

Commit

Permalink
Apply formatting to Markdown files
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 30, 2023
1 parent 2b7460f commit 37fe695
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -465,7 +465,7 @@ Here's an object containing data from the log-linear growth model we used in the

```{code-cell} julia
isoelastic(c, gamma) = isone(gamma) ? log(c) : (c^(1 - gamma) - 1) / (1 - gamma)
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, # First parameter in lognorm(mu, sigma)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ We'll use the default parameterizations found in the code above.
u(c, sigma) = (c^(1 - sigma) - 1) / (1 - sigma)
# model constructor
function McCallModel(;alpha = 0.2,
function McCallModel(; alpha = 0.2,
beta = 0.98, # discount rate
gamma = 0.7,
c = 6.0, # unemployment compensation
Expand Down
2 changes: 1 addition & 1 deletion lectures/dynamic_programming/odu.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ phi_init = ones(sp.n_pi)
g(x) = res_wage_operator(sp, x)
w_bar_vals = compute_fixed_point(g, phi_init)
w_bar = extrapolate(interpolate((sp.pi_grid,), w_bar_vals,
Gridded(Linear())), Flat())
Gridded(Linear())), Flat())
# Holds the employment state and beliefs of an individual agent.
mutable struct Agent{TF <: AbstractFloat, TI <: Integer}
Expand Down

0 comments on commit 37fe695

Please sign in to comment.