Johannes Pfeifer
ca5c714e29
Replace global variables in CutSample.m and metropolis_draw.m by function arguments
...
Makes them usable outside of their current environment
2015-07-28 15:36:59 +02:00
Johannes Pfeifer
de5875a75b
Fix bug still present in CutSample.m
...
#733 was faulty because it did not account for changes in the first line when more than 1 MH file was present. Now, FirstDraw really denotes the first draw (as opposed to the last draw as before). The subsequent computation of FirstMhFile is then also correct.
2014-10-12 11:33:55 +02:00
Stéphane Adjemian (Charybdis)
cc80c8662c
Fixes ambiguity in the output of CutSample routine (second part of PR #733 ).
2014-09-20 11:17:57 +02:00
Stéphane Adjemian (Charybdis)
bfc9719f05
Fix bug in in CutSample.m that led to wrong number of draws for moment computation (first part of PR #733 )
...
FirstLine actually defined the last line. One needs to 1. Otherwise,
Draws in GetAllPosteriorDraws.m will be (NumberOfDraws+1)*nblck.
2014-09-20 11:16:50 +02: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
Johannes Pfeifer
e8ed4c1f67
Bunch of cosmetic changes
2013-06-13 14:24:17 +02:00
Sébastien Villemot
61485ab809
Fix copyright notices
2013-06-12 17:04:46 +02: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
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
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
ratto
4b850c0db3
Use of filesep utility for compatibility with Octave for Windows.
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2739 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-09 07:21:55 +00:00
michel
12cf9afce4
4.1: header, indentation, Unix format
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2679 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-16 07:37:30 +00:00
michel
58e512dd49
4.1: correcting a rarely occuring bug
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2672 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-13 19:58:28 +00:00
sebastien
a03af050af
undoing r2110 and r2111 changesets
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2112 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-25 12:29:35 +00:00
michel
464e29706f
reverted r2010 because of problem with FILENAME token
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2111 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-25 12:10: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
adjemian
2845115b5f
+ Removed global variables.
...
+ Added try and catch to handle cases where oo_ is broken and (mh_replic==0 & load_mh_file==1).
+ Added computation of posterior moments for endogenous variables (triggered by moments_varendo option). First order moments are still missing.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2028 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-03 16:05:35 +00:00
sebastien
9f5beff89e
v4 matlab: fixed remaining copyright headers (those files which are in the CR+LF endline convention)
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1975 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 13:08:13 +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
assia
c15ac60630
header updated
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1587 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-01-15 10:38:47 +00:00
ratto
442bf232b0
Fixed when one wants all the runs (no cut).
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1109 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-27 14:45:12 +00:00
michel
35c1067f46
v4 CutSample.m: removed eval() in eval(dir())
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@640 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-03-03 10:41:33 +00:00
michel
751c382ddc
v4: replaced \ by / in directory names
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@600 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-01-16 08:20:11 +00:00
adjemian
21f4445d2e
New version with equal length mh files
...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@443 ac1d8469-bf42-47a9-8791-bf33cf982152
2005-09-10 10:04:22 +00:00