Commit Graph

40 Commits (943db6fb24d9e4b01f31d084696bb8aec9010ff4)

Author SHA1 Message Date
Stéphane Adjemian (Lupi) 1fa050830b Manually merged PR #1022. 2015-08-13 14:49:39 +02:00
Johannes Pfeifer 2476ffdbb9 Add indicator for successful run of MCMC and provide error message if load_mh_file is used with crashed chain
Closes #917
2015-08-11 14:37:37 +02:00
Johannes Pfeifer beab158a67 Various cosmetic fixes 2015-08-10 21:35:51 +02:00
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 (Karaba) f48566aeae Fixed prior bounds (according to the doc in master branch).
* Second  and  third  positional  arguments  after the  name  of  the
   estimated  parameter   in  the  estimated_params   block  are  only
   considered in the optimization stage (not in the MCMC)

 * Do not  store bounds  in bayestopt_, because  bounds do  not always
   reflect restrictions implied by prior shapes.

 * prior_bounds routine  returns a structure  (with fields lb  and ub)
   instead of a matrix.
2014-10-20 16:18:54 +02:00
Stéphane Adjemian (Scylla) e4cd72b5b6 Fixed typo. 2014-06-20 11:20:27 +02:00
Stéphane Adjemian (Charybdis) efcf6bd9c0 Use dseries object in the estimation routines. 2014-06-16 17:41:59 +02:00
Marco Ratto 5ae06a211c Fixed bug when the last saved metropolis block is complete and a metropolis is continued with load_mh_file 2014-02-25 09:34:31 +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) b8a02d4484 Renamed record.InitialLogLiK as record.InitialLogPost. 2013-11-26 12:16:31 +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) f908d64d9e Removed unused variable. 2013-11-17 16:37:53 +01:00
Stéphane Adjemian (Charybdis) 4052d4ccaf Cosmetic changes. Use skipline() instead of disp(' '). 2013-07-10 17:12:34 +02:00
Stéphane Adjemian (Charybdis) 3dc372e5bc Added (command line) nointeractive option. 2013-07-10 12:02:12 +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
Frédéric Karamé 7fd1df2505 Fixed bug when comparing xparam1 with upper and lower bounds. 2012-11-16 12:18:54 +01:00
Michel Juillard c88a8aaaa6 changed warnings into errors when load_mh_file or recovery is used and
there is no metropolis history file
2012-10-08 11:50:48 +02:00
Marco Ratto 6beb4e3f8f small bug fix 2012-08-30 14:59:32 +02:00
Michel Juillard dbdbfdd926 adding set_dynare_random_generator_state() and
get_dynare_random_generator_state(). Use now different seeds for
different Metropolis chains. Fixed handling of random generator state
thourghout the code.
2012-08-29 17:58:54 +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 b1ad31cf56 removed seeding random generators from clock in cmaes and metropolis hastings 2012-08-05 10:59:59 +02:00
Michel Juillard 7408714ea1 added dname as argument to CheckPath function and changed all calls to
this function. Suppressed use of globals in CheckPath.
2011-12-15 17:35:27 +01:00
Sébastien Villemot d9ede95ffa Fix problem with load_mh_file option under Octave/MinGW 2011-09-14 17:40:41 +02:00
Michel Juillard c40e5f3edf fixing intialization of output arguments 2011-07-24 23:02:12 +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
Michel Juillard c574544b16 adding a check to Metropolis Hasting initialization in order not to accept a penalized posterior value 2010-06-26 11:51:40 +02: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
stepan 3f924cc1de * Fixed bug introduced in the previous commit (wrong value of Max_nruns).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2872 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-28 10:56:26 +00:00
stepan aa3a6fe1a6 * Fixed bugs with mh_recover mode.
* Added comments.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2871 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-28 10:55:22 +00:00
ratto c8329915b2 Seeds are always initialized and stored for each chain independently
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2675 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-15 16:33:20 +00:00
adjemian 3026575522 v4.1: Bug correction related to the mh_recover mode (needs more tests).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2264 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-11-20 09:12:12 +00:00
sebastien 0ee09b5b07 v4.1: merged r2044, 2045 and 2046 changesets from 4.0 branch
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2047 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-05 16:48:39 +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
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