Commit Graph

44 Commits (62f608eb805822dbc166d579a54dda9ec2e2288a)

Author SHA1 Message Date
Sébastien Villemot b669d5c0dc
Emacs mode: also autoload the mode for files with .dyn extension
[skip ci]
2023-03-03 16:00:16 +01:00
Sébastien Villemot 8200c356a7
Emacs mode: fix indentation in blocks which are given options
E.g. indentation was incorrect following “model(block);”.

[skip ci]
2023-01-17 18:20:11 +01:00
Sébastien Villemot fcdd810eb4
Emacs mode: “periods” and “Sigma_e” commands removed 2023-01-17 16:17:49 +01:00
Sébastien Villemot 7d3afd3150
Update uncrustify.cfg for newer version
The configuration is still unsatisfactory for quite a few items.

[skip ci]
2022-07-13 18:55:29 +02:00
Sébastien Villemot a600336c92
New “add” and “multiply” keywords in “shocks(learnt_in=…)” block 2022-04-26 15:22:15 +02:00
Sébastien Villemot 10af04c6d8
Use Unicode copyright symbol (in UTF-8 encoding) in all source files
It is now supported by the MATLAB editor (as of R2022a).

The old ASCII notation is left in some files that we copy as-is from other
sources (e.g. in the contrib/ and m4/ subdirectories).

The particles submodule is not updated at this point, because it is in an
inconsistent state.

[skip ci]
2022-04-13 14:54:25 +02:00
Sébastien Villemot 7f44a28209
Emacs mode: add missing “resid” keyword 2022-03-01 11:59:17 +01:00
Stéphane Adjemian (Ryûk) b297353b06
PAC decomposition between stationary and non-stationary components.
The taget in PAC equation can be decomposed into an arbitrary number of components (variables
in the VAR auxiliary model).

TODO Iterative OLS estimation (which is not the preferred estimation routine).
TODO Decomposition in the routine evaluating the forecasts for each component.
2021-12-17 12:17:13 +01:00
Sébastien Villemot 21a8a5794a
Various new model editing features
– multiple “model” and “estimated_params” block are supported
– new “model_options” statement to set model options in a global fashion
– new “model_remove” command to remove equations
– new “model_replace” block to replace equations
– new “var_remove” command to remove variables (or parameters)
– new “estimated_params_remove” block to remove estimated parameters
2021-12-15 17:33:01 +01:00
Sébastien Villemot c181bae3fd
Emacs mode: add compilation_setup statement 2021-12-15 10:26:37 +01:00
Sébastien Villemot eb6af4aff3
Emacs mode: add complementary error function and hyperbolic functions
[skip ci]
2021-12-11 15:58:14 +01:00
Marco Ratto 02072dde39
Add Occbin routines
Syntax is not yet finalized (see preprocessor#68).
Documentation still to be done.

Ref. #569
2021-07-16 17:20:11 +02:00
Sébastien Villemot abd64c256e
New perfect_foresight_with_expectation_errors_{setup,solver} commands
These command solve the problem where agents think they know perfectly the
future (they behave as in perfect foresight), but make expectation errors.
Hence they can potentially be surprised in every period, and their expectations
about the future (incl. the final steady state) may change.

Currently the sequence of information sets needs to be passed through a CSV
file. Another interface may be added in the future.

The algorithm uses a sequence of (true) perfect foresight simulations (not
necessarily as many as there are periods, because if the information set does
not change between two periods, there is no need to do a new computation).

There are two possibilities for guess values:
— the default is to use the initial steady state for the simulation using the
  first-period information set; then use previously simulated values as guess
  values
— alternatively, with the terminal_steady_state_as_guess_value option, use the
  terminal steady state as guess value for all future periods (this is actually
  what the “true” perfect foresight solver does by default)
2021-07-09 18:16:46 +02:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Marcoo Ratto 1645f38269
Implement heteroskedastic filter and smoother 2021-05-26 18:45:16 +02:00
Sébastien Villemot 4097671218
Emacs mode: add font lock for new “deterministic_trends” block 2021-04-30 11:51:51 +02:00
Sébastien Villemot 1fce40ddeb
Preprocessor: remove the unfinished decomposition in linear and nonlinear blocks
Also remove the interface to det_cond_forecast.

Closes: !1626
2021-01-25 18:19:09 +01:00
Sébastien Villemot a6747827bf
Preprocessor update
— Ensure that all statements produce an output in JSON mode
— Remove obsolete “restrictions” block and “var_estimation” statement
2020-11-26 16:34:10 +01:00
Sébastien Villemot 470d8ef079
Emacs mode: update for method of moments routines
[skip ci]
2020-07-28 18:10:46 +02:00
Sébastien Villemot 31c19272fb
Emacs mode: add back final line for ELPA compatibility 2020-02-25 14:22:00 +01:00
Sébastien Villemot 3a0327d379
Emacs mode: fix byte compilation
The Emacs lisp source file was failing byte-compilation, because the
“dynare-blocks” variable was used within an “eval-when-compile” block, while
its definition was not in such a block.
2020-02-25 12:41:04 +01:00
Stéphane Adjemian (Charybdis) 3c2a1851b5
Fixed typo. 2020-01-17 18:12:41 +01:00
Sébastien Villemot db7390b8ee
Improve indentation scripts
— now accept several input arguments
— the script themselves can now be called with an absolute pathname
— clearer output
2019-12-18 16:24:36 +01:00
Sébastien Villemot a50845d836
Upgrade uncrustify configuration 2019-12-18 16:22:41 +01:00
Sébastien Villemot 6ba10b88f2
Preprocessor: various provisions for improvements to shock decomposition
Accordingly update the MATLAB routines, the testsuite, and the manual.

In particular, “squeeze_shock_decomp” has been renamed to
“squeeze_shock_decomposition” for consistency with other commands.

Ref. #1687, !1655
2019-12-18 11:56:57 +01:00
Sébastien Villemot 5cb9886a5e
Emacs mode: font locking for now “evaluate_planner_objective” 2019-12-13 18:22:12 +01:00
Sébastien Villemot c646736b9b
Emacs mode: update for recent additions to the language 2019-12-06 15:24:48 +01:00
Sébastien Villemot f953374dba
More Unicode copyright symbol 2019-04-16 14:34:05 +02:00
Sébastien Villemot afde90a4a2
Emacs mode: fix bug introduced in bf60795e8 2019-03-19 14:51:53 +01:00
Sébastien Villemot bf60795e8e
Emacs mode improvements
- bugfix: in "model_name", the "model" part will no longer be colorized
- add colorization for on-the-fly type declarations
- no longer categorize dots as word constituents (they are not even symbol
  constituents)
- no longer categorize @ and # as symbol constituents
2019-03-06 18:43:04 +01:00
Sébastien Villemot a062de8e31
Emacs mode: add colorization for "@#include" and "@#includepath"
Also expand the TODO list

[skip ci]
2019-03-04 23:30:28 +01:00
Sébastien Villemot a7db127b74
Emacs mode improvements
* Font locking (colorization)
  - all keywords for statements and blocks are now recognized (but not option names)
  - MATLAB-style (single-quoted) strings now recognized
  - improve handling of macroprocessor (but multiline macro commands/exprs not
    yet working)
  - recognize mathematical functions and constants (nan and inf)
  - highlight the pound-sign for model-local variables

* Indentation
  - basic indentation within blocks (offset customizable through option)
  - more elaborate indentation (e.g. multiline equations or statements) not yet
    working
2019-03-01 18:40:47 +01:00
Sébastien Villemot 54335242c9
Update uncrustify configuration for version 0.64 2019-01-04 16:32:05 +01:00
Sébastien Villemot 47c2fa3610 Use magic comments for autoloads in Emacs mode file
Also automatically trigger the mode for files with the .mod extension.
2017-07-25 16:26:21 +02:00
Stéphane Adjemian (Charybdis) 33b09aa9e8 Updated LAST_UPDATE_COMMIT variable. 2017-05-18 18:39:02 +02:00
Stéphane Adjemian (Charybdis) 2f07c6f1db Updated indentation script for c/h/cc/hh files.
+ set utf-8 encoding.
     + delete trailing whitespaces.
2017-05-16 16:28:57 +02:00
Stéphane Adjemian (Charybdis) 3d91cf9716 Updated indentation script for matlab files.
+ set utf-8 encoding.
 + delete trailing whitespaces.
2017-05-16 14:55:56 +02:00
Stéphane Adjemian (Charybdis) a4f563f99f Updated LAST_UPDATE_COMMIT variable. 2017-05-16 14:45:24 +02:00
Sébastien Villemot dd1e19ca36 Make scripts work when run from other directories. 2014-07-31 15:45:15 +02:00
Sébastien Villemot 1d3bca8ad3 Push scripts for reindenting and for fixing copyright years. 2014-07-31 15:29:40 +02:00
Houtan Bastani 574472a288 script to find differences in matlab functions between one commit and another. Fixes ticket 228 2012-06-11 12:27:40 +02:00
Houtan Bastani 45988e258a add comment/copyright to script 2012-06-08 20:01:31 +02:00
Sébastien Villemot 346f9ba25c Move more files to scripts/ and add it to the distribution 2012-06-08 16:29:11 +02:00
Houtan Bastani 622bfcd0c8 python script to compare matlab function names to their filenames, reporting those that differ 2012-06-08 16:25:25 +02:00