Commit Graph

1532 Commits (3db736f31d747badfa8720a0d4c01c21571ab4d5)

Author SHA1 Message Date
Michel Juillard 7019b382d7 added initialization of priodens.m in global_initialization.m 2010-02-08 11:15:14 +01:00
Michel Juillard 84aae713a6 explicit initialization of persistent variables in priordens.m 2010-02-06 14:43:16 +01:00
Stéphane Adjemian (Charybdis) cc06f60ab2 Merge branch 'master' of kirikou.dynare.org:/srv/d_kirikou/git/dynare 2010-02-05 23:21:10 +01:00
Stéphane Adjemian (Charybdis) 3f1fad9cd2 Added trap for cases where diffuse filters fail (replaced error messages by warning messages). 2010-02-05 23:18:08 +01:00
Sébastien Villemot d244278adf Fixed bug in dynasave (thanks to P. M. Lafourcade for reporting) 2010-02-05 16:54:00 +01:00
Stéphane Adjemian (Charybdis) 55c210ef47 Bug fix (fval is give by DsgeVarLikelihood if a dsge-var model is estimated) and cosmetic
changes (removed trap).
2010-02-04 21:36:21 +01:00
Michel Juillard 0c26e187b3 Merge branch 'master' of http://www.dynare.org/git/dynare 2010-02-04 16:34:53 +01:00
Michel Juillard 2e53bb0807 bug correction in mode_check when incomplete last page of plots 2010-02-04 16:30:19 +01:00
Stéphane Adjemian (Charybdis) 8878c10a75 Added a warning if the user put order>1 as an option in the estimation command. 2010-02-04 10:30:45 +01:00
stepan@charybdis bfde3d2beb Removed non linear kalman filter files. 2010-02-03 12:37:46 +01:00
ratto c666b79001 trap for NaN's in mm and MM
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3390 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-27 14:03:28 +00:00
ratto 7a743a9594 Added partial correlation plots for reduced form model and moments;
warning of for the loop of  normalized sensitivities;

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3389 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-27 14:02:56 +00:00
sebastien c44452d820 Fast deterministic simulations:
* when using "bytecode" without "block", enforce "stack_solve_algo=5"
* added a test for "bytecode" without "block" option


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3388 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-27 10:13:14 +00:00
ratto 3f8bc2b2a1 Added steady state to derivatives of LRE form.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3387 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-26 16:48:45 +00:00
ratto 234cc8ef7a header
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3381 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-26 14:11:15 +00:00
ratto 966a1b4896 boxplot utility, used in identification.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3380 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-26 14:10:17 +00:00
ratto a02dd60d1e Modified version of parallel routines, with more sophisticated management of slave processes, which are not closed after the completion of each job but can stay in stand-by until a new job is assigned to them.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3379 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-26 13:18:15 +00:00
ratto 0378c80427 deleted a bit still linked to sshfs
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3378 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-26 13:11:17 +00:00
michel f06b4e180a 4.2: fixed bug in k_order_pert.m for order == 1
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3376 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-25 14:52:48 +00:00
michel ce7af53855 v4.2: changed vech functions names to avoid conflict with other toolboxes
vech.m      -> dyn_vech.m
      unvech.m    -> dyn_unvech.m
      diag_vech.m -> dyn_diag_vech.m


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3375 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-23 16:55:28 +00:00
ferhat 0efd5b1621 "bytecode" option can be used without "block" option
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3373 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-22 10:03:29 +00:00
stepan 29fc9354ef Adapted SMM for the estimation of variances.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3370 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-21 10:56:32 +00:00
stepan 397d531990 Bug fix. Variable use_dll_flag is not defined if remote computers are not used. Don't need to compile the
(dynamic model) mex file in this case.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3366 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-16 10:28:09 +00:00
stepan 46cf2ea243 * Bug fixes and cosmetic files in parallelized SMM.
* Bug fix in extended_path.m



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3365 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-15 15:45:07 +00: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
ratto f1795cb909 1) added ismac for MATLAB >= 7.4
2) some commenting added;
3) eliminated sshfs mounting
4) eliminate use of ifconfig, use hostname utility of linux/unix instead (still may  not work for solaris environments?)

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3363 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-15 10:01:21 +00:00
ratto 414ea4daf0 forced order=1
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3362 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-15 09:58:38 +00:00
ratto 94d215d73e Modifications linked to previous commit:
Added first order moments 
Added LRE analysis for trivial no-identification

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3361 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-15 09:58:09 +00:00
ratto cda0f571b4 Added first order moments
Added LRE analysis for trivial no-identification

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3360 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-15 09:57:05 +00:00
ratto a018e231de distinguishing between noprint and nomoments/nocorr options
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3359 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-15 09:55:05 +00:00
stepan c5cf610fdf Removed persistent variable. Don't know if persistent variables are working as expected
with recursively called functions.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3354 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-13 10:14:55 +00:00
stepan 1b37985435 Added a generated mat file keeping track of the estimated parameters' values.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3347 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-11 16:36:36 +00:00
stepan 5f42e79bfc Changed the code so that if we are not able to solve for the deterministic equilibrium path
at time t (even with the homotopic steps) then the size of the structural innovations is 
reduced (at time t *only*). The advantage of this trick is that the seed of the random 
number generator is not affected. The problem is that the structural innovations are now 
heteroscedastic. Should add something to evaluate the importance of this heteroscedasticity problem. 




git-svn-id: https://www.dynare.org/svn/dynare/trunk@3346 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-11 16:29:50 +00:00
stepan 77eec32811 Replaced disp() by error(). This condition (master running a job) is mandatory.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3345 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-11 13:58:45 +00:00
stepan 3ad3372f76 Correction of a bug introduced in the previous commit (3343).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3344 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-11 13:53:57 +00:00
stepan 868ef77d89 Tests if master is running a job. Master has to run a job, otherwise we
cannot define a time limit for the evaluation of the objective function. 




git-svn-id: https://www.dynare.org/svn/dynare/trunk@3343 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-11 13:49:31 +00:00
stepan da8638ccc7 * Added the possibility to use the matlab's simplex routine for
minimizing the objective function.
* Added a test for the platform (parellelized version of SMM is 
only implemented for linux).
* Added upper and lower bounds for the estimated parameters. A 
penalty is defined when a vector of parameters does not satisfy 
the upper and lower bounds.
* Cosmetic changes.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3342 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-11 13:33:23 +00:00
stepan 6d7c31de9b The second output argument has to be non empty. flag is equal to zero if, for some reason,
the evaluation of the objective function failed.
 


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3339 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-10 23:27:43 +00:00
stepan 2fdc41ab36 Removed printed gradient.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3338 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-10 23:23:57 +00:00
stepan 2d8945939d Commit 3335 was incomplete.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3337 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-10 23:10:14 +00:00
stepan 696e8ee140 Added a new input argument (epsilon) in gradient routines and csminwel.m. This parameter defines the length of the steps considered
by numgrad routines to compute the gradient. The default value (defined in global_initialization.m) for this parameter is 1e-6. The
value of epsilon is stored in options_.gradient_epsilon.




git-svn-id: https://www.dynare.org/svn/dynare/trunk@3335 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-10 16:51:33 +00:00
stepan 3c4d69ace2 * Efficiency change in numgrad (two, three and five points formulas) files. Do not evaluate the objective function at x, this is already
done in csminwel.m or in csminit.m.
* Fixed bug in the calling sequence of numgrad5.m (five points formula) in csminwel.m.
* Cosmetic changes.




git-svn-id: https://www.dynare.org/svn/dynare/trunk@3334 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-10 14:36:45 +00:00
stepan 139491219b * Bug fixes.
* Simulated moments (computed by the slaves) are saved in ascii files instead of mat files.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3333 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-10 13:49:18 +00:00
stepan 8c89170cf6 Bug fixes and cosmmetic changes.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3330 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-09 15:46:55 +00:00
stepan 4beedc8f85 * Replaced file system matlab commands by unix commands.
* Added (missing) call to dynare_config for each slave.
* Other bug fixes.
* Cosmetic changes.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3329 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-09 00:40:10 +00:00
stepan c2e3aa8f58 Bug fix.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3328 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 17:42:38 +00:00
stepan 6a9624a78b * Added missing definition of the hostname in smm_objective.m.
* Fixed bug related to the name of the remote computer in smm_objective.m.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3327 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 17:39:10 +00:00
stepan f8dc2e4c0a Fixed a bug related to the number of slaves per remote computer.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3326 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 17:33:31 +00:00
stepan 0787ea0201 Fixed bug related to the default seed on the slaves.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3325 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 17:30:44 +00:00
stepan 76c736275c Fixed ssh forwarding of the authentication key (added -A option).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3324 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 17:20:08 +00:00
stepan 7c17ab9cca Added parallelized Simulated Moments Method (to be tested).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3323 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 17:14:50 +00:00
ratto 16794e4ec9 Updated version following new revision of dsgelikelihood.m
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3318 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 10:06:21 +00:00
sebastien e7adf28fbd A few more copyright fixes
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3316 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 09:54:43 +00:00
sebastien 129b6fe060 Fixed a few copyright dates
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3315 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 09:48:23 +00:00
sebastien e1ac48414c Fixed RMSE in bvar_forecast
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3313 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 09:31:57 +00:00
fred d8f13d4dae SIS = standard particular filter
_2 = variation around mat var-cov calculations

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3312 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-08 08:21:57 +00:00
stepan 301c840ace Adapted csminwel calling sequence to match the previous commit.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3311 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-06 14:54:27 +00:00
stepan 961b539dfd Removed dataset from the inputs (only one field of this structure was used).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3310 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-06 14:49:31 +00:00
stepan 1b3dce7d1b Added files for SMM estimation.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3309 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-06 14:38:32 +00:00
stepan c3aaa9b105 Added info vector as an output (needed to compute penalty for the smm objective function).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3308 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-06 14:06:41 +00:00
stepan 0520d44f8e Changed copyright date.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3307 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-06 13:56:02 +00:00
stepan 9dff2ba6cd * Added missing dummy output argument (result is equal to one if BK conditions are satisfied).
* Removed useless definition of options_.qz_criterium 

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3306 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-06 13:53:47 +00:00
michel a54a6cfbfa 4.2: adding function header
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3303 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-05 15:06:45 +00:00
michel 9ef426c3a9 4.2: added evaluate_planner_objective.m
modified ramsey_policy to display objective function


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3302 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-05 14:59:49 +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
stepan a86149657e * Changed verbose mode in extended_path.m
* Fixed  the evaluation of  the distance  to the  deterministic steady
  state in perfect_foresight_simulation.m (when options_.terminal_condition==2).


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3299 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-04 10:35:11 +00:00
michel 9b3718b50f 4.2: corrected bugs for terminal_condition == 2
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3298 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-02 11:08:32 +00:00
stepan 2a75491196 Added functions to estimate the long run (co)variance of a
multivariate stochastic  process. Still needs routines  to compute the
optimal bandwidth parameter.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3297 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-31 10:20:32 +00:00
stepan 21aefdaa5e Added a function to compute order k (centered if k>1) moments of time series.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3296 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-30 13:41:48 +00:00
stepan 9d77d667e7 * Added initialization of the newton steps (for the extended path
algorithm) with the solution of the linearized model.
* Bug fixes
* Cosmetic changes.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3295 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-29 16:33:08 +00:00
stepan 2d0fff0292 * Bug fixes.
* Added two new initializations for the perfect foresight equilibrium paths.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3294 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-29 15:34:05 +00:00
stepan ec6c70443a * Bug fixes.
* Removed local copy of endo_simul.
* Cosmetic changes.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3293 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-29 10:55:52 +00:00
sebastien e6a1916577 Theoretical autocovariances:
* at order 2 with non-stationary variables, fixed 2nd order mean correction
* when HP filtering (whether at order 1 or 2), consider all variables as stationary (closes #52)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3288 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-23 11:34:44 +00:00
sebastien c0c0d48fed Fix gamrnd.m: for big integer values of parameter a, the gaussian approximation was incorrect (closes #67)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3281 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-21 11:08:59 +00:00
sebastien 0011678cb5 Changes by Ferhat:
* fix options stack_solve_algo={2,3,4} (closes #68)
* fix crashes for singular normalizations (closes #44) and implement decreasing cutoff
* fail for stack_solve_algo=2 under Octave (because there is no gmres function in Octave)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3279 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-21 10:29:21 +00:00
michel 3885bddd6d trunk: implemented more efficient formulas for smoother
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3276 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-19 22:43:23 +00:00
michel 2b5e551ad2 trunk: added error message for 2nd or 3rd order approximation of purely backward models (to be merged in 4.1)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3275 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-19 15:37:56 +00:00
michel f7ff186c63 trunk: fixed bug in sim1.m for options_.terminal_condition == 1 (to be merged in 4.1)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3274 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-19 15:25:19 +00:00
sebastien f9a7dfc5f4 Fix crash of rplot with models with no lags (fixed #71)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3267 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-18 09:39:53 +00:00
sebastien 982ffa4996 Detection of MEX files: avoid confusion with directories of the same name than MEX files
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3263 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-17 14:20:14 +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
sebastien c01a3c134b Reindented the reference manual (using Emacs' nXml mode, except for <programlisting> tags which are messed up by the autoindent)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3248 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 15:35:53 +00:00
sebastien aa23ed73e9 preprocessor + bytecode DLL: various enhancements to block and bytecode options (changes by Ferhat)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3244 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 13:21:31 +00:00
michel 9f57f73d74 4.1: shortcircuit simplified code for backward models when order > 1
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3243 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-15 15:07:48 +00:00
michel 28f5c66f5d 4.1: fixing bug in estimating backward models with loglinear option
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3242 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-15 14:12:53 +00:00
michel 0cf6180bb8 4.1: removed commented out code
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3241 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-15 13:33:03 +00:00
sebastien cf77c3f245 * Fix USE_DLL option at order 2 (closes #64)
* Added a corresponding test


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3236 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-14 11:06:29 +00:00
sebastien c5e0868db8 simultxdet.m: fixed bug when var_list is not equal to the set of all endogenous
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3234 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-14 09:17:55 +00:00
stepan 90f5ab741b * Added number of particles (10;-) when calling monte_carlo_gaussian_particle_filter from particle/DsgeLiklihood.
* Cosmetic changes.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3233 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-11 22:25:56 +00:00
fred b8db5a23a1 latest version ; still buggy
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3232 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-11 17:12:49 +00:00
fred ae72c409d6 first try for particular filter
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3222 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-11 11:49:02 +00:00
michel 74a8acc29c 4.1 adding instruments option to ramsey_policy; ramsey_policy can now use a *_steadystate.m file
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3219 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-10 14:59:32 +00:00
sebastien 728fb07d34 mjdgges.m: improve warning message
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3215 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-09 09:36:54 +00:00
sebastien 20d4107493 qz/mjdgges.m: under Octave, warn users if some eigenvalues are > 1.0 but <= qz_criterium in modulus (Octave can't change the criterium)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3206 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-08 09:36:03 +00:00
michel cf933608d0 4.1: solution for QZ in Octave (to be tested)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3202 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-07 12:25:24 +00:00
sebastien c402bd8969 qz/mjdgges.m: fail under Octave, since Octave can't compute a complex QZ
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3201 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-07 11:34:54 +00:00
george a5dad180ca opt taken out
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3193 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-03 09:58:58 +00:00
george 95f36d5d68 yss error taken out
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3192 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-03 09:37:06 +00:00
george aa6cf78250 Adding loglinear correction and the 2nd output argument for the 1st order as there must be 1+order output variables
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3191 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-03 08:14:10 +00:00
sebastien ee3ceb7db6 M-files and preprocessor:
* removed "options_.simul", and instead test if "options_.periods" is non-zero
* test for the incompatibility of options "periods" and "hp_filter" in "stoch_simul.m", instead of in the preprocessor
Reference manual:
* removed "simul" options, updated "periods"
* updated "order" option (for 3rd order)
* added "k_order_solver" option
* give some hints for installing a compiler for users of MATLAB for Windows


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3188 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-01 17:51:47 +00:00
sebastien 59ca45e4f4 Removed last remnants of "ct_" global variable
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3187 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-01 16:30:56 +00:00
michel 9d977e720b SWZ: updating SWZ test file tests/swz/test1.mod
removing useless function


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3184 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-01 14:05:41 +00:00
michel d37763635b SWZ: adding identification/upper_cholesky.m
cleaning up code


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3183 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-01 13:52:52 +00:00
michel 48dad3e37a 4.1: add preprocessor interface for k_order_solver
rename use_k_order to k_order_solver in Matlab procedures
     fix tests


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3179 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-30 19:54:45 +00:00
stepan 9a23cee31c * Changed name of ct_ --> options_.terminal_condition. The default value is zero
(the terminal condition is y_{T} = y^{\star}), other possible values
  are  1  (terminal  condition   is  y_{T+1}=y_{T})  and  2  (terminal
  condition is  y_{T+1}=TransitionMatrix*y_{T}, where TransitionMatrix
  is given by the first order approximation of the reduced form model).
* Added mode options_.terminal_condition=2 in perfect_foresight_simulation.m.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3176 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-30 16:24:57 +00:00
michel d2b1765c48 v4.1: changing Matlab routines for results display and simulation at order = 3
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3173 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-29 21:05:16 +00:00
michel 1820b3a4fb v4.1: remove matlab/kordpert not need anymore
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3172 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-29 21:02:52 +00:00
michel a715408698 v4.1: Matlab routines for k_order_perturbation
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3171 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-29 21:01:40 +00:00
stepan e8b6a04e97 * Cosmetic changes.
* Do not compute B if not needed.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3167 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-25 12:05:31 +00:00
sebastien a2cef7009d Fixes for ticket #57
preprocessor:
* add a field "M_.orig_endo_nbr" containing the nbr of endogenous before adding aux vars
* always provide "M_.aux_vars" (define it to "[]" when there is no aux var)
* rename "M_.aux_vars().orig_endo_index" to "M_.aux_vars().orig_index"

M-files:
* for commands which accept a list of variables (stoch_simul, osr, estimation, dynasave, dynatype, datatomfile), when no variable is given, use only the set of original endogenous (without aux vars) as the default
* when displaying the decision rule, when there is aux vars in the state variables, replace them by their original name (with the right lag)
* in "steady", don't display aux vars
* special exception for ramsey policy: all vars (including aux vars) are displayed, because the system of aux vars from ramsey policy is not compatible with the aux vars from the preprocessor


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3166 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-25 10:22:39 +00:00
sebastien 6e8cc2e8db forecast_graphs: force creation of subdirectory for storing graphs
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3165 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-25 09:52:54 +00:00
sebastien 5616f1f2a8 homotopy mode 2: replaced use of strtrim() by deblank(), for compatibility with older MATLAB
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3164 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-24 11:30:08 +00:00
sebastien dbff434fc1 dynare_config.m: reflect the fact that 64-bit DLLs need to be recompiled between 7.2 and 7.3
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3163 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-23 15:16:43 +00:00
sebastien c121d7a4d1 writedata.m: fail if using Octave or MATLAB 6.5, which don't have xlswrite
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3162 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-23 15:16:16 +00:00
michel edb717c1c9 4.1: factoring the code for Model Summary
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3161 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-22 16:51:36 +00:00
sebastien 9262cf34d5 Fixed name of MEX for MATLAB directory (goes back to 6.5)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3156 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-17 19:01:59 +00:00
stepan 7e463facf6 * Increase size of homotopic steps if all goes well.
* Break Newton loop if err is NaN or if err is increasing (save useless iterations).



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3152 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-17 10:58:19 +00:00
stepan 55272c010e * Cosmetic changes.
* Added verbose mode.
* Changed the initialization of the homotopic mode.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3151 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-13 17:06:30 +00:00
stepan c393fa92e4 Added homotopic steps on the size of the shocks.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3148 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-13 14:18:01 +00:00
sebastien 7085060e82 parallelization system:
* documented the functions masterParallel, fParallel and struct2local
* removed useless comments, and added some comments inside the code


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3146 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-10 18:29:56 +00:00
sebastien d17b813c6b Removed wrong executable property
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3142 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-09 11:01:59 +00:00
stepan facc7311a8 Bug fix. Changed the call to the particle filter routine.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3139 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-08 13:47:12 +00:00
stepan 2063c0944f * Removed simult_ and added local_state_space_iteration_2 (a specialized version of simult_).
* Renamed gaussian_particle_filter.m. Changed the names of the variables in this file. The 
gaussian nodes are not stored anymore in a big matrix.
* Added a function to compute the cholesky decomposition of a symetric semidefinite positive
matrix.  



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3138 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-08 13:46:05 +00:00
stepan 98ac3091c9 Added a vector of indices for the state variables in the restricted state vector (bayestopt_.mf0).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3132 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-06 14:03:50 +00:00
sebastien 04d5c56b20 dynare_config.m: test presence of dynare_simul_ DLL and display the result
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3131 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-06 12:03:19 +00:00
sebastien 30d2f00cc2 Reorganized the directory hierarchy for storing MEX files for MATLAB:
* mex/matlab/ is now the default location
* removed mex/2007a, mex/2007b and mex/2009a-64bit
* on Windows platforms, use version specific subdirs of mex/matlab if present (called win32-6.5.1-7.4, win32-7.4-7.9, win64-7.2-7.4, win64-7.5-7.7, win64-7.8-7.9)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3123 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-04 10:56:37 +00:00
ratto d9ea204fc5 File names should correspond to varlist and not to endo_names
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3122 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-03 15:21:30 +00:00
stepan 3a137c3eaa Added files for extended path simulations.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3120 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-03 13:45:52 +00:00
stepan b6d5369421 * Added files for extended path simulations.
* Removed seed from gaussian_particle_filter.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3118 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-03 12:27:22 +00:00
stepan 37144125fc Added simult_ and DsgeLikelihood routines specific to the particle filter.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3110 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-31 07:55:16 +00:00
stepan 11bb96f19b * Added subfolder for particle filters.
* Added a routine for gaussian particle filter. The likelihood is evaluated
by assuming that the state vector is normally distributed.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3109 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-31 07:55:13 +00:00
sebastien ffd9b2d405 preprocessor: clean-up workaround for acosh(), asinh(), atanh() on Win 64 platforms
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3101 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-29 17:16:10 +00:00
stepan ee74f38b11 Removed (or moved) initialization of options_'s fields from simul.m.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3079 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-23 12:52:16 +00:00
ratto e601d7bec1 Still some errors in dsgelikelihood are present that are not trapped: use try catch when evaluating target function;
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3078 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-23 12:01:34 +00:00
ratto 8a56ed35ad 1) Still some errors in dsgelikelihood are present that are not trapped: use try catch when evaluating target function;
2) proposal density should contain the jscale.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3077 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-23 12:01:15 +00:00
stepan f5037df3cd Cosmetic changes.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3073 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-23 10:03:03 +00:00
sebastien 9ab04f3323 Renamed kordepert to k_order_perturbation
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3070 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-23 09:07:47 +00:00
sebastien 3a673134fe Added missing copyright notice
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3069 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-23 08:15:32 +00:00
stepan 21d58eac91 * Bug fix.
* Changed the conditional forecast section in the manual.
* Removed the calibration token from the preprocessor.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3067 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-22 15:56:32 +00:00
stepan a9f18121bd Changed the files performing conditional forecasts (to match the output of the preprocessor).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3065 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-22 13:03:30 +00:00
ratto 98b3747312 Utility to check the definitions of the parallel cluster.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3064 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-22 09:20:37 +00:00
sebastien df7bc34379 Added a new option "partial_information" to stoch_simul, estimation, osr, ramsey_policy
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3063 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 16:55:31 +00:00
stepan c96d6767a1 Changed the place where priordens' persistent variables are saved (suite).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3061 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 15:47:36 +00:00
stepan f13cf45741 Changed the place where priordens' persistent variables are cleared.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3060 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 15:47:33 +00:00
sebastien aa6ff983a9 AIM solver:
* added interface in the MOD file, with a new option "aim_solver" to stoch_simul and estimation
* documented the option in the reference manual


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3059 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 15:44:56 +00:00
stepan 217462afe1 Fixed bug in the evaluation of the posterior kernel. The persistent variables declared in
priordens.m have to be cleared before calling evaluate_likelihood().

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3058 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 15:33:54 +00:00
ratto b863a6d6fc Added new identification options introduced in the preprocessor.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3057 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 15:13:47 +00:00
ratto b8bc96c8e6 Adapted to follow preprocessor syntax.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3056 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 15:13:15 +00:00
sebastien 1e3115e759 Workaround for bug in Octave 3.2, numbered #550823 in Debian BTS, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550823
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3055 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 12:58:17 +00:00
sebastien 05773e5edf CheckPath: another fix
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3054 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 12:57:22 +00:00
sebastien 9540db6bf4 CheckPath: use a better technique to avoid a file with the same name than the dir we are creating
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3053 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 12:43:15 +00:00
ferhat e1f17fa9e5 - adds a new option in simul command when block and bytecode options are used : minimal_solving_periods. With bytecode option, the linear solver is applied only on the first periods. As soon as the set of operations remains the same from one period to another, they are repeated for the remaining periods. In some cases the linear solver could encounter exact or near singularities. To avoid these effects, this new option allows the user to extend the minimal number of periods where the model has to be solved.
- corrects some mod files.
- In steady command, get check argument from bytecode dll

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3051 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-18 15:18:16 +00:00
stepan d87129ebf6 Added three functions used to evaluate the prior density, the posterior kernel and the likelihood.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3050 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-16 21:01:52 +00:00
ferhat 3c2d944cfc - use of classes to describe the bytecode tags
- use static option for bytecode instead of steady_state option

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3048 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-16 16:34:27 +00:00
sebastien bab7c9236b Added some missing copyright headers
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3044 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-14 10:04:06 +00:00
sebastien 5f247b32c4 CheckPath.m: give more informative error message when trying to create a subdirectory, when a file with the same name already exists
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3037 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-12 16:32:10 +00:00
ratto afb0c75744 Avoid the use of inv.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3034 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-09 08:25:34 +00:00
ratto 6e25472ad9 1) save output plots;
2) modified burnin_iteraton for pdraw0 in input;
3) minor changes.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3033 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-09 08:22:01 +00:00
ratto 173ce64d7e 1) added H to numerical derivative switch;
2) added steady state derivatives in output;

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3032 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-09 08:20:32 +00:00
ratto a2d9e2af1d Display message when rank condition on J and H is always OK.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3031 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-09 08:19:19 +00:00
ratto 33f0f84f89 1) Added steady state to moments;
2) use of oo_.dr.ys (always updated) in place of oo_.steady_state (not always updated).

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3030 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-09 08:18:39 +00:00
ratto 54c6dbd708 Use of the JJ and H to compute condition number.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3029 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-09 08:17:34 +00:00
ratto 20a469cfcf Fixed to allow truncated priors.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3028 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-09 08:10:52 +00:00
michel fb7ae67d09 v4.1: added trends to imcforecast
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3024 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-06 14:41:56 +00:00
michel add652918e added possibility to call user defined optimizing routine with mode_compute option
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3023 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-06 14:40:49 +00:00
michel ce5c510d06 v4.1: add provision for <modfile>_steady_state.m and auxiliary variables for leads on more than 1 period
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3022 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-06 14:37:23 +00:00
michel 541129c1be v4.1: adding add_auxiliary_variables_to_steadystate.m and code to adjust output of <fname>_steadystate.m for additional auxiliary variables
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3014 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-02 12:10:50 +00:00
michel e1f4f5e924 4.1: added steady state to forecast
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3012 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-02 11:47:56 +00:00
michel 202be85f5f 4.1: added missing semi-colon
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3011 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-02 11:41:23 +00:00
ratto 081cdf3cb0 Cleaner comments of work in progress ...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3001 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-30 13:28:47 +00:00
ratto 3ef53218b8 Impose always the same dimension for eigenvector matrix.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3000 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-30 07:18:27 +00:00
ratto 3739a7a6d8 Fixed bugs with new morris options!
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2999 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-29 16:40:46 +00:00
ratto 430088cf42 Always initialize oo_.dr with dynare_resolve!
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2998 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-29 16:24:14 +00:00
ratto 106a48dd8a Modified morris options to allows analytic derivatives a la Iskrev.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2997 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-29 14:56:51 +00:00
ratto 4cb2692e7d -) Delete old files;
-) commented work in progress

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2996 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-29 13:00:54 +00:00
ratto 869d054174 New version with
-) more complete data saving on disk;
-) new output arguments;
-) new plots.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2995 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-29 07:11:47 +00:00
ratto 863dee7acd Bug fix for the case of perfectly orthogonal pairs
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2994 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-29 07:10:31 +00:00
ratto 163d893e2e Bug fixed with useautocorr
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2993 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-29 07:09:57 +00:00
ratto a0c021ef0c Use correlations to compute linear combinations weakly identified.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2992 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-29 07:09:18 +00:00
michel 87e8cda64d v4.1: corrected bug in shock_decomposition.m when lags on more than one period
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2989 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-28 12:55:44 +00:00
stepan bc83fbd808 * Allow the use of a *_steadystate.m file with options block and bytecode.
* Added the possibility to use resid when the the options block *and* bytecode
are used.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2986 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-25 16:20:19 +00:00
michel 6eba462caa v4.1: fixing bug in 2nd order approximation when there are no variable appearing in the model at some intermediary lead or lag
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2984 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 20:06:28 +00:00
ratto 2645113760 stock parameters and small bug fix
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2983 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 17:25:31 +00:00
ratto e9a017b3fb new disp_pcorr option
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2982 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 17:19:14 +00:00
ratto 290ea0d24e Added iload option;
A and B computed here
compute sensitivities

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2981 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 17:18:39 +00:00
ratto b66a47c128 oo_, A and B are now inherited from main loop
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2980 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 17:13:58 +00:00
ratto 3f09d91873 minor bug fix
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2977 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 15:25:50 +00:00
ratto 531021acef USe '/' for unix compatibility
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2976 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 15:25:19 +00:00
stepan 1e4a7c2c71 * Cosmetic changes.
* Bug fix (with octave-3.2.2) in McMCDiagnostics.m

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2973 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 12:48:28 +00:00
stepan 897c5fb363 * Cosmetic change. Removed useless spaces in simul.m.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2970 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 12:48:19 +00:00
ratto b8f5e80099 Matches new output list for
missing_DiffuseKalmanSmoother3.m
and
 DiffuseKalmanSmoother3.m

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2969 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 12:44:33 +00:00
sebastien a3f639aba5 Moved vec.m under matlab/missing/vec, and add it into the path only under MATLAB (vec exists under Octave)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2967 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 08:34:57 +00:00
ratto 89a71d5596 copyright notices added
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2966 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 08:24:32 +00:00
ratto 6786e989b3 vec operator utility
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2965 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 08:13:49 +00:00
ratto d8cf192c77 Try/catch to avoid crashes linked to errors in diffuselikelihood that are not trapped by cost_flag
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2964 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 07:45:59 +00:00
ratto df921ce829 New identification routines.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2963 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 07:34:21 +00:00
ratto e916b1380f Solves multiple generalized Sylvester equations where only d is changing.
Useful to speed up analytic derivatives in identification analysis. 

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2962 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 07:32:48 +00:00
sebastien 02640c3e43 k-order perturbation DLL:
* removed existing build system
* reorganized source: separated test files from the rest, removed obsolete test files
* incorporated the DLL and the standalone test executable to the new build system
* minor fixes to ensure compilation


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2959 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-23 13:14:05 +00:00
ratto e6a59cd211 Parallelized version of independent MH.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2951 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-18 14:40:08 +00:00
stepan bfbf218616 * Fixed the dimension of oo_.mean (see the trac ticket #34).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2909 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-09 14:14:28 +00:00
stepan 50ec80f1df * Fixed buggy call to DsgeSmoother (two input arguments used to handle missing observations were missing).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2908 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-09 13:27:09 +00:00
sebastien d97683c26e Improve treatment of error messages in homotopy
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2895 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-03 16:22:50 +00:00
sebastien 85ac76b9ae Add isempty to regexp to get a boolean answer for a 32-bit systems
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2894 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-03 16:10:41 +00:00
sebastien e426a0214e Added new directory "mex/2009a-64bit" for 64-bit platforms using MATLAB 7.8 (R2009a) (MEX binary compatibility has been broken in R2009a for 64-bit platforms)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2891 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-03 13:09:34 +00:00
stepan 4a0a0c1ab9 * Added an exit condition in DsgeLikelihood when the jacobian of the
dynamic model (evaluated at the steady state) is complex.
* Added case 6 inf print_info (complex steady jacobian).



git-svn-id: https://www.dynare.org/svn/dynare/trunk@2890 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-03 11:39:06 +00:00
sebastien 71ba0d6433 Prevent use of "check" with "block" or "bytecode" option
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2889 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-03 10:11:36 +00:00
sebastien 579b5f509e Cleanup "cutoff" and "mfs" options (the former is no longer in options_)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2888 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-03 10:10:06 +00:00
sebastien 74232e9ee5 * Added new option stack_solve_algo to simul
* Added solve_algo=5 for steady
* Remove obsolete method option of simul
* Added various checks to avoid unimplemented combinations of bytecode/block/solve_algo/stack_solve_algo


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2882 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 16:34:48 +00:00
ferhat 9f45200924 simulate.dll has been replaced by bytecode.dll
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2881 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 14:40:54 +00:00
sebastien a56de57637 Various cleanups related to new options "bytecode" and "block"
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2879 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 13:36:56 +00:00
ferhat beade4bea1 References to model_mod option are ruled out of M-files
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2878 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 13:07:59 +00:00
michel 3eb02c720d updating SWZ sbvar code
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2876 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-30 19:28:10 +00:00
michel 1802078154 updating SWZ sbvar code
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2875 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-30 19:24:34 +00:00
ferhat ed6cda0ca1 New options for block decomposition and bytecode (see http://www.dynare.org/DynareWiki/ByteCode):
- the options "sparse_dll" and "sparse" are no more available. They are replaced by combinations of block (for block decomposition) and bytecode (for model stored in a binary file)
- markowitz is now an option of simul and steady commands


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2873 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-29 15:04:11 +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
ferhat 305914b551 - bug fix when solve_algo = 4 is selected
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2870 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-27 13:26:29 +00:00
ferhat d32dd99210 - extension of normalization of equations to nonlinear equations
- mfs: new option for 'steady' and 'model' commands. Determines the equation belonging to the set of feedback variables.
  mfs = 0 => all variables are considered as feedback variables (default value)
  mfs = 1 => using only naturally normalized equation as potential recursive equations (all variables assigned to unnormalized equations are considered as feedback variable)
  mfs = 2 => adding to the set of potential recursive equation with mfs = 1 the linear equation in endogenous variable normalized (all variables assigned to nonlinear unnormalized equations are considered as feedback variable)
  mfs = 3 => adding to the set of potential recursive equation with mfs = 2 the non linear equation in endogenous variable normalized
- correction of few buggs in simulate.dll
- block_mfs_dll: new option for 'steady' command. Use simulate.dll to solve the steady state model (speedup the computation of the steady-state and the homotopy)

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2866 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-25 09:43:01 +00:00
sebastien 2006e1f9be Don't display any table if option "noprint" is used (thanks to Gianni Lombardo for pointing this)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2863 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-24 13:39:43 +00:00
sebastien fec9486fb9 Change to option solve_algo=4 of steady:
Even when the Jacobian is very badly conditioned, continue to use a Newton step


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2862 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-21 12:05:34 +00:00
sebastien 64361938bb Added missing error catching
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2861 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-18 13:01:47 +00:00
ratto bb271bb8ac Eliminated double counting in constant: now result is identical to univariate algorithm.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2858 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-14 09:29:09 +00:00
ratto d2b3beb3e7 Fixed bugs highlighted by Junior, occurring when some constraint is violated when computing gradients.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2857 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-13 06:59:36 +00:00
ferhat 1d9260251d - sparse_dll option works fine with feedback variables
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2851 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-21 15:50:12 +00:00
michel f5920bbc34 v4: correcting bug related to nonstationary variables
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2850 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-21 11:52:35 +00:00
michel 4f09fc89f0 v4: update of shock decomposition code
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2847 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-17 05:38:19 +00:00
michel 9341a9bf54 v4: bug correction in computation of decomp
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2844 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-15 00:28:14 +00:00
sebastien 1db8b0d277 Homotopy:
* fixed bug with Octave in modes 1 and 3
* enhanced tests


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2832 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 13:14:17 +00:00
sebastien e8700bc046 Implemented MATLAB part of the block_mfs option to steady.
(Still need to fix a bug)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2829 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 16:35:07 +00:00
stepan a089e59f3c dynare/trunk::
+ Added a  new option for likinit=2 used to define  the numbers on the
initial diagonal Pstar matrix.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2828 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 15:41:11 +00:00
stepan a4d01dc31d dynare/trunk:: (dsge-var)
+ Added support for xls files.
+ Fixed a bug  appearing when the dafa file and the  mod files are not
in the same directory.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2827 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 15:03:11 +00:00
george c9d08951bf DsgeLikelihood_hh.m lik calculation compatibility and consistency changes
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2825 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-08 16:38:24 +00:00
george f4c3482acd P convergence likelihood bug fix
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2824 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-08 12:20:21 +00:00
stepan 181b268699 + Do not plot likelihood and posterior density if cost_flag = 0, put a
red bullet on the abscissa instead.
+ Cosmetic changes.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2821 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-08 10:11:38 +00:00
ratto c8966e2452 plot posterior and lik-kernel with the correct sign (i.e. with a maximum shape).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2817 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-07 12:07:40 +00:00
stepan 3692d5f99b + Added missing semicolon.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2813 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-06 12:34:57 +00:00
michel 05189497a5 changed handling of nonstationary variables:
- oo_.mean, oo_.var, oo_.gamma_y contains all selected variables
- moments of non-stationary variables are set to NaN
options_.Schur_vec_tolerance lowered to 10^-11


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2810 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-04 14:11:51 +00:00
sebastien e9a4e5e18f Workaround for Octave 3.2.0:
In Octave 3.2.0, the which() function doesn't accept filenames, but accepts function names.
This bug will be fixed in Octave 3.2.1, but this workaround solves the issue.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2807 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 10:36:11 +00:00
sebastien 37745150b5 Fixed header of dsge_posterior_kernel.m
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2806 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 10:22:22 +00:00
sebastien 4e9b23363a Reorganized the way we deal with functions which exist under only some versions of MATLAB and/or some versions of Octave:
* Created a directory matlab/missing to store them under subdirectories
* Add the needed subdirectories to the path from dynare_config.m
* Moved content of matlab/matlab/ and matlab/octave/ to matlab/missing/*/
* matlab/missing/ordeig/ordeig.m: new name of matlab/my_ordeig
* matlab/missing/ordschur/ordschur.m: fake replacement, displays an error message
* Removed old matlab/matlab/ and matlab/octave/ directories


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2805 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 10:20:42 +00:00
sebastien 5b06ad8ae5 Fixed bug with bvar_forecast under Octave (mkdir doesn't have the implicit "-p" option)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2800 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-01 13:17:44 +00:00
stepan d6fe54dc18 + Bug fixes related to the computation of prior (and posterior) moments.
+ Cosmetic changes.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2791 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-26 10:21:30 +00:00
sebastien 8c143e29fc trunk dr1.m: removed workaround for USE_DLL (no longer needed, since USE_DLL is now broken at order 2)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2789 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-25 12:13:42 +00:00
stepan 5f8de6f142 + Added error messages related to the output of the steadystate file.
+ Removed options_ from print_info.m
+ Removed some useless initializations of options_'s fields.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2786 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-25 08:30:27 +00:00
michel 4d7f60c803 v4.1: added 'file' to call to exist() function to avoid a bug when there exists a directory with the same name as the mex function
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2777 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-21 09:20:03 +00:00
ratto 5856731338 Updated version using p2 in place of pstdev
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2774 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-19 09:02:32 +00:00
ratto 27850744ba New version with the shape of the likelihood kernel on the top of posterior shape;
Use of one single loop, by merging the previous three cases, for easier parallelizing.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2773 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-19 08:54:40 +00:00
ratto d10423ec19 Added mode_check_nolik option, with default = 0
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2772 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-19 08:44:08 +00:00
stepan f039875f60 + Various bug fixes related to prior sampling.
+ Removed globals in set_stationary_variables_list.m.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2771 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-15 14:36:30 +00:00
stepan 2d314b32b9 Updated header.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2770 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-15 08:45:22 +00:00