All Projects → FRBNY-DSGE → Dsge.jl

FRBNY-DSGE / Dsge.jl

Licence: bsd-3-clause
Solve and estimate Dynamic Stochastic General Equilibrium models (including the New York Fed DSGE)

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to Dsge.jl

SMC.jl
Sequential Monte Carlo algorithm for approximation of posterior distributions.
Stars: ✭ 53 (-91.52%)
Mutual labels:  economics, bayesian-inference
Bda r demos
Bayesian Data Analysis demos for R
Stars: ✭ 409 (-34.56%)
Mutual labels:  bayesian-inference
nessai
nessai: Nested Sampling with Artificial Intelligence
Stars: ✭ 18 (-97.12%)
Mutual labels:  bayesian-inference
Pyvarinf
Python package facilitating the use of Bayesian Deep Learning methods with Variational Inference for PyTorch
Stars: ✭ 317 (-49.28%)
Mutual labels:  bayesian-inference
computational-economy
An agent-based computational economy with macroeconomic equilibria from microeconomic behaviors
Stars: ✭ 67 (-89.28%)
Mutual labels:  economics
Mostly Harmless Replication
Replication of tables and figures from "Mostly Harmless Econometrics" in Stata, R, Python and Julia.
Stars: ✭ 337 (-46.08%)
Mutual labels:  economics
viabel
Efficient, lightweight variational inference and approximation bounds
Stars: ✭ 27 (-95.68%)
Mutual labels:  bayesian-inference
Dbda Python
Doing Bayesian Data Analysis, 2nd Edition (Kruschke, 2015): Python/PyMC3 code
Stars: ✭ 502 (-19.68%)
Mutual labels:  bayesian-inference
Vae cf
Variational autoencoders for collaborative filtering
Stars: ✭ 386 (-38.24%)
Mutual labels:  bayesian-inference
0xdeca10b
Sharing Updatable Models (SUM) on Blockchain
Stars: ✭ 285 (-54.4%)
Mutual labels:  economics
Rstanarm
rstanarm R package for Bayesian applied regression modeling
Stars: ✭ 285 (-54.4%)
Mutual labels:  bayesian-inference
nway
nway -- Bayesian cross-matching of astronomical catalogues
Stars: ✭ 39 (-93.76%)
Mutual labels:  bayesian-inference
Bayadera
High-performance Bayesian Data Analysis on the GPU in Clojure
Stars: ✭ 342 (-45.28%)
Mutual labels:  bayesian-inference
mitre
The Microbiome Interpretable Temporal Rule Engine
Stars: ✭ 37 (-94.08%)
Mutual labels:  bayesian-inference
Bayesian Analysis Recipes
A collection of Bayesian data analysis recipes using PyMC3
Stars: ✭ 479 (-23.36%)
Mutual labels:  bayesian-inference
EmbracingUncertainty
Material for AMLD 2020 workshop "Bayesian Inference: embracing uncertainty"
Stars: ✭ 23 (-96.32%)
Mutual labels:  bayesian-inference
acclimate
Acclimate - an agent-based model for economic loss propagation
Stars: ✭ 17 (-97.28%)
Mutual labels:  economics
Akshare
AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
Stars: ✭ 4,334 (+593.44%)
Mutual labels:  economics
Ai Economist
Foundation is a flexible, modular, and composable framework to model socio-economic behaviors and dynamics with both agents and governments. This framework can be used in conjunction with reinforcement learning to learn optimal economic policies, as done by the AI Economist (https://www.einstein.ai/the-ai-economist).
Stars: ✭ 537 (-14.08%)
Mutual labels:  economics
Bayesian Stats Modelling Tutorial
How to do Bayesian statistical modelling using numpy and PyMC3
Stars: ✭ 480 (-23.2%)
Mutual labels:  bayesian-inference

New York Fed DSGE Model (Version 1002)

Build Status codecov

The DSGE.jl package implements the New York Fed dynamic stochastic general equilibrium (DSGE) model and provides general code to estimate many user-specified DSGE models. The package is introduced in the Liberty Street Economics blog post The FRBNY DSGE Model Meets Julia. (We previously referred to our model as the "FRBNY DSGE Model.")

This Julia-language implementation mirrors the MATLAB code included in the Liberty Street Economics blog post The FRBNY DSGE Model Forecast.

Documentation for the code can be accessed by clicking on the docs|dev button above. For documentation about the most recent model version, read this pdf.

The New York Fed DSGE team is currently extending the code to solve and estimate heterogeneous agent models. Filtering and smoothing algorithms are available in the registered package StateSpaceRoutines.jl. An implementation of Sequential Monte Carlo (SMC) sampling, used for the estimation of DSGE models, can be found in the registered package SMC.jl. The foundational AbstractModel type, from which the AbstractDSGEModel type derives, is defined in the registered package ModelConstructors.jl.

Further extensions of the DSGE model code may be released at the discretion of the New York Fed.

Installation

DSGE.jl is a registered Julia package in the General registry. To install it, open your Julia REPL, type ] to enter the package manager, and run

pkg> add DSGE

If you use any code that loads data (e.g. the example script run_default.jl and make_packet.jl), then you need make sure you have a FRED API key by following these instructions for the FredData.jl package.

If you are using Windows OS and you encounter the error AssertionError: length(dirs) == 1, please see this issue. Additionally, please do not run the plot.jl test if you are using Windows OS because the generated output will violate the default filename length restriction on Windows. If you want to run this test, then you need to enable long paths.

Note we do not test our code in Windows OS, so we cannot guarantee the code works properly in Windows.

Versioning

DSGE.jl is currently compatible with Julia v1.x (as of v1.1.6).

To use DSGE.jl with Julia v0.7, please check out tag 0.8.1. To do this, click on the drop-down menu that reads branch:main on the left-hand side of the page. Select tags, then v0.8.1. If you've already cloned the repo, you can simply run git checkout v0.8.1.

To use DSGE.jl with Julia v0.6, please check out tag 0.4.1.

Precompilation

The DSGE.jl package is not precompiled by default because when running code in parallel, we want to re-compile the copy of DSGE.jl on each processor to guarantee the right version of the code is being used. If users do not anticipate using parallelism, then users ought to change the first line of src/DSGE.jl from

isdefined(Base, :__precompile__) && __precompile__(false)

to

isdefined(Base, :__precompile__) && __precompile__(true)

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].