Johannes Pfeifer
b4941c02d3
Cosmetic Fixes to Metropolis-Hastings routines
...
- Adds comments and headers and fixes typos in previous ones
- Make naming in random_walk_metropolis_hastings_core.m more intuitive
2015-04-25 19:28:16 +02:00
Stéphane Adjemian (Charybdis)
efcf6bd9c0
Use dseries object in the estimation routines.
2014-06-16 17:41:59 +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)
bd630d7210
Removed MC_record field from oo_ structure and the output argument from MCMC routines.
...
Details about the MCMC can be loaded in the workspace with the following command:
>> internals --load-mh-history <NAME_OF_THE_MOD_FILE>
under the name mcmc_informations, or printed in the command window, using the following
command:
>> internals --display-mh-history <NAME_OF_THE_MOD_FILE>
2013-11-26 12:56:41 +01:00
Stéphane Adjemian (Scylla)
d52a0d2c89
Changed the logic for mh-history files (keep track of all the previous estimations if load_mh_file is used). Various bug fixes and cosmetic changes.
2013-11-20 18:03:12 +01:00
Stéphane Adjemian (Charybdis)
4052d4ccaf
Cosmetic changes. Use skipline() instead of disp(' ').
2013-07-10 17:12:34 +02:00
Sébastien Villemot
61485ab809
Fix copyright notices
2013-06-12 17:04:46 +02:00
Johannes Pfeifer
6390830b4d
Store MCMC information recorded in record in oo_
...
Closes issue #315 (https://github.com/DynareTeam/dynare/issues/315 )
2013-03-17 22:49:28 +01:00
Michel Juillard
d60202616a
fixed problem with penalty in estimation. Created a new global scalar:
...
objective_function_penalty_base. It is the only simple way that I
found to keep csminwel1.m to be able to handle general functions.
2012-08-28 12:17:07 +02:00
Michel Juillard
7e221e5d31
factoring setting of bayestop_.penalty = Inf in Metropolis
2012-08-05 15:27:14 +02:00
Michel Juillard
7959102d43
removed global and varargin in Metropolis routines
2012-08-05 15:10:21 +02:00
Michel Juillard
a6281ac9f9
adding a first attempt for adaptive Metropolis Hastings
2011-07-24 19:52:05 +02:00
Houtan Bastani
43479f6ef3
use short-circuit ops (|| and &&) as opposed to (| and &) to avoid warnings in Octave (and save time)
2011-02-10 15:54:23 +01:00
Sébastien Villemot
02652f6eb8
Updated copyright notices
2011-02-04 17:27:33 +01:00
Sébastien Villemot
757a9067c0
Global reindentation of MATLAB files
2011-02-04 17:17:48 +01:00
Marco Ratto
ac0c0a935e
Cosmethics
2010-12-17 09:22:12 +01:00
Marco Ratto
d8121365dd
1) Renamed options according ti WiKi table;
...
2) get rid of MasterName and DyMo;
3) more comments;
2010-10-22 11:27:26 +02:00
Stéphane Adjemian (Karaba)
567c5bcb1f
Fixed bug in the initialization of the metropolis when mode_compute=6 was previously used (so that we have an optimal mh scale factor)
...
and option load_mh_file is used. After the (stochastic) optimization, the optimal value of the scale parameter is saved in a mat file.
2010-10-18 14:39:48 +02:00
Marco Ratto
839b77d679
1) eliminated us of struct2local;
...
2) changes to header/comments.
2010-05-31 11:55:25 +02:00
Sébastien Villemot
d6faa47807
Cosmetic changes: converted files to Unix end-of-line convention + fixed copyright notices and dates
2010-02-15 16:52:36 +01:00
Marco Ratto
cb5fcdef10
New input parallel_info for masterparallel
2010-02-12 17:37:28 +01:00
Marco Ratto
c76c0744ff
If only one chain, don't go parallel
2010-02-10 18:52:16 +01:00
ratto
f8f8434977
removed useless comments
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3364 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-15 10:02:22 +00:00
sebastien
1be52aaa5f
Beautification: removed tabulation characters which were left in previous beautification pass
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3300 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-05 10:46:10 +00:00
sebastien
502e3e1df8
Beautified MATLAB code (Unix newline convention + Emacs indentation), except: AIM, swz, particle
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3250 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:17:34 +00:00
ratto
886a3154c3
tic toc eliminated
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2744 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-09 10:01:21 +00:00
ratto
5085a1785f
- Allow parallel runs with unix;
...
- unix path syntax
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2695 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-27 10:26:45 +00:00
ratto
7243a36938
Parallelized version with main and core routine.
...
1) Contains a trap such that for unix systems no parallel computation is done, for the moment.
2) _core routine uses and stores independent seeds for each chain;
3) Seeds for each chain are stored in record.
4) when no parallel option is chosen, usual serial functionality is kept.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2676 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-15 16:36:51 +00:00
sebastien
db50368418
v4 matlab: fixed some existing copyright headers (and some other minor header issues)
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1974 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 12:40:33 +00:00
sebastien
e08cad8265
v4: merged Octave branch into trunk
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1899 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-24 18:20:48 +00:00
michel
06b6429b04
bug correction
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1757 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-30 09:58:47 +00:00
michel
5e1745ada7
v4 random_walk_metropolis_hastings.m: changed initializationo of InitSizeArray to avoid
...
uncomplete files when load_mh_files
suppressed confusing reinitialization of
InitSizeArray at the end of a chain
put back the report on average acceptation rate
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1756 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-30 09:31:06 +00:00
adjemian
8917d41046
Added multivariate student as a proposal distribution for the metropolis hastings.
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1743 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-13 08:27:55 +00:00
adjemian
ab375b6f4e
Factorization of the initialization of the metropolis hastings (implementation of the independent metropolis hastings).
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1741 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-11 20:55:16 +00:00