Skip to content

manuelamador/reputation_and_learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulation for Reputation and Sovereign Default

This file contains the code that solves the model and generates Figures 1 and 2 in the paper "Reputation and Sovereign Default" by Manuel Amador and Christopher Phelan.

Running the code

The code is in Julia. To run the code download and install julia.

Download this repository and navigate to its root folder.

Run julia and use the following commands to make sure that you have the necessary packages:

using Pkg
Pkg.activate(".")
Pkg.instantiate()

Then, run the script scripts/run.jl:

include(joinpath("scripts", "run.jl"))

The script solves the model, outputs the parameters, the value of T, the value of m, and generates Figure 1 and 2. The figures are saved in the output subdirectory.

Figure 1

Figure 1

Figure 2

Figure 2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages