Commit Graph

1855 Commits (5e230e41b4f30f8490abd48fa45805e7b587b1eb)

Author SHA1 Message Date
Michel Juillard 84d7c97d4e bug correction of previous change; further simplication in set_state_space 2011-02-27 22:03:43 +01:00
Michel Juillard 32c997f1ef correcting bug when some variables don't appear at the current period
cleaning set_state_space.m, taking into account that all modesl have leads and lags on only one period.
2011-02-25 14:30:36 +01:00
Marco Ratto b7133ebeb5 Fixed bugs related to global sensitivity analysis. 2011-02-25 09:27:33 +01:00
Sébastien Villemot 8001239118 Remove nonexistent smoother directory from addpath 2011-02-23 12:25:23 +01:00
Michel Juillard 86b88d4e70 one more smoother function removed 2011-02-23 11:24:16 +01:00
Michel Juillard f553e69de3 removing unused Kalman smoother functions 2011-02-23 11:07:06 +01:00
Sébastien Villemot e975336317 evaluate_smoother: fix call to DsgeSmoother (last argument was wrong) 2011-02-23 10:19:03 +01:00
Houtan Bastani dd6159d791 SWZ: remove instances of swz throughout 2011-02-22 15:06:38 +01:00
Houtan Bastani 0db26e98a1 set correct permissions on file (remove execute) 2011-02-22 15:06:38 +01:00
Houtan Bastani c59133562c more short-circuit logicals in the place of element-wise logicals 2011-02-22 15:06:38 +01:00
Sébastien Villemot a153f81156 Partial information:
- fix various bugs
- do not fallback on full information in case of error, this is confusing
2011-02-22 14:46:24 +01:00
Sébastien Villemot f6f96be0a0 Fix bug introduced in previous commit 2011-02-22 10:54:31 +01:00
ratto 8619ec7835 Fixed bug related to dname 2011-02-22 10:12:37 +01:00
Sébastien Villemot 39b73f73c5 Fixed compatibility problem with MATLAB <= 7.3 2011-02-21 12:05:48 +01:00
Michel Juillard aafa328362 updating dynare_estimation_init.m and using it in dynare_estimation_1.m. Required for GSA. 2011-02-21 11:22:47 +01:00
Michel Juillard c0d147c6da corrected bug in conditional variance decomposition: removed reference to useless aux variable 2011-02-20 12:24:24 +01:00
Houtan Bastani 8a0dabd07d use || and && as opposed to | and & where appropriate 2011-02-16 15:14:38 +01:00
Sébastien Villemot 94ca528604 Merge remote branch 'ratto/master' 2011-02-14 14:29:39 +01:00
Houtan Bastani b41fde5088 changed swz paths to ms-sbvar 2011-02-14 12:26:38 +01:00
Marco Ratto 90e5f489b2 Then the last shock declared in M_.exo_names has zero variance or it has no effect on the model, there is a mismatch dimension, since the posteriorIRF provides a stock variable with less dimensions than M_.exo_nbr. 2011-02-14 12:01:38 +01:00
Marco Ratto 7fb471e9cc Slightly simplified checks in computing gradient and Hessian for optimizer = 5. 2011-02-14 11:51:15 +01:00
Marco Ratto 13ea1c0046 A better way to compute outer product gradient (for optimizer 5) with the univariate Kalman Filter. 2011-02-14 11:48:29 +01:00
Sébastien Villemot d0640ddf5f Merge remote branch 'houtanb/master' 2011-02-10 19:20:56 +01:00
Michel Juillard e5d9a7eb42 corrected bug for options_.kalman_tol and increased its default value to 1e-10 2011-02-10 18:48:08 +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
Jacob Smith 6f46019bfa Fixed bug, where Ui,Vi,n0,np where not being initialized properly in exclusions.m identification for SWZ/MSBVAR 2011-02-09 09:25:22 -05:00
Jacob Smith dc275f4af4 Moved the TeX file closing statement outside of loop, to fix a problem with non existant file id in producing TeX output in stoch_simul 2011-02-09 09:21:03 -05:00
Houtan Bastani eab7c1c6db remove unused function 2011-02-09 10:06:13 +01:00
Michel Juillard 6ad29c9879 SWZ: fixing options vlistlog and vlistpercentage 2011-02-09 06:29:21 +01:00
Michel Juillard b247c329d8 replaced expressions X == 0 by more efficient and robust isequal(X,0) when X is a matrix
porting earlier changes from DsgeLikelihood.m to DsgeLikelihood_hh.
cleaning code
2011-02-09 06:23:27 +01:00
Marco Ratto f7477e23e5 fixed bug with parallel clusters with octave 2011-02-08 15:43:51 +01:00
Marco Ratto 7db0dad508 changed default for optimizer = 5 2011-02-08 15:42:38 +01:00
Marco Ratto ad77ce7189 fixed echoes on command window 2011-02-08 15:41:17 +01:00
Marco Ratto 0ad3f11c20 Extensions for testing under octave
(cherry picked from commit f3a40a816314de603078151ccada2afdcbba2b22)
2011-02-07 21:16:50 +01:00
Marco Ratto 025db5c5f7 bug fixes for file exchange through the network under octave 2011-02-07 14:38:51 +01:00
Marco Ratto 12555b4320 Skip parallel plots under Octave 2011-02-07 14:34:10 +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
Houtan Bastani 85332744d8 Ticket #59: add cases for errors that were not being caught and convert AIM error codes so that they don't overlap with other error codes in print_info 2011-02-04 15:47:56 +01:00
Sébastien Villemot 9ae3115b9d Fixing function name in header 2011-02-04 12:44:43 +01:00
Sébastien Villemot e95defd117 Implement workaround for ticket #161 2011-02-04 11:55:54 +01:00
Sébastien Villemot 314c411d17 Fix matlab path of MS-SBVAR in config file 2011-02-04 11:55:31 +01:00
Houtan Bastani 39adf099c3 SWZ: remove out of date code 2011-02-02 18:37:27 +01:00
Houtan Bastani 06fe0c850a SWZ: move mex code to new ms-sbvar dir and rename swz to ms-sbvar 2011-02-02 18:35:29 +01:00
Marco Ratto 0a93e9f28e - warning of for octave;
- fixed bug with batch file for octave;
- fixed screen output for octave;
- cosmethics
2011-02-02 14:15:18 +01:00
Marco Ratto bed32115d2 Fixes with screen output for parallel/octave + cosmethics 2011-02-02 14:13:11 +01:00
Sébastien Villemot 8111b671ff Merge remote branch 'ratto/master' 2011-02-02 09:58:58 +01:00
Ferhat Mihoubi 6f184371ef - Correction of temporary terms when bytecode is used and solve_algo <= 4 2011-02-02 00:31:37 +01:00
Marco Ratto 7583e0d3f1 semicolons 2011-02-01 23:37:41 +01:00
Marco Ratto e7646a4412 disable warnings in octave + semicolon 2011-02-01 23:33:22 +01:00
Marco Ratto 45cf10ed11 missing semicolon 2011-02-01 23:32:36 +01:00
Marco Ratto 3eb1ec0c40 fixed bug in previous commit (~ispc) 2011-02-01 23:26:01 +01:00
Marco Ratto 062734895f dynare provisions for rmdir under windows 2011-02-01 23:24:34 +01:00
Marco Ratto 9fdc7a655e capture system command for mkdir also for linux 2011-02-01 23:21:49 +01:00
Marco Ratto 76644861a3 Provisions for octave under linux + small cosmethics. 2011-02-01 23:21:00 +01:00
Ferhat Mihoubi 92d44e4414 correction of the index of the state variables 2011-01-31 10:05:27 +01:00
Ferhat Mihoubi 8a128c9643 Temporary terms input argument is no more needed in dynare_solve_or_bytecode 2011-01-31 10:02:55 +01:00
Ferhat Mihoubi 41823ad10d correction of the state variables list to display when the model is block decomposed 2011-01-31 10:01:08 +01:00
Michel Juillard 7fe6d73301 corrected bugs left in previous change set 2011-01-26 21:28:14 +01:00
Michel Juillard f36247ceed modifications to ramsey_policy code to allow for estimation 2011-01-26 21:24:47 +01:00
Michel Juillard 22d5bd16cf removed useless auxiliary variables from call to kalman_transition_matrix() 2011-01-26 21:24:46 +01:00
Michel Juillard bff8de837b modifying dynare_resolve() calling sequence 2011-01-26 21:24:46 +01:00
Michel Juillard a336799b96 corrected bug when mode_compute is a string 2011-01-26 21:24:46 +01:00
Michel Juillard 91e30d45f7 corrected bug related to ramsey_policy 2011-01-26 21:24:46 +01:00
Sébastien Villemot 55399a5dc5 Compatibility fix for Octave: under Octave, union() called on a column vector and a scalar returns a row vector, hence the need to add the 'rows' option 2011-01-24 15:34:02 -05:00
Michel Juillard c71e0fbd6b removing test about correlated data in initial checks before estimation: this condition is too restrictive. 2011-01-21 17:04:01 +01:00
Marco Ratto f83d7db907 Fix of .mat extension with save for octave. 2011-01-21 11:28:28 +01:00
Marco Ratto c5c99a80f6 Special fix for peculiar behavior of ls under octave/windows (+ use of ~ispc in place of isunix/ismac) 2011-01-21 11:26:24 +01:00
Marco Ratto 78c21916da Fixed output for octave/unix octave/win 2011-01-21 11:25:30 +01:00
Marco Ratto 6c801be332 Removed catch ME instance for octave compatibility 2011-01-21 11:22:25 +01:00
Marco Ratto 4eb91731fc Several fixes for octave compatibility:
- use of ispc;
- mat extension is save files;
- remove catch ME expressions;
- added printf message for octave runs
2011-01-21 11:21:32 +01:00
Marco Ratto 28a3b38cf4 For compatibility with octave (and for better coding) use of ~ispc in place of isunix/ismac 2011-01-21 11:18:29 +01:00
Marco Ratto a3e4a7ff09 Eliminated annoying echoes on command window 2011-01-21 11:15:49 +01:00
Michel Juillard 1db24b3107 bug correction for diffuse smoother 2011-01-18 19:04:20 +01:00
Michel Juillard c5310731d9 corrected bug affecting the smoother when called for a selected subset of variables 2011-01-18 19:04:20 +01:00
Sébastien Villemot 4cf358c895 Merge remote branch 'ferhat/master' 2011-01-18 17:24:42 +01:00
George Perendia 595675d333 Partial information changes that make adjustment for Octave and use rcond() < 1e-8 ..." to determine if a matrix is invertible plus some minor bug and formatting changes in dr1_PI.m 2011-01-17 20:40:41 +00:00
Ferhat Mihoubi ce07223628 - The Temporary terms management with bytecode when the model is block decomposed and solve_algo<5 is now compatible with octave
- Gets rid of warning message during the compilation of bytecode
2011-01-14 19:24:18 +01:00
Ferhat Mihoubi 96b6f1bf05 - Corrects the following problem:
Octave BiCGStab algorithm involves a 0 division in case of a preconditioner equal to the LU decomposition of the A matrix (in a linear system of the form A.x = b).
- The solution:
Checks if the linear system is solved simply using: x_new = x_old + U \ (L \ x_old)
Ticket #11
2011-01-14 19:24:17 +01:00
Ferhat Mihoubi 708a062338 The Octave version of fsolve do not converge when it starts from the solution. Check if the initial guess is equal to the solution. 2011-01-14 19:24:17 +01:00
Ferhat Mihoubi ac9415a943 - The bytecode.mex file has to be called when bytecode option is specified independently of the block option. 2011-01-14 10:39:34 +01:00
Michel Juillard e2a1d77f6e - added schur_statespace_transformation.m to factor it out of DsgeLikelihood.m and DsgeSmoother.m
and corrected a bug in the code
- added missing functions missing_DiffuseKalmanSmootherH1_Z.m (multivariate version) and
                          missing_DiffuseKalmanSmootherH3_Z.m (univariate version)
- use only these two versions of the Kalman smoother in DsgeSmoother.m
2011-01-13 21:50:26 +01:00
Michel Juillard f7eb39f7bb bug correction related to smoother 2011-01-13 21:45:09 +01:00
Michel Juillard 6ea053e47d correcting bugs in diffuse Kalman smoother 2011-01-13 21:10:06 +01:00
Michel Juillard 2e0a36ae9f Initialize estim_params_ in global_estimation.m. Necessary for smoothing models with no estimated parameters. 2011-01-13 21:10:06 +01:00
Sébastien Villemot 02fd6e668c Add error message for non-implemented features of gamrnd.m 2011-01-13 12:28:44 +01:00
Sébastien Villemot 9e38d85053 Change the formula for empirical autocorrelations, so that the result always lies in [-1,1] (thanks to Johannes Pfeifer for pointing this) 2011-01-12 11:26:02 +01:00
George Perendia 17bc655159 Partial Information: Update with improved, generalised recursive PCL solution method 2011-01-11 21:57:57 +00:00
Sébastien Villemot 503b055df2 Fixed bugs in varlist_indices.m (thanks to Johannes Pfeifer for pointing them) 2011-01-10 13:11:25 +01:00
Michel Juillard 05b9c70ae8 removing command CALIB: it has not been working for a long time. Calibration is in fact a special case of method of moments and should be replaced by such a method. 2011-01-04 10:16:38 +01:00
Michel Juillard 256ff761e8 stochastic simulations: fix the number of generated data to be exactly options_.periods
added ./tests/simul
2011-01-02 16:55:15 +01:00
Ferhat Mihoubi 35765ee01c - Matlab wrappers for the "print" option of bytecode 2010-12-31 17:03:19 +01:00
Ferhat Mihoubi aab5b2a488 - Manages the temporary terms when the model is evaluated block by block 2010-12-31 16:22:24 +01:00
Ferhat Mihoubi 129303430e The direction is not computed in same way in the dynamic case and in the static case 2010-12-31 16:20:35 +01:00
Ferhat Mihoubi a882a25760 - length(args) is used instead of size(args, 2) to avoid to transpose column vectors 2010-12-31 16:16:29 +01:00
Ferhat Mihoubi 2dbeddd1a9 - Manages the temporary terms when the model is evaluated block by block 2010-12-31 16:00:49 +01:00
Ferhat Mihoubi 2707965da1 - extends the compatibility of dr1 with bytecode 2010-12-31 15:56:49 +01:00
Ferhat Mihoubi 7209f3638a - consider a non sparse matrix for the Jacobian for compatibility reasons with dynare_solve 2010-12-31 15:53:28 +01:00
Michel Juillard dcc46959b4 The default for options_.qz_criterium is now different for different contexts:
qz_criterium = 1+1e-6
- stoch_simul
- osr
- check
- dynare_estimation_1 with lik_init =2 or 3
qz_criterium = 1+1e-6 for dynare_estimation_1 with lik_init = 1

This correct a bug in estimation and computation of the posterior distribution of moments of endogenous variables when the priors permit roots too close to 1.
2010-12-23 08:34:13 +01:00
Michel Juillard 6bb8d41909 Revert "- added a test an a penalty in estimation (DsgeLikelihood.m) if, in a stationary model (lik_init==1), a particular parameter set generates unit roots."
There is a better way of dealing with occasional non-stationary models in estimation

This reverts commit 8c0fb55206.
2010-12-22 09:40:39 +01:00