Matlab code to replicate all results in "Can Deficits Finance Themselves?". See the readme for detailed replication restrictions.
Reference: Angeletos, George-Marios, Chen Lian, and Christian K. Wolf (2024), "Can Deficits Finance Themselves?".
Tested in: Matlab R2021b