in fact, the most recent code does not work. there is a version that works burried somewhere in the tree, but that will only work with an old julia version. This repo is ARCHIVED. in short - hands off this code.
new version is here: https://github.com/floswald/DCEGM.jl
archived stuff from here on:
- Installation
- Standard Lifecycle Savings
- Lifecycle Savings with discrete Retirement choice
- License
# in Julia:
Pkg.clone("https://github.com/floswald/ConsProb.jl")
this repo has julia
code that computes the solution to a finite time savings problem with iid or AR1 income uncertainty using 3 different methods:
- value function backward iteration
- euler equation backward iteration
- endogenous grid method
It also has julia implementation of the discrete choice model which is based on code from Fedor Iskhakov's github. This implements the method in the working paper by Iskhakov, Jorgensen, Rust and Schjerning
using ConsProb
Plotting.doplots()
Plotting.printplots(dir)
In this section, dashed lines in a graph stand for an analytic solution in that region (i.e. no approximation to be done).
Please observe the license when using this code in your work (see file LICENSE
). Thank you.