[Trac] #267: design an interface for assigning moment/irf contraints (e.g. sign constraints)
#267: design an interface for assigning moment/irf contraints (e.g. sign constraints) -----------------------------------------------------+---------------------- Reporter: ratto | Owner: sebastien Type: feature | Status: new Priority: major | Milestone: 5.0 Component: Identification and sensitivity analysis | Version: Keywords: | -----------------------------------------------------+---------------------- Currently there is no way of setting a set of constraints to irfs or moments of DSGE model to feed to some calibration procedure like Monte Carlo filtering in the sensitivity analysis toolbox. Indeed the threshold_redform option in sensitivity analysis would only allow to set, e.g., the SAME sign constraint to a set of irfs, which is not very handy. So, we may think to the following syntax for sign constraints in moments: moment_calibration; y, y(-1), +; [i.e. auto-correlation with 1 lag] c, g(-3), +; [i.e. auto-correlation with generic lags] i, g, -; [i.e. cross-correlation, contemporaneous] end; for irfs [y c i are endogenous, em eg are exogenous shocks]: irf_calibration; y, em, -; c, eg, +; i, eg, -; end; or the following for more detailed numeric boundaries, in principle mixed with simple sign constraints moment_calibration; y, y(-1), [0.5 1]; [auto-correlation with 1 lag] c, g(-3), +; [auto-correlation with generic lags] i, g, [-1, -0.5]; [cross-correlation, contemporaneous] end; irf_calibration; y, em, [-0.01 0]; c, eg, [0 0.02]; i, eg, -; end; The sign constraint can also be defined using [0 inf] for + [-inf 0] for - -- Ticket URL: <https://www.dynare.org/trac/ticket/267> Dynare <http://www.dynare.org> The Dynare project
#267: design an interface for assigning moment/irf contraints (e.g. sign constraints) -----------------------------------------------------+---------------------- Reporter: ratto | Owner: sebastien Type: feature | Status: new Priority: major | Milestone: 5.0 Component: Identification and sensitivity analysis | Version: Keywords: | -----------------------------------------------------+---------------------- Comment(by ratto): For irf_calibration we may also allow to specify in which period after the shock we want to apply the constraint (on impact, after 4 periods etc. ) The syntax should produce fields in options_ like options_.moment_calibration = {first-endogenous (string), second- endogenous (string), lag-of-second-endogenous (int), value-of-the- contraint (1x2 real array)} or options_.irf_calibration = {endogenous (char), exogenous (char), period, value-of-the-contraint (1x2 real array)} Example 1: moment_calibration; y, y(-1), [0.5 1]; [auto-correlation with 1 lag] c, g(-3), +; [auto-correlation with generic lags] i, g, [-1, -0.5]; [cross-correlation, contemporaneous] end; would translate to options_.moment_calibration = { 'y', 'y', 1, [0.5 1]; 'c', 'g', 3, [0 inf]; 'i', 'g', 0, [-1 -0.5]; } Example 2: (where the first constraint applies after 4 periods in the irf; the default would be 1, i.e. on impact) irf_calibration; y(4), em, [-0.01 0]; c, eg, [0 0.02]; i, eg, -; end; would translate to options_.irf_calibration = { 'y', 'em', 4, [-0.01 0]; 'c', 'eg', 1, [0 0.02]; 'i', 'eg', 1, [-inf 0]; } -- Ticket URL: <https://www.dynare.org/trac/ticket/267#comment:1> Dynare <http://www.dynare.org> The Dynare project
#267: design an interface for assigning moment/irf contraints (e.g. sign constraints) -------------------------------------------------+------------------------- Reporter: ratto | Owner: Type: feature | Status: assigned Priority: major | Milestone: 5.0 Component: Identification and sensitivity | Version: analysis | Keywords: Resolution: | -------------------------------------------------+------------------------- Changes (by sebastien): * owner: sebastien => * status: new => assigned -- Ticket URL: <https://www.dynare.org/trac/ticket/267#comment:2> Dynare <http://www.dynare.org> The Dynare project
participants (1)
-
Trac Dynare