Skip to content
Snippets Groups Projects
  1. Nov 20, 2024
  2. Sep 09, 2024
    • Sébastien Villemot's avatar
      Initial HANK support · 1e68b2fc
      Sébastien Villemot authored
      – New “heterogeneity_dimension” statement
      – New option “heterogeneity” to “var”, “varexo”, “parameters”, “model” and
        “shocks” statements
      – New “SUM()” operator in “model” block
      1e68b2fc
  3. Dec 13, 2023
  4. Dec 11, 2023
  5. Dec 01, 2023
  6. Nov 30, 2023
  7. Jul 07, 2023
  8. Mar 28, 2023
    • Sébastien Villemot's avatar
      Ramsey: write derivatives of static model w.r.t. Lagrange multipliers in a new file · 0169240f
      Sébastien Villemot authored
      The computing of the Ramsey steady state relies on the fact that Lagrange
      multipliers appear linearly in the system to be solved. Instead of directly
      solving for the Lagrange multipliers along with the other variables,
      dyn_ramsey_static.m reduces the size of the problem by always computing the
      value of the multipliers that minimizes the residuals, given the other
      variables (using a minimum norm solution, easy to compute because of the
      linearity property). That function thus needs the derivatives of the optimality
      FOCs with respect to the multipliers. The problem is that, when multipliers
      appear in an auxiliary variable related to a lead/lag, then those derivatives
      need to be retrieved by a chain rule derivation, which cannot be easily done
      with the regular static file.
      
      This commit implements the creation of a new file,
      ramsey_multipliers_static_g1.{m,mex}, that provides exactly the needed
      derivatives w.r.t. Lagrange multipliers through chain rule derivation.
      
      Ref. dynare#633, dynare#1119, dynare#1133
      0169240f
    • Sébastien Villemot's avatar
      No longer replace all auxiliary variables by their definition in the static model · fe3f1894
      Sébastien Villemot authored
      This is effectively a revert of commits 1b4f68f9,
      32fb90d5 and f6f4ea70.
      
      This transformation had been introduced in order to fix the computation of the
      Ramsey steady state in the case where Lagrange multipliers appeared with a lead
      or lag ⩾ 2 (and where thus part of the definition of an auxiliary variable).
      
      But this transformation had introduced bugs in the handling of external
      functions which were difficult to tackle.
      
      Moreover, it seems preferable to keep the strict correspondence between the
      dynamic and static model, in order to make reasoning about the preprocessor
      internals easier (in particular, for this reason this transformation was not
      implemented in ModFile::transformPass() but in ModFile::computingPass(), which
      was a bit confusing).
      
      A better solution for the Ramsey steady state issue will is implemented in the
      descendent of the present commit.
      
      Ref. dynare#633, dynare#1119, dynare#1133
      fe3f1894
  9. Mar 24, 2023
  10. Jul 20, 2022
  11. Jun 16, 2022
  12. May 16, 2022
  13. May 04, 2022
  14. Mar 30, 2022
    • Sébastien Villemot's avatar
      Add new “log” option to “var” statement · 71edfd05
      Sébastien Villemot authored
      When an endogenous is declared with “var(log)”, say “y”:
      – creates an auxiliary named “LOG_y”
      – replaces “y(±l)” everywhere by “exp(LOG_y(±l))”
      – adds a new auxiliary equation “y=exp(LOG_y)”
      – adds a new definition “LOG_y=log(y)” in set_auxiliary_variables.m and
        dynamic_set_auxiliary_series.m files
      
      This option also works in conjunction with “deflator=…”, such as “var(log,
      deflator=…)” (the “log” must appear befor “deflator”). There are no provisions
      for combining “log” with “log_deflator”, because that would not make much sense
      from an economic point of view (amounts to taking the log two times).
      
      Ref. dynare#349
      71edfd05
  15. Jan 28, 2022
  16. Jan 06, 2022
  17. Dec 16, 2021
  18. Nov 23, 2021
  19. Jul 07, 2021
  20. Jun 09, 2021
  21. Apr 19, 2021
  22. Sep 23, 2020
  23. Jul 24, 2020
  24. Jan 06, 2020
  25. Dec 20, 2019
  26. Dec 16, 2019
  27. Oct 24, 2019
  28. Apr 23, 2019
  29. Apr 16, 2019
Loading