Skip to content

Commit 7889832

Browse files
committed
misc
1 parent 77c8ea4 commit 7889832

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/mccall_model_with_separation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,12 @@ def compute_reservation_wage(model):
473473
by finding the smallest w such that v_e(w) >= h.
474474
475475
"""
476-
# Find the first i such that v_e(w_i) >= h and return w_vals[i]
476+
# Find the first i such that v_e(w_i) >= h and return w[i]
477477
# If no such w exists, then w_bar is set to np.inf
478478
v_e, h = solve_model(model)
479479
accept = v_e >= h
480480
i = jnp.argmax(accept) # take first accept index
481-
w_bar = jnp.where(jnp.any(accept), w_vals[i], jnp.inf)
481+
w_bar = jnp.where(jnp.any(accept), model.w[i], jnp.inf)
482482
return w_bar
483483
```
484484

0 commit comments

Comments
 (0)