Skip to content
Snippets Groups Projects
  1. 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
  2. Jul 18, 2024
  3. Jul 17, 2024
  4. Jun 06, 2024
  5. Dec 13, 2023
  6. Nov 30, 2023
  7. Jul 07, 2023
  8. Apr 11, 2023
  9. 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
  10. Mar 24, 2023
  11. Feb 28, 2023
  12. Jul 20, 2022
  13. Jun 22, 2022
  14. Jun 07, 2022
  15. May 18, 2022
  16. May 16, 2022
  17. May 04, 2022
  18. 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
  19. Jan 28, 2022
  20. Dec 16, 2021
  21. Nov 23, 2021
  22. Oct 26, 2021
  23. Oct 08, 2021
  24. Jul 07, 2021
  25. Jun 09, 2021
  26. Apr 19, 2021
  27. Apr 01, 2021
  28. Oct 16, 2020
  29. Sep 23, 2020
  30. Jan 06, 2020
  31. Dec 20, 2019
Loading