Skip to content

FRBNY-DSGE/SSJ.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sequence Space Jacobian (SSJ) using Julia

The SSJ.jl package is based on the toolkit from the paper "Using the Sequence-Space Jacobian to Solve and Estimate Heterogeneous-Agent Models" by Auclert et al. (2021).

This Julia implementation replicates the Python package found on the shade-econ/sequence-jacobian GitHub.

Code

Our SSJ implementation runs on Julia 1.7.3.

src: Contains the bulk of our SSJ implementation.

  • blocks: The SSJ has several subclasses of the abstract Block class.
    • SimpleBlock for explicit aggregate equilibrium conditions
    • SolvedBlock for implicit aggregate equilibrium conditions
    • CombinedBlock for combination of multiple blocks
    • HetBlock, see point below
  • classes: The SSJ has several classes for various implementations
    • impulse_dict.jl: Class for manipulating impulse responses
    • jacobian_dict.jl: Class for manipulating Jacobian dictionaries
    • result_dict.jl: Class for mapping and safe merging of results
    • sparse_jacobians.jl: Class sparse operator framework with rules for fast Jacobian construction and efficient time-shifted linear transformations
    • steady_state_dict.jl: Class for extending ResultDict to represent and manipulate steady-staste values with support for vector-valued entries and differential comparisons.
  • hetblocks: a type of the abstract Block class
    • HetBlock for collective actions of heterogeneous agents
  • utilities: general helper files and utility functions

test: Contains test files for our different model implementations: RBC, Krussel Smith, One-Asset HANK, Two-Asset HANK - figures: contains the impulse response functions for endogenous variables as a response to seven exogenous shocks. The 7 exogenous shocks computed are: monetary policy, government spending, TFP, discount rate, investment technology, price markup, and wage markup shocks. Our 5 endogenous variables for which we compute IRFs for are consumption, investment, output, interest rates, and wages.

Team

This package was constructed and developed by FRBNY summer interns:

  • Yuti Das
  • Elena Elbarmi
  • Nikhil Kumar
  • Samuel Ross
  • Arkajyoti Sinha
  • Elizabeth Wright

Disclaimer

Copyright Federal Reserve Bank of New York. You may reproduce, use, modify, make derivative works of, and distribute and this code in whole or in part so long as you keep this notice in the documentation associated with any distributed works. Neither the name of the Federal Reserve Bank of New York (FRBNY) nor the names of any of the authors may be used to endorse or promote works derived from this code without prior written permission. Portions of the code attributed to third parties are subject to applicable third party licenses and rights. By your use of this code you accept this license and any applicable third party license.

THIS CODE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT ANY WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, EXCEPT TO THE EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. FRBNY IS NOT, UNDER ANY CIRCUMSTANCES, LIABLE TO YOU FOR DAMAGES OF ANY KIND ARISING OUT OF OR IN CONNECTION WITH USE OF OR INABILITY TO USE THE CODE, INCLUDING, BUT NOT LIMITED TO DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, SPECIAL OR EXEMPLARY DAMAGES, WHETHER BASED ON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT OR OTHER LEGAL OR EQUITABLE THEORY, EVEN IF FRBNY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR LOSS AND REGARDLESS OF WHETHER SUCH DAMAGES OR LOSS IS FORESEEABLE.

About

The SSJ.jl package is based on the toolkit from the paper "Using the Sequence-Space Jacobian to Solve and Estimate Heterogeneous-Agent Models" by Auclert et al. (2021). This Julia implementation replicates the Python package found on the shade-econ/sequence-jacobian GitHub.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages