Commit Graph

4294 Commits (fd4c71a2a4f20854c91309444e8c80e040282aed)

Author SHA1 Message Date
Michel Juillard ed15f0bcac ms-sbvar: corrected bug in initialization/computation of final subperiod 2013-12-12 09:10:09 +01:00
Michel Juillard 86a083697e osr: added optimal value of parameters to oo_.osr.optim_params; moved
osr_example to ./tests/optimal_policy
2013-12-11 19:24:29 +01:00
Stéphane Adjemian (Scylla) 6cb18b34fb Added the possibilty to set the initial condition of the (stochastic) extended path simulations with the histval block. 2013-12-11 16:43:15 +01:00
Johannes Pfeifer cd3b5bf3d9 Fix bug in Bayesian estimation where the filter_step_ahead command produced no output
- Improves documentation of resulting matrices
- Adds unit test for filter_step_ahead option
2013-12-11 16:43:15 +01:00
Sébastien Villemot 1dc3f2119a Merge pull request #561 from rattoma/master
Fixed bugs and continue GSA plots harmonization
2013-12-11 01:51:50 -08:00
Stéphane Adjemian (Scylla) f16689e76f Do not systematically throw an errror message if the parameters in the provided mode_file does not exactly match the set of estimated parameters.
If some parameters are missing in the provided mode_file and if mode_compute>0, use the prior mean as an initial condition.
2013-12-11 10:01:22 +01:00
Stéphane Adjemian (Scylla) 4afcf8fdaf Fixed typo. 2013-12-11 10:01:22 +01:00
Stéphane Adjemian (Scylla) cf1bd26f84 Removed old version of homotopic_steps (extended path). 2013-12-11 10:01:22 +01:00
Stéphane Adjemian (Scylla) 1a8e50dd7a Same as commit #52a5262b7bbeb0a47961be42d8fba4845ead31cc for the simul command. 2013-12-11 10:01:22 +01:00
Stéphane Adjemian (Scylla) 3790ab1dc7 Cosmetic changes. Removed useless spaces and semicolons. 2013-12-11 10:01:22 +01:00
Stéphane Adjemian (Scylla) cf567dd5c0 Bug fix. Force axis tight in @dseries/plot method (otherwise the method crashes if Matlab/octave considers a too large x-abscissa). 2013-12-11 10:01:22 +01:00
Stéphane Adjemian (Scylla) a51db32145 Copy the generated time series in a dseries object (called Simulated_time_series) in the Base workspace (extended_path). 2013-12-11 10:01:22 +01:00
Marco Ratto a90807f85b Cosmetic change 2013-12-10 17:35:55 +01:00
Marco Ratto eb70ddfe66 threshold_redform must override detailed mapping also with log-transformation 2013-12-10 17:31:26 +01:00
Marco Ratto db9b61df78 Bug fixes, reduced the number of graphs and improved info on graphical output for screening identification and MC theoretical moments in GSA. 2013-12-10 17:10:04 +01:00
Marco Ratto f8ec220711 1) Fixed bug introduced in commit 3cb16af5e3
2) Harmonize bivariate plots in the proper way
3) Harmonize bivariate plots for rmse analysis
2013-12-10 15:48:34 +01:00
Marco Ratto 5516c64205 Fixed bug introduced in commit 57eb9e12e5 2013-12-10 14:10:43 +01:00
Marco Ratto 57eb9e12e5 1) Allow for endogenous prior restrictions
2) trap cases where only very few parameter combinations provide unique saddle path solution
2013-12-10 12:42:45 +01:00
Marco Ratto b3c4f9427f Fixed bad representation of identification patterns for moment information matrix (and also fixed figure title) 2013-12-10 11:22:15 +01:00
Marco Ratto 67d7ba75f0 1) Define a new type of parameter Random_prior_params, when prior/posterior mean mode do not work and the code searches randomly in the prior space a parameter combination that provides unique saddle path solution;
2) save point estimates in separate file, in order not lose work when subsequent analyses are done for prior/posterior mean/mode etc.
2013-12-10 11:05:54 +01:00
Marco Ratto 2d6e513738 Bug fix with irf restriction on period larger than 1 2013-12-10 10:54:47 +01:00
Sébastien Villemot b840af9fa5 Modify get_directory_description to return a flat cell 2013-12-09 18:54:12 +01:00
Houtan Bastani 2d966208c4 write_latex_definitions: remove lines that prevented this code from being included in a larger latex doc 2013-12-09 17:36:08 +01:00
Houtan Bastani 10652be09a write_latex_definitions: use texttt for variable names, #478 2013-12-09 17:24:50 +01:00
Houtan Bastani 3539dc7153 write_latex_definitions: use longtable, #478 2013-12-09 17:04:32 +01:00
Sébastien Villemot 07bea735de Merge pull request #557 from rattoma/master
Fixes to mode_compute=5. (1) force univariate steps at every iteration: ...
2013-12-09 05:29:47 -08:00
Stéphane Adjemian (Scylla) 1b57cb4a07 Copy the generated time series in Base workspace (extended_path). 2013-12-09 11:08:08 +01:00
Houtan Bastani ef777de3d5 fix typo fix 2013-12-08 11:40:10 +01:00
Houtan Bastani e765c16b73 fix typo 2013-12-08 10:47:39 +01:00
Marco Ratto e5854cb201 Fixes to mode_compute=5. (1) force univariate steps at every iteration: improve robustness at the expenses of a bit less efficiency; (2) fix gradient computation for special cases when the value of the parameters get stacked at the prior boundary. 2013-12-07 10:52:27 +01:00
Houtan Bastani ea888fe646 write_latex_definitions: use M_ as global 2013-12-06 16:01:38 +01:00
Houtan Bastani f70ebea94c new function write_latex_definitions closes #478 2013-12-06 15:33:49 +01:00
Sébastien Villemot c06a8df8a4 Merge pull request #553 from rattoma/master
Trap the case where only one parameter is estimated and only one non-con...
2013-12-06 06:16:50 -08:00
Marco Ratto d969a8129c Trap the case where only one parameter is estimated and only one non-constant row is available in Jacobian: (1) do not use vnorm; (2) do not use advanced option.
(cherry picked from commit d9856879ea4d9a7d9e954cc9392d1f0e98634cda)
2013-12-06 08:21:10 +01:00
Johannes Pfeifer c9ebe21faf Harmonize plotting of IRFS
In stoch_simul.m IRFs were only printed if they were not flat instead of checking whether the IRF is different from 0. Unit root responses were thus filtered out, e.g. C=0.2 for all t was not displayed.
2013-12-05 17:46:38 +01:00
Stéphane Adjemian (Charybdis) deed4df569 Added @dseries/mpower method (element-by-element powers). 2013-12-03 23:57:53 +01:00
Sébastien Villemot d9c3073fd9 Merge pull request #539 from JohannesPfeifer/stab_map_bivariate
Continue harmonizing figure titles in GSA
2013-12-03 06:50:51 -08:00
Johannes Pfeifer 51adbd8008 Update error message if SS-Anova Toolbox is missing 2013-12-03 11:45:29 +01:00
Johannes Pfeifer 3cb16af5e3 Continue harmonizing figure titles in GSA 2013-12-03 11:35:20 +01:00
Houtan Bastani 22949820be bug fix: close unclosed file id, #438 2013-12-02 12:34:09 +01:00
Sébastien Villemot d8d0f2b8cc Revert cosmetic change of 4fa2d5b 2013-11-29 23:09:51 +01:00
Stéphane Adjemian (Scylla) dc3bcb47bf Cosmetic (removed commented line of code). 2013-11-29 19:06:26 +01:00
Stéphane Adjemian (Scylla) a6a10055da Fixed bug (problem with dates selection in @dseries::subsref). 2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla) e1bff2c885 Adapted unitary tests for octave. 2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla) 59f1967347 Adapted unitary test for octave. 2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla) 67d71a628b Fixed bug (isscalar does not assume that the input is numeric). 2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla) e615f00bec Fixed bug in unitary test (due to a change of behaviour introduced last week by Houtan). 2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla) ee506c4ebe Added new routine to test if a global variable exist in the base workspace. 2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla) 4f71d74512 Bug fix (wrong handle). 2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla) 121aa5038c Bug fix. Input must be numeric in the first place. 2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla) 0419aa00e2 Cosmetic change (use isdates routine). 2013-11-29 19:02:40 +01:00
Stéphane Adjemian (Scylla) 8eb45edb92 Fix for Octave (need to add extension of the m script). 2013-11-29 19:02:40 +01:00
Sébastien Villemot c1c656f4d9 Fix config of warnings in @dseries/cumsum tests 2013-11-29 17:16:17 +01:00
Stéphane Adjemian (Scylla) 45c117fbff Fixed bug in Matlab unitary tests. Wrong dimension for returned infor variable (missing column for execution time). 2013-11-29 11:46:07 +01:00
Stéphane Adjemian (Scylla) 6e8bd16cf6 Do not define LOG if Matlab unitary tests are run from Octave. 2013-11-29 11:46:07 +01:00
Johannes Pfeifer ec9c32d2b7 Correct name of output folder in writing TeX-Code 2013-11-29 10:25:25 +01:00
Stéphane Adjemian (Scylla) 01f2dd2ab1 Changed the paths to Dynare's prior and post processing hooks. 2013-11-28 15:21:52 +01:00
Stéphane Adjemian (Scylla) 1ff556ada2 Give more informations if the mod file is not found in the current directory. 2013-11-28 14:49:42 +01:00
Stéphane Adjemian (Scylla) baa596f9be Give more details if the mod file is not found in the current directory. 2013-11-28 11:07:14 +01:00
Stéphane Adjemian (Scylla) 4fa2d5b8e9 Added comments and cosmetics. 2013-11-28 10:57:54 +01:00
Stéphane Adjemian (Scylla) be4a53e4fa Same as commit #ee91c7654ff753728850e68366c60fe1be33ebb3 for estimation. 2013-11-28 10:54:15 +01:00
Stéphane Adjemian (Scylla) ee91c7654f Return a human readable message error if order=0 (stoch_simul). 2013-11-28 10:51:20 +01:00
Stéphane Adjemian (Scylla) edb4398e28 Merge branch 'master' into fix-mcmc-algorithm 2013-11-27 17:57:36 +01:00
Stéphane Adjemian (Scylla) 130125c5da Changed the error message issued when the initial conditions for the estimated parameters are outside the bounds (the error message depends on the value of options_.prior_trunc). 2013-11-27 12:27:51 +01: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
Sébastien Villemot 4e4fc2ffdb Use load_xls_file_data in read_variables (for consistency with CSV) 2013-11-26 18:19:48 +01:00
Sébastien Villemot 36ec2561bf load_xls_file_data: under Octave, fail gracefully if io is not present 2013-11-26 18:19:48 +01:00
Sébastien Villemot 93416a93da Improvements in load_csv_file_data
* autodetect whether there are variable names and dates in the file
 * optimize under Octave, using csv2cell and parcecell from io package
2013-11-26 18:19:48 +01:00
Houtan Bastani eb75397e0f fix try / catch statement in tests for octave 2013-11-26 17:35:27 +01:00
Houtan Bastani 0d4d085447 fix try / catch statement for octave 2013-11-26 17:22:01 +01:00
Houtan Bastani 9454862142 internals: replace % for both matlab and octave with %% 2013-11-26 16:55:04 +01:00
Stéphane Adjemian (Scylla) b8c6e4bb01 Merge branch 'master' into fix-mcmc-algorithm 2013-11-26 16:53:27 +01:00
Houtan Bastani 89268f4f6f internals test: fix printing for octave 2013-11-26 15:29:23 +01:00
Stéphane Adjemian (Scylla) 10150a081d Bug fix (internals command with --load-mh-history option). 2013-11-26 14:03:11 +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) 80a853944a Also display the initial value of the posterior kernel, when internals --display-mh-history command is used. 2013-11-26 12:37:14 +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) f2f072bce1 Added options to the internals command to load mh-history files or display informations about MCMC settings and state.
For instance, assuming that fs2000a.mod is in the current Matlab/Octave's directory and that a metropolis has been run,
the following command:

>> internals --display-mh-history fs2000a

produces the following output in the Matlab/Octave's command window:

================================
MCMC set-up for fs2000a mod file
================================

MCMC chain number 1:
--------------------

 o Number of MCMC files is 1
 o Number of draws is 6000
 o Acceptance ratio is 35.28%
 o Last value of the posterior kernel is: 1221.81656
 o State of the chain:

       || Initial | Current
   ++++++++++++++++++++++++
   e_a || 0.01570 | 0.01608
   e_m || 0.00528 | 0.00512
   alp || 0.35026 | 0.36909
   bet || 0.99300 | 0.99308
   gam || 0.00086 | 0.00038
   mst || 1.00088 | 1.00147
   rho || 0.65926 | 0.71132
   psi || 0.66428 | 0.60611
   del || 0.00977 | 0.00198

MCMC chain number 2:
--------------------

 o Number of MCMC files is 1
 o Number of draws is 6000
 o Acceptance ratio is 33.38%
 o Last value of the posterior kernel is: 1220.39229
 o State of the chain:

       || Initial | Current
   +++++++++++++++++++++++++
   e_a || 0.01664 |  0.01576
   e_m || 0.00489 |  0.00504
   alp || 0.39701 |  0.36630
   bet || 0.99305 |  0.99219
   gam || 0.00067 | -0.00025
   mst || 1.00186 |  1.00218
   rho || 0.70060 |  0.63847
   psi || 0.65623 |  0.74668
   del || 0.00666 |  0.00842

while the command:

>> internals --load-mh-history

loads the content of the record structure (saved in the last mh-history file) in Matlab/Octave's workspace
under the name mcmc_informations.
2013-11-26 11:28:40 +01:00
Houtan Bastani dd1a9aaee6 utilities: fixed name2tex regexprep for octave 2013-11-25 06:37:15 +01:00
Houtan Bastani 27181a26d5 load_csv_file_data: fix isdate test 2013-11-25 06:15:35 +01:00
Houtan Bastani 7af47e1e9f dseries: change default to not use sub operator on latex 2013-11-22 17:55:57 +01:00
Houtan Bastani 69caa7ec03 reporting: replace format with date2string 2013-11-22 17:45:15 +01:00
Houtan Bastani afacf27268 reporting: replace getDatesCellStringArray with strings 2013-11-22 17:21:53 +01:00
Houtan Bastani 938751fa60 reporting: replace .time with .dates 2013-11-22 17:14:29 +01:00
Houtan Bastani 70e8f48afd reporting: replace occurrences of dynDate with dates 2013-11-22 17:11:57 +01:00
Stéphane Adjemian (Scylla) 43f11de27b Merge branch 'master' into fix-mcmc-algorithm 2013-11-22 16:56:23 +01:00
Stéphane Adjemian (Scylla) 817060c954 Added unitary test for name2tex routine. 2013-11-22 16:53:02 +01:00
Stéphane Adjemian (Scylla) d02171080c Rewrote name2tex routine and fixed bug. 2013-11-22 16:53:02 +01:00
Stéphane Adjemian (Scylla) 1fe3e4bc77 Cosmetic change. 2013-11-22 16:53:02 +01:00
Johannes Pfeifer da6e0fd096 Make sure that index is an integer in GetPosteriorMeanVariance.m 2013-11-22 14:53:50 +01:00
Stéphane Adjemian (Scylla) f14aed8f6a Removed check_presence_consecutive_MC_files in McMCDiagnostics. Cosmetic changes. 2013-11-22 11:28:24 +01:00
Stéphane Adjemian (Scylla) a65197f273 Fixed bug (missing output argument). 2013-11-22 11:13:49 +01:00
Houtan Bastani 29850cf2c5 Merge pull request #541 from JohannesPfeifer/typo_use_calibration
Fix typo in use_calibration
2013-11-21 14:23:32 -08:00
Houtan Bastani ebe816e0ca Merge pull request #540 from JohannesPfeifer/fix_parameter_updating
Fixed typo that prevented correct updating of parameters when using resi...
2013-11-21 14:22:35 -08:00
Johannes Pfeifer d935751c18 Fix typo in use_calibration 2013-11-21 21:19:29 +01:00
Johannes Pfeifer 23bd54ce72 Fixed typo that prevented correct updating of parameters when using resid together with the steady_state_model block 2013-11-21 19:39:50 +01:00
Stéphane Adjemian (Scylla) c0aaabc329 Merge branch 'master' into fix-mcmc-algorithm 2013-11-21 15:42:58 +01:00
Stéphane Adjemian (Scylla) 1393564701 Fixed bug of unknown origin... 2013-11-21 15:24:35 +01:00
Stéphane Adjemian (Scylla) 1ef53c1d6a Solve backward compatibility issues for mh-history files. Fixes #537. 2013-11-21 12:41:25 +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
Houtan Bastani 4f87313ed6 fix comment 2013-11-19 13:47:28 +01:00
Houtan Bastani 7abcd5bcb1 preprocessor: bug fix: return oo 2013-11-19 11:56:39 +01:00
Houtan Bastani aa0af5e556 proprocessor: block code bug fix: M and oo not being passed to solve_two_boundaries 2013-11-19 11:54:00 +01:00
Stéphane Adjemian (Charybdis) f908d64d9e Removed unused variable. 2013-11-17 16:37:53 +01:00
Stéphane Adjemian (Charybdis) 450c785b6c Added explicit error message for case 52 in print_info (DSGE-VAR models). 2013-11-16 23:35:10 +01:00
Stéphane Adjemian (Charybdis) ad0c29262b Cosmetic. Renamed DsgeVarLikelihood as dsge_var_likelihood. 2013-11-16 23:33:37 +01:00
Stéphane Adjemian (Charybdis) 9238523c26 If a DSGE-VAR is estimated, check that the user do not try to estimate/calibrate correlations between structural innovations and that there is no measurement errors. Closes #521. 2013-11-16 23:26:19 +01:00
Stéphane Adjemian (Charybdis) 0a4427af27 Fixed bug in simplex_optimization_routine (simplex -> options).
Closes #536.
2013-11-16 20:22:37 +01:00
Stéphane Adjemian (Charybdis) c8d77b204c Rewrote the header documentation of simplex_optimization_routine. 2013-11-16 20:13:08 +01:00
Stéphane Adjemian (Charybdis) 49def96bed Removed bayestopt_ as a global from simplex_optimization_routine. 2013-11-16 20:12:39 +01:00
Stéphane Adjemian (Scylla) 7cfad8eee0 Merge branch 'master' into remove-dynDate-class 2013-11-15 18:36:10 +01:00
Stéphane Adjemian (Scylla) b99db45707 Fixed bug (dynare path has to be defined sooner, otherwise isoctave is unknown in warning_config). 2013-11-15 17:03:58 +01:00
Houtan Bastani ddf90fb769 Merge pull request #533 from JohannesPfeifer/master
Fix bug when datafile was changed and nobs resulting from old dataset wa...
2013-11-15 07:52:51 -08:00
Johannes Pfeifer 530ad8e2d8 Fix bug when datafile was changed and nobs resulting from old dataset was bigger than is possible in new dataset 2013-11-15 16:47:25 +01:00
Stéphane Adjemian (Scylla) 2009d7bc66 Added overloaded plot function for dseries objects. 2013-11-15 15:28:19 +01:00
Stéphane Adjemian (Penelope) 7cef9c4dfa Fixed unitary tests in @dseries/ydiff. 2013-11-14 18:02:42 +01:00
Stéphane Adjemian (Penelope) 683861396c Fixed unitary test in @dseries/subsref. 2013-11-14 17:58:09 +01:00
Stéphane Adjemian (Penelope) 0c00151092 Merge branch 'master' into remove-dynDate-class
Conflicts:
	preprocessor/DynareBison.yy
2013-11-14 16:41:08 +01:00
Stéphane Adjemian (Penelope) e36516f766 Same as commit #92adc85d04217c05af1288bb77806ed9c73fd85f for ygrowth and ydiff methods. 2013-11-14 14:30:19 +01:00
Stéphane Adjemian (Penelope) 61cf9899e1 Fixed bug (dates member was not updated). 2013-11-14 14:29:29 +01:00
Stéphane Adjemian (Penelope) 98dde877ab Cosmetic changes. 2013-11-14 13:43:31 +01:00
Stéphane Adjemian (Penelope) 18749508e4 Fixed bug in @dseries/save.
The default value of the file name (without extension) was wrong when the method was called with the dot notation.
2013-11-14 12:55:11 +01:00
Stéphane Adjemian (Penelope) 92adc85d04 Change renaming of the variables to be more consistent (qgrowth(X) instead of QGROWTH_X). 2013-11-14 10:04:10 +01:00
Stéphane Adjemian (Penelope) 400a4da434 Access the @dseries/pop method with dot notation. Fixed bug. 2013-11-14 00:13:31 +01:00
Stéphane Adjemian (Penelope) 824d1ed74d Cosmetic changes in unitary tests for @dseries/mtimes (initialize t in the try/catch block). 2013-11-14 00:03:34 +01:00
Stéphane Adjemian (Penelope) 844936cdc4 Fixed bug (wrong calling sequence to isdseries function). 2013-11-14 00:02:17 +01:00
Stéphane Adjemian (Penelope) d56ae08ccc Changed behaviour of @dseries/pop method. If only one argument is provided, remove the last variable. 2013-11-13 22:10:50 +01:00
Sébastien Villemot 80a2a6b712 Merge remote-tracking branch 'jpfeifer/irf_debug_feedback' 2013-11-13 14:26:58 +01:00
Stéphane Adjemian (Scylla) 0d97252570 Fixed bug in @dseries/insert method when more than one variable has to be inserted. 2013-11-13 12:16:37 +01:00
Stéphane Adjemian (Scylla) b38082c558 Fixed header. 2013-11-13 12:15:02 +01:00
Stéphane Adjemian (Scylla) e0c4c937f3 Fixed bug (vobs member was not updated). 2013-11-13 11:24:27 +01:00
Stéphane Adjemian (Scylla) b43bfec85f Fixed typos. 2013-11-13 11:24:01 +01:00
Stéphane Adjemian (Scylla) 280825a3ca Access the @dseries/insert method with dot notation. 2013-11-13 11:00:22 +01:00
Stéphane Adjemian (Scylla) 6d4b6f6e67 Added missing unitary tests in the testsuite. 2013-11-13 10:59:44 +01:00
Stéphane Adjemian (Scylla) 9dd03751e2 Changed generated plots in unitary tests. 2013-11-12 18:42:07 +01:00
Stéphane Adjemian (Scylla) 7c91adadd5 Changed density (1200dpi->300dpi) for pdf, png and jpg outputs. 2013-11-12 18:19:37 +01:00
Stéphane Adjemian (Scylla) 14f306a0cf Fixed typos. 2013-11-12 17:19:33 +01:00
Stéphane Adjemian (Scylla) 1046089cef Rewrote @dseries/extract method. 2013-11-12 16:52:51 +01:00
Houtan Bastani 63eec83efe ms-sbvar: add load_flat_file.m. closes #505 2013-11-12 15:48:15 +01:00
Sébastien Villemot ea6ee19402 More Octave compatibility fixes wrt catch 2013-11-08 16:35:52 +01:00
Sébastien Villemot ecdbc42319 Fix error message when initial values of estimation are not suitable.
Ref #512
2013-11-08 16:09:16 +01:00
Stéphane Adjemian (Charybdis) 9a72beceed Removed some restrictions in @dseries/eq overload operator: the variables in the compared dseries object need not to have the same names. 2013-11-08 15:19:13 +01:00
Sébastien Villemot 179af0e4ab Octave compatibility fix: catch does not accept an argument 2013-11-08 15:02:30 +01:00
Stéphane Adjemian (Charybdis) 1d939bf685 Fixed typo. 2013-11-08 14:21:05 +01:00
Stéphane Adjemian (Charybdis) 0333629cb9 Changed x-labels in plot (with dates). Added commands for saving the generated plot in the unitary test of @dseries/baxter_king_filter. 2013-11-08 14:20:43 +01:00
Stéphane Adjemian (Charybdis) bcb6b5293a Fixed error messages in @dseries/align. 2013-11-08 09:45:10 +01:00
Stéphane Adjemian (Charybdis) 69525be77f Fixed bug in @dseries/align (update dates member of the second input argument). 2013-11-08 09:44:34 +01:00
Johannes Pfeifer f2b75aa3b3 Fix typo in model_diagnostics.m 2013-11-08 08:27:29 +01:00
Stéphane Adjemian (Charybdis) b9af2f31fb Fixed bug appearing if FREQ__ is not specified but INIT__ is (wrong default). Note that we never need to specify FREQ__ which is deduced from INIT__. 2013-11-07 15:03:18 +01:00
Johannes Pfeifer a0da47758f Filters out error due to model being purely static.
First step in #526
2013-11-07 10:22:24 +01:00
Johannes Pfeifer 57b33889bb Fix typo in field naming 2013-11-07 07:59:12 +01:00
Stéphane Adjemian (Scylla) 34e5f48752 Use isdseries and fixed bug introduced in commit fbb38d5576. 2013-11-06 22:43:43 +01:00
Stéphane Adjemian (Scylla) fbb38d5576 Renamed time member as dates (in dseries class) to avoid confusion with dates class' time member. 2013-11-06 17:41:11 +01:00
Stéphane Adjemian (Scylla) 805d4dda67 Added isdseries routine. Returns 1 if the input is a dseries object, 0 otherwise. 2013-11-06 17:15:19 +01:00
Stéphane Adjemian (Scylla) 92679a463f Check that the second input is a dseries object in @dseries/merge. 2013-11-06 16:59:32 +01:00
Stéphane Adjemian (Scylla) 4a2a9af021 Removed useless condition. 2013-11-06 16:56:21 +01:00
Stéphane Adjemian (Scylla) cecd56e457 Renamed getDatesCellStringArray routine as strings. Factorized code. 2013-11-06 14:53:36 +01:00
Houtan Bastani 0fdc18e7fb Merge branch 'ifc'
Conflicts:
	matlab/dynare_estimation_1.m
	matlab/global_initialization.m
2013-11-06 13:58:57 +01:00
Johannes Pfeifer b03697b342 Add possibility to initialize parameters from calibrated model 2013-11-06 13:50:46 +01:00
Stéphane Adjemian (Scylla) 8429321547 Merge branch 'master' into remove-dynDate-class 2013-11-06 12:43:06 +01:00
Stéphane Adjemian (Scylla) 7e779ed506 Removed debugging info in unitary test. 2013-11-06 10:58:59 +01:00
Stéphane Adjemian (Scylla) e6a18c8209 Added checks for octave and matlab version.
Behaviour of unique has changed after R2012b. We force the old behaviour to keep compatibility with Octave's implementation of the unique function.

Also removed useless condition.
2013-11-06 10:47:24 +01:00
Stéphane Adjemian (Scylla) 1f80af75c1 Rewrote header. 2013-11-06 10:01:47 +01:00
Stéphane Adjemian (Scylla) 71045299a4 Rewrote @dates/union more compactly (code factorization). 2013-11-06 09:42:18 +01:00
Stéphane Adjemian (Scylla) 1ac115ac2b Fixed typo in header. 2013-11-06 09:16:40 +01:00
Stéphane Adjemian (Scylla) e4ae889886 Cosmetic change. 2013-11-06 08:39:55 +01:00
Stéphane Adjemian (Scylla) f98ef6b3fb Rewrote header and removed useless condition. 2013-11-06 08:39:06 +01:00
Johannes Pfeifer 8dc13c12d8 Add missing function check_for_calibrated_covariances.m 2013-11-06 07:13:35 +01:00
Sébastien Villemot a72cc3ff48 Merge remote-tracking branch 'github/master' 2013-11-05 17:17:53 +01:00
Stéphane Adjemian (Scylla) d6a6c42054 Removed useless condition (first argument has to be a dates object). 2013-11-05 17:00:02 +01:00
Stéphane Adjemian ead332ed97 Merge pull request #511 from JohannesPfeifer/Correlated_errors_preprocessor
Bugfixes for correlated shocks
2013-11-05 07:49:37 -08:00
Stéphane Adjemian (Scylla) 7e70af88a9 Removed useless condition (first argument has to be a dates object). 2013-11-05 16:28:23 +01:00
Stéphane Adjemian (Scylla) 9795edd892 Removed useless condition (first argument has to be a dates object). 2013-11-05 16:27:16 +01:00
Stéphane Adjemian (Scylla) e8be29e97c Removed comments. 2013-11-05 16:26:16 +01:00
Sébastien Villemot 8a6e23845b Merge remote-tracking branch 'jpfeifer/mode_compute' 2013-11-05 16:20:04 +01:00
Johannes Pfeifer fddee8e1db Bugfixes for correlated shocks
Uses preprocessing capabilities introduced in 07137e804b

Fixes #392 and #494. Also fixes a bug in the checking for positive definiteness of covariance matrices in likelihood functions

Allows for calibrated covariances by reading them out and setting them after covariance matrix has been reconstructed from correlation and variances.

Adds unit test
2013-11-05 15:55:29 +01:00
Sébastien Villemot be983fa363 Merge pull request #518 from JohannesPfeifer/check_covariance
Add function to check covariances for consistency
2013-11-05 06:42:08 -08:00
Johannes Pfeifer 68a33a76d8 Add function to check covariances for consistency in stochastic simulations 2013-11-05 15:36:06 +01:00
Stéphane Adjemian (Charybdis) 42453b4887 Rewrote @dates/min function more compactly (as in commit 88389316fa). 2013-11-05 14:46:00 +01:00
Michel Juillard ac8303ed59 dynSeries: add possibility to merge with an empty series
adding comments
2013-11-05 12:46:30 +01:00
Stéphane Adjemian (Charybdis) 88389316fa Rewrote more compactly @dates/max function. 2013-11-04 19:21:00 +01:00
Stéphane Adjemian (Charybdis) 8568292fcd Fixed bug that pops up when adding an empty dates object with a non empty dates object. 2013-11-04 19:13:53 +01:00
Stéphane Adjemian (Charybdis) d8f1201a84 Fixed bug (undefined object). 2013-11-04 19:12:17 +01:00
Johannes Pfeifer 0d669a73cb Add options for providing the variances, an identity matrix , and user specified matrices as proposal densities
Deals with #507 and #112
Includes a unit test
2013-11-04 19:09:24 +01:00
Stéphane Adjemian (Charybdis) 8f93af16e1 Added method likecode for @dates/length. 2013-11-04 18:26:45 +01:00
Stéphane Adjemian (Charybdis) a88a7a0ac5 Added method like call for @dates/isempty. 2013-11-04 18:02:15 +01:00
Sébastien Villemot 1a8bba6393 Allow a custom function named 'prior' as a value for 'mode_compute' option
Closes #507
2013-11-04 15:42:59 +01:00
Stéphane Adjemian (Charybdis) 2078e06b16 Take care of matlab's version when using builtin intersect function. 2013-11-04 10:55:46 +01:00
Stéphane Adjemian (Charybdis) ddd95361ba Cosmetic changes. Added isoctave function to replace exist('OCTAVE_VERSION'). 2013-11-04 10:54:45 +01:00
Stéphane Adjemian (Charybdis) 7518a46de0 Fixed bug. Function isdates should not be located in @dates folder, otherwise the function is not found if the input argument is not a dates object (which makes the function useless). 2013-11-04 08:18:18 +01:00
Michel Juillard b81159f12c adding comments 2013-11-03 11:40:36 +01:00
Johannes Pfeifer 8282e76d61 Add more explicit information in case of singularity problem 2013-10-31 08:14:35 +01:00
Stéphane Adjemian (Charybdis) 63f8a731d9 Cosmetic changes. 2013-10-30 09:32:51 +01:00
Johannes Pfeifer 6b09ef8760 Take care of user-supplied function by checking whether mode_compute is numeric
Fixes #508

(cherry picked from commit 8ce11bc848)
2013-10-28 18:58:40 +01:00
Stéphane Adjemian (Charybdis) 9df1b8548e Merge branch 'master' into remove-dynDate-class
Conflicts:
	matlab/reports/@report_series/getLine.m
	matlab/reports/@report_series/write.m
	matlab/reports/@report_table/report_table.m
	matlab/reports/@report_table/write.m
2013-10-28 15:04:21 +01:00
Johannes Pfeifer 8ce11bc848 Take care of user-supplied function by checking whether mode_compute is numeric
Fixes #508
2013-10-27 10:56:11 +01:00
Stéphane Adjemian (Charybdis) 70969e4e46 Use @dates/double as a method. 2013-10-24 14:55:37 +02:00
Stéphane Adjemian (Charybdis) ed9babae26 Added missing constructor for dates of the form dates(DATES, DATES, DATES, ...).
Calls hozcat method.
2013-10-24 09:47:59 +02:00
Stéphane Adjemian (Charybdis) 901ab2758c Fixed bug (dates constructor of the form dates(FREQ, YEAR, SUBPERIOD) when FREQ is given by a character). 2013-10-24 09:42:15 +02:00
Houtan Bastani 4da6f10233 ms-sbvar: ms_simulation: add option to save mcmc draws 2013-10-23 17:03:52 +02:00
Sébastien Villemot 84dd46d9e5 Merge pull request #500 from JohannesPfeifer/conditiona_forecast_manual
Fix variable name and document saving of conditional forecasts
2013-10-22 05:06:23 -07:00
Stéphane Adjemian (Charybdis) 6128338a15 Added missing tag for triggering the unitary tests in @dates/double. 2013-10-21 11:53:33 +02:00
Stéphane Adjemian (Charybdis) d31a2674e8 Renamed dynDates2decimal as double, added doc/header and unitary tests.
The advantage of this  change is that we can put dates  in an array of
doubles. For instance, assuming that A is a 2*1 vector, the following
syntax is allowed:

A(1) = dates('1945Q3');
A(2) = dates('1938Q4');

Matlab/Octave calls the overload double function to convert the dates as
a double.
2013-10-21 11:50:21 +02:00
Stéphane Adjemian (Charybdis) 9a07e5c49d Fixed unitary test. 2013-10-18 22:55:53 +02:00
Stéphane Adjemian (Charybdis) d86d713cf4 Renamed dynSeries class as dseries. 2013-10-18 17:38:43 +02:00
Stéphane Adjemian (Charybdis) 0056751215 Fixed bug relatated with tex names. 2013-10-18 16:44:18 +02:00
Houtan Bastani 600ae070fb reporting: change series class name to report_series to avoid conflict with control systems toolbox function series 2013-10-18 15:20:44 +02:00
Houtan Bastani 95fea041ef reporting: fix typo 2013-10-18 15:20:44 +02:00
Houtan Bastani 1b7d2e1d10 reporting: change table class name to report_table to avoid conflict with matlab function table 2013-10-18 15:20:38 +02:00
Stéphane Adjemian (Charybdis) 14640275d8 Cosmetic change. 2013-10-18 15:06:36 +02:00
Stéphane Adjemian (Charybdis) ca04453e81 Fixed unitary test in @dynSeries/pop (bug caused by the change of behaviour of the eq method introduced in commit 5b59ff42b1). 2013-10-17 17:31:17 +02:00
Stéphane Adjemian (Charybdis) 8f3e10ea1b Merge branch 'master' into remove-dynDate-class 2013-10-17 16:33:19 +02:00
Stéphane Adjemian (Charybdis) b77d37d83b Fixed typo in unitary tests numbering. 2013-10-17 16:30:35 +02:00
Stéphane Adjemian (Charybdis) 29cbe5dfb4 Added overloaded cumsum function for dynSeries objects. 2013-10-17 15:59:29 +02:00
Stéphane Adjemian (Charybdis) 1cf174bdb4 Fixed typo in error and warning messages. 2013-10-17 14:26:12 +02:00
Stéphane Adjemian (Charybdis) f3a54ed79b Added overloaded method @dynSeries/ne (~=) and @dynSeries/isequal function (reproduce old behaviour of the eq operator, changed in commit 5b59ff42b1). 2013-10-17 11:38:44 +02:00
Stéphane Adjemian (Charybdis) 5b59ff42b1 Changed behaviour of the overload eq (==) method for dynSeries objects (see header). 2013-10-17 11:37:15 +02:00
Stéphane Adjemian (Charybdis) 69f7e2468c Fixed bug in display of the dynSeries objects. 2013-10-17 11:36:22 +02:00
Stéphane Adjemian (Charybdis) bf733d50c4 Added missing semicolon. 2013-10-17 11:36:03 +02:00
Stéphane Adjemian (Charybdis) a8a9ec1957 Fixed bug in the definition of init when extracting a subsample with a vector of integers. 2013-10-16 16:17:43 +02:00
Stéphane Adjemian (Charybdis) 66143e4749 dynDate -> dates in dynSeries. 2013-10-16 16:16:26 +02:00
Stéphane Adjemian (Charybdis) 529a94e329 Rewrote @dynSeries/horzcat method. 2013-10-16 15:51:07 +02:00
Stéphane Adjemian (Charybdis) 7de84a4767 Fixed typo. 2013-10-16 15:47:56 +02:00
Stéphane Adjemian (Charybdis) 08f693dffd Added @dates/horzcat and @dates/vertcat methods. Added a function to test if an object is a dates object. 2013-10-16 15:24:42 +02:00
Stéphane Adjemian (Charybdis) 306d8d6f88 Fixed bug (wrong use of inputname function). 2013-10-16 14:56:23 +02:00
Stéphane Adjemian (Charybdis) 46db51b479 Updated @dynSeries/extract method. 2013-10-16 13:16:07 +02:00
Stéphane Adjemian (Charybdis) 2bb66c38f0 Updated dynSeries class' constructor. 2013-10-16 13:09:11 +02:00
Stéphane Adjemian (Charybdis) eb25a54ee9 Added unitary tests for the dates class' constructor. 2013-10-16 13:07:41 +02:00
Stéphane Adjemian (Charybdis) 2f7e9959f0 Changed dates constructor so that an object can be instantiated by passing the freq and time member or the freq member, the first column of the time member and the second column of the time member (mandatory only for non annual frequency). 2013-10-16 13:04:48 +02:00
Stéphane Adjemian (Charybdis) f28bc166f6 dynDate --> dates in load_xls_file_data. 2013-10-16 12:30:14 +02:00
Stéphane Adjemian (Charybdis) 73df682eb8 Added consistency test between INIT__ and FREQ__. 2013-10-16 12:05:39 +02:00
Stéphane Adjemian (Charybdis) fb08f5c133 dynDate --> dates in load_mat_file_data routine. Fixed unitary test. 2013-10-16 12:03:39 +02:00
Stéphane Adjemian (Charybdis) d0220e8685 Rewrote headers. 2013-10-16 11:56:36 +02:00
Stéphane Adjemian (Charybdis) 97580b84bb dynDate --> dates in load_m_file_data routine. Fixed unitary test. 2013-10-16 11:40:55 +02:00
Stéphane Adjemian (Charybdis) c4667fedbb Replaced instantiation of dynDate objects by instantiation of dates objects in load/csv_file_data (initial date of the dataset). 2013-10-16 11:34:45 +02:00
Stéphane Adjemian (Charybdis) c8d4949c52 Rewrote header. 2013-10-16 11:33:23 +02:00
Stéphane Adjemian (Charybdis) f30b88f50c Changed default options_.initial_period (has to be a dates object). 2013-10-15 16:18:46 +02:00
Stéphane Adjemian (Charybdis) d588fce95d Fixed unitary test #4 in @dates/dates (constructor). 2013-10-15 15:53:16 +02:00
Stéphane Adjemian (Charybdis) 667e895a26 Fixed unitary test in @dates/colon. 2013-10-15 15:51:33 +02:00
Stéphane Adjemian (Charybdis) 786ad2b6eb Fixed typo in comments (unitary testof @dates/isempty). 2013-10-15 15:50:17 +02:00
Stéphane Adjemian (Charybdis) 24d68dceab Fixed unitary test in @dates/union. 2013-10-15 15:48:02 +02:00
Stéphane Adjemian (Charybdis) abdf266608 Fixed unitary test in @dates/intersect. 2013-10-15 15:45:55 +02:00
Michel Juillard 63430a54ea dynSeries: replacing strmatch by strcmp 2013-10-15 15:39:15 +02:00
Stéphane Adjemian (Charybdis) e681fff99f Oups! Rename the constructor also... 2013-10-15 15:39:14 +02:00
Stéphane Adjemian (Charybdis) 868c3c6a5e Renamed dynDates class as dates. 2013-10-15 15:36:21 +02:00
Stéphane Adjemian (Charybdis) aec191c825 Removed @dynDate class. 2013-10-15 15:13:43 +02:00
Stéphane Adjemian (Charybdis) f836e485f9 Rewrote @dynDates/subsref method. Added unitary tests. 2013-10-15 15:06:32 +02:00
Stéphane Adjemian (Charybdis) f813702b32 Added a routine to test if an integer (a vector of integers) can be interpreted as a subperiod (a vector of subperiods). 2013-10-15 15:03:43 +02:00
Johannes Pfeifer 13bd1622e2 Fix variable name and document saving of conditional forecasts 2013-10-15 13:31:11 +02:00