using QuantEcon
aiyagari_ddp = DiscreteDP(R, Q, beta)
results = solve(aiyagari_ddp, PFI)


To install the Julia QuantEcon package QuantEcon.jl start a Julia session and type


This installs the QuantEcon package through the Julia package manager (via git) to the default Julia library location ~/.julia/v0.XX/QuantEcon.


Once installed the QuantEcon package can be used in Julia via the using keyword such as

using QuantEcon

More detailed instructions on setting up a Julia environment can be found on this page.