Skip to content

Devetak/Mark0.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mark0.jl

A Julia implementation of the Mark0 model without a central bank. Based on the original C++ code avaiable at Mark0 C++ (GitLab).

    using Pkg
    Pkg.add(url="https://github.com/Devetak/Mark0.jl")

Usage to replicate the Mark0 phase transition.

using Mark0
using Plots

par = getParameters()
u1 = mark0_noCB(par, 2000, 41, 2000) # full employment
par[1] = 0.02
u2 = mark0_noCB(par, 2000, 41, 2000) # residual unemployment
par[1] = 0.08
par[2] = 5.0
u3 = mark0_noCB(par, 2000, 41, 2000) # endogenous crises
plot(100 * u1, label="full employment")
plot!(100 * u2, label="residual unemployment")
plot!(100 * u3, label="endogenous crisis")
xlabel!("time")
ylabel!("unemployment")

plot

About

A Julia implementation of the Mark0 model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages