资 源 简 介
This library can be used in several ways.
As a Sage extension, it features an integrated web-based environment to define models, run calculations and present results using Dynare with Octave or Matlab as the underlying calculation engine.
As a command-line preprocessor.
reads a model specified in a text file (a modfile)
optionally applies symbolic transformations on the model
processes files that are needed for further analysis. Currently, it can output a new modfile, or directly the needed Dynare .m files.
As python library to manipulate economic models formally and/or to build special purpose compilers
Some basic solving routines :
from dolo import *model = dynare_import(modfile_name)dr = solve_decision_rule(model)irf(dr, "a", "u" plot=True) # irf of variables "a" with shock "u"stoch_simul(dr, "a" plot=True) # runs stochatic simulation f