Commit Graph

17 Commits (master)

Author SHA1 Message Date
Stéphane Adjemian (Ryûk) 4982ce06b4
Remove unnecessary square brackets. 2023-12-18 10:49:49 +01:00
Johannes Pfeifer 6f8fc22d57
bug: internals.m: account for new location of results files in 5.x 2023-10-11 09:26:05 -04:00
Stéphane Adjemian (Guts) 5b72a3041c
Use new unit tests interface. 2023-01-02 22:58:20 +01: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 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Houtan Bastani 53ce6222c2
remove unused variable in dynare_config 2019-09-05 11:48:19 +02:00
Stéphane Adjemian (Charybdis) a53636e24e Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Stéphane Adjemian (Telemachus) 0691b08303 Adapated internals routine (name of dynTest routine has changed). 2014-11-09 22:20:43 +01:00
Johannes Pfeifer 08b598609e Clarify ambiguous printout in internals function
"Overall acceptance rate" could be read as over all chains.
Also capitalizes the name Matlab
2014-09-16 20:44:18 +02:00
Johannes Pfeifer caa6d5d93e Fix display of MH-history if parameter names do not have same length
In this case, cell2mat fails, because the dimensions are not consistent. Using char() instead padds with spaces

(cherry picked from commit 47b1a2df74cf1f643ca913ab4ff6c2057e8b58cf)
2014-09-10 17:49:33 +02:00
Stéphane Adjemian (Scylla) fb487bc87e internals --display-mh-history displays the overall acceptance ratios (ie using all the mcmc draws saved on disk) instead of the current acceptance ratios (ie using the mcmc draws generated by the last estimation command). Graphical and text waitbars display the current acceptance ratios. The current acceptance ratios are saved in the mh-history files. 2013-11-27 11:56:38 +01:00
Stéphane Adjemian (Scylla) c92c5c7fb9 Cosmetic change. Renamed "acceptation rates" as "acceptance ratios". 2013-11-27 11:34:49 +01:00
Stéphane Adjemian (Scylla) 10150a081d Bug fix (internals command with --load-mh-history option). 2013-11-26 14:03:11 +01:00
Stéphane Adjemian (Scylla) 80a853944a Also display the initial value of the posterior kernel, when internals --display-mh-history command is used. 2013-11-26 12:37:14 +01:00
Stéphane Adjemian (Scylla) f2f072bce1 Added options to the internals command to load mh-history files or display informations about MCMC settings and state.
For instance, assuming that fs2000a.mod is in the current Matlab/Octave's directory and that a metropolis has been run,
the following command:

>> internals --display-mh-history fs2000a

produces the following output in the Matlab/Octave's command window:

================================
MCMC set-up for fs2000a mod file
================================

MCMC chain number 1:
--------------------

 o Number of MCMC files is 1
 o Number of draws is 6000
 o Acceptance ratio is 35.28%
 o Last value of the posterior kernel is: 1221.81656
 o State of the chain:

       || Initial | Current
   ++++++++++++++++++++++++
   e_a || 0.01570 | 0.01608
   e_m || 0.00528 | 0.00512
   alp || 0.35026 | 0.36909
   bet || 0.99300 | 0.99308
   gam || 0.00086 | 0.00038
   mst || 1.00088 | 1.00147
   rho || 0.65926 | 0.71132
   psi || 0.66428 | 0.60611
   del || 0.00977 | 0.00198

MCMC chain number 2:
--------------------

 o Number of MCMC files is 1
 o Number of draws is 6000
 o Acceptance ratio is 33.38%
 o Last value of the posterior kernel is: 1220.39229
 o State of the chain:

       || Initial | Current
   +++++++++++++++++++++++++
   e_a || 0.01664 |  0.01576
   e_m || 0.00489 |  0.00504
   alp || 0.39701 |  0.36630
   bet || 0.99305 |  0.99219
   gam || 0.00067 | -0.00025
   mst || 1.00186 |  1.00218
   rho || 0.70060 |  0.63847
   psi || 0.65623 |  0.74668
   del || 0.00666 |  0.00842

while the command:

>> internals --load-mh-history

loads the content of the record structure (saved in the last mh-history file) in Matlab/Octave's workspace
under the name mcmc_informations.
2013-11-26 11:28:40 +01:00
Stéphane Adjemian (Charybdis) dec622c48d Fixed bug and streamlined the routines for unitary tests. 2011-12-21 18:14:17 +01:00
Stéphane Adjemian (Scylla) 1467bec712 Removed internal documentation an unitary test options from the dynare command. Created instead
a specific command named internals.

The internal documentation of a matlab routine can be displayed on screen using the following
syntax:

internals --info <PATH AND NAME OF THE MATLAB ROUTINE>

The unitary tests (if any) associated to a matlab routine are triggered as follows:

internals --test <PATH AND NAME OF THE MATLAB ROUTINE>

+Cosmetic changes in the headers.
2011-09-12 11:46:14 +02:00