Commit Graph

2651 Commits (05dca0e3ead1e6869aab84642222462ed7c1cbb4)

Author SHA1 Message Date
Johannes Pfeifer c59504adba Added missing codes to print_info.m and fixed typo 2012-04-25 12:03:52 +02:00
Johannes Pfeifer 9adc972945 Fix typo 2012-04-25 12:03:44 +02:00
Johannes Pfeifer 39e55cad62 Corrected AIM error codes that got lost when moving to stochastic_solvers 2012-04-25 12:03:33 +02:00
Johannes Pfeifer bda0b1b228 Move hardcoded options from UnivariateSpectralDensity.m to global_initialization. 2012-04-25 11:49:01 +02:00
Johannes Pfeifer 4c255cf2ae Starts implementing Ticket 216. Most plotting and figure is now controlled by the functions dyn_figure and dyn_saveas, allowing for option_.nodisplay to suppress the displaying of figures and using options_.graph_format to control the format of saved figures. 2012-04-25 11:47:40 +02:00
Michel Juillard f7cf75a228 fixed problems with trying to make homotopy robust to problems in one run. 2012-04-23 16:57:46 +02:00
Michel Juillard 5990a87bbf removed error messages form dynare_solve_block_or_bytecope and replace
them with setting info=1. The error messages should be managed by a
calling function
2012-04-23 14:27:18 +02:00
Michel Juillard f37f4d4b49 fixing bug in computing steady state of Ramsey policy 2012-04-23 13:39:50 +02:00
Michel Juillard 7ddab426b5 adding missing function to compute mean and covariance matrix of
Metropolis sample
2012-04-23 13:36:37 +02:00
Michel Juillard 8d4834de38 added a comment for test of eigenvalues close to 0/0 2012-04-23 13:22:19 +02:00
Michel Juillard 408cce93cb fixing bug related to computation of steady state introduced in commit f8ecc4d6ba 2012-04-22 10:11:29 +02:00
Michel Juillard dd5cb335fb changes to stochastic perfect foresight simulation (still doesn't work
correctly with ZLB)
2012-04-21 21:41:07 +02:00
Michel Juillard d497ba19f7 storing osr objective value in oo_.osr.objective_function 2012-04-21 21:39:06 +02:00
Michel Juillard aa22cb56d1 computing shock_decomposition for calibrated models 2012-04-21 21:37:52 +02:00
Michel Juillard e692185c6b storing oo_.prior.mean oo_.prior.variance
oo_.posterior.optimization.mode oo_.posterior.optimization.variance
oo_.posterior.metropolis.mean oo_.posterior.metropolis.variance as
aggregate arrays in addition to previous storage variable by variable
2012-04-21 21:28:03 +02:00
Michel Juillard 61b4538644 fixing problems in risky steady state 2012-04-21 21:21:45 +02:00
Michel Juillard a0ffa6a154 fixing bugs in Ramsey policy 2012-04-21 21:16:57 +02:00
Michel Juillard d1120da658 fixing bugs in evaluation of steady state file introduced in last
related commit
2012-04-21 11:39:21 +02:00
Michel Juillard 6131e597f3 changed option name discretion_tol -> discretionary_tol, added the option
to the preprocessor, added to documentation
2012-04-21 10:40:24 +02:00
Michel Juillard f8ecc4d6ba reorganized code for evaluating steady state file 2012-04-21 10:12:00 +02:00
Sébastien Villemot abc60b6037 Test if control toolbox is present if lyapunov=square_root_solver 2012-04-20 21:37:29 +02:00
Sébastien Villemot 4e537fcdcc New function for testing an Octave Forge package 2012-04-20 21:36:49 +02:00
Sébastien Villemot 1dfba1b99f Merge remote-tracking branch 'ferhat/master' 2012-04-20 21:15:09 +02:00
Ferhat eed54fb08a - Adds new algorithms to solve Lyapunov equations: Doubling algorithm and Square root solver. Their respective names are "doubling" and "square_root_solver".
- Adds the tolerance criteria for the iterative solvers (sylvester_fixed_point_tol, lyapunov_fixed_point_tol and lyapunov_doubling_tol)
- Updates the reference manual
2012-04-20 19:23:00 +02:00
Sébastien Villemot f4e3925860 Rename bfgsi.m to bfgsi1.m to avoid clash with the one provided by Tao Zha
Closes: #215
2012-04-20 17:25:08 +02:00
Sébastien Villemot edbf3bd175 Remove useless calls to set_default_option 2012-04-20 17:08:11 +02:00
Sébastien Villemot 6a23afdd48 RandStream: compatibility fix for MATLAB >= 7.12
setDefaultStream has been renamed setGlobalStream
getDefaultStream has been renamed getGlobalStream

Closes: #198
2012-04-20 14:42:30 +02:00
Stéphane Adjemian (Charybdis) ccc3c513fb Fixed bug (initialization of zero_delta). 2012-04-19 14:17:02 +02:00
Houtan Bastani 6180bc2212 Add TZcode submodule to repository 2012-04-19 12:27:39 +02:00
Michel Juillard 973302e42e fixing bugs in smoother 2012-04-18 21:15:18 +02:00
Michel Juillard 41e027aee3 added steady option stop_on_error. stop_on_error = 0 permits to
continue (for example, when chaining homotopy steps), even if the
steady state computation was not successful.
2012-04-16 22:40:50 +02:00
Michel Juillard 1014bb038d made loglinear option available for purely backward and purely forward
models (for now only with order==1)
2012-04-15 14:06:37 +02:00
Houtan Bastani 2f5d76dc8c ms-sbvar: set A0, A+, Zeta, and Q based on output_file_tag passed to estimation 2012-04-13 16:12:24 +02:00
Houtan Bastani b96c35a1a4 ms-sbvar: remove unused code 2012-04-13 15:56:25 +02:00
Sébastien Villemot a44fa426c4 Simplify logic of test since Octave 3.2 is now the minimal requirement 2012-04-04 22:16:39 +02:00
Sébastien Villemot 339d88220d qz() has changed between Octave 3.2 and 3.4 2012-04-04 22:13:34 +02:00
Michel Juillard 9bcb1883bd fixing bug related to use of QZ decomposition in Octave 2012-04-04 21:46:24 +02:00
Marco Ratto d4723038be 1) fixed infinite loop
2) fixed names of sylvester functions
2012-04-04 16:43:44 +02:00
Marco Ratto 32de0fd675 fixed typos 2012-04-04 16:41:49 +02:00
Marco Ratto f455557376 compact all sylvester routines, with generic dimension of d argument 2012-04-04 16:38:22 +02:00
Marco Ratto 76093094a6 Force precision in sylvester equation solution, particularly useful for different behaviour of the function schur under octave 2012-04-04 10:39:19 +02:00
Marco Ratto a49e550448 typo fixed 2012-04-04 10:36:54 +02:00
Marco Ratto fe6aa88c27 1) check if AHess is positive semi-definite;
2) fix memory issues related to chh
3) fix issue for the rare case of empty indok (octave)
2012-04-04 10:36:32 +02:00
Marco Ratto 3ca9485edd bug fix when calling gsa
set default order=1
set analytic derivation =1
2012-04-04 10:35:18 +02:00
Houtan Bastani 28d985433b bug fix: wrong index used in test 2012-04-03 18:33:24 +02:00
Houtan Bastani 08bcf39fe7 estimation: clear subsamples substructure whenever a subsamples statement is encountered 2012-04-03 18:33:23 +02:00
Houtan Bastani 7e6bd80f17 estimation: remove s from parameters substructure 2012-04-03 18:33:23 +02:00
Houtan Bastani 31e0bc2e1e estimation: simplify global_initialization 2012-04-03 18:33:23 +02:00
Sébastien Villemot 2057365143 Require at least Octave 3.2.2 (and therefore drop rcond.m and bicgstab.m)
Octave 3.2 has been around for a long time, and is included in most
distributions.
2012-04-03 17:57:38 +02:00
Sébastien Villemot 90cb2ffb59 Under Octave >= 3.4, don't sleep for 2 seconds 2012-04-03 17:46:48 +02:00
Stéphane Adjemian (Charybdis) 3be6b610c8 Merge remote-tracking branch 'houtanb/master' 2012-04-02 15:18:12 +02:00
Michel Juillard a35e0cb3e3 fixed bug in initial estimation checks when mode_compute == 5 2012-03-31 11:01:32 +02:00
Houtan Bastani 9741b3b3ec estimation: reorganize options output 2012-03-30 15:37:15 +02:00
Houtan Bastani 93db8937ab estimation: reorganize Matlab structure output 2012-03-30 15:37:14 +02:00
Houtan Bastani 2be333da55 estimation: change name handling for correlation statements 2012-03-30 15:37:14 +02:00
Stéphane Adjemian (Charybdis) be33621ca5 Fixed texinfo header + Cosmetic changes. 2012-03-30 12:08:13 +02:00
Stéphane Adjemian (Charybdis) 9bfc3f6ec6 Fixed bugs and typos. 2012-03-30 12:00:08 +02:00
Stéphane Adjemian (Charybdis) 2db0c98b9b Fixed texinfo header. 2012-03-30 11:55:01 +02:00
Stéphane Adjemian (Charybdis) 795d0fce16 Cosmetic changes. 2012-03-30 11:48:23 +02:00
Stéphane Adjemian (Charybdis) 6c6b62937f Added smooth resampling. 2012-03-30 11:47:24 +02:00
Stéphane Adjemian (Charybdis) 294dbdc52c Fixed bug in the evaluation of the likelihood. 2012-03-30 11:21:24 +02:00
Stéphane Adjemian (Charybdis) 9cc4661942 Fixed bug in initial_estimation_checks + Cosmetic changes. 2012-03-30 11:12:59 +02:00
Houtan Bastani 7feb27fe1c estimation: rewrite options output 2012-03-29 16:45:46 +02:00
Houtan Bastani d54e4c4b17 estimation: rewrite prior output 2012-03-29 16:07:01 +02:00
Houtan Bastani 46a655fbd5 estimation: rewrite subsamples statement as an actual statement 2012-03-28 18:51:52 +02:00
Sébastien Villemot 90e5c6e7c6 Replace str2mat (deprecated in MATLAB, removed in Octave 3.6) by char 2012-03-21 10:11:17 +01:00
Michel Juillard a899594f3d initializing globals ys0_ ex0_ ex_det0_ 2012-03-17 20:34:58 +01:00
Michel Juillard 41db06f5ae removing dr1.m 2012-03-15 16:50:41 +01:00
Michel Juillard 8fa6a9883a replacing call to dr1() by call to stochastic_solvers() 2012-03-15 16:45:25 +01:00
Michel Juillard d6f8e252e5 Merge remote-tracking branch 'origin/master' into dr1break 2012-03-15 16:18:37 +01:00
Michel Juillard 5d4d318bc7 fixing bug in estimation by maximum likelihood 2012-03-15 15:33:02 +01:00
Sébastien Villemot 5954cf2011 Disable more warnings under Octave 2012-03-14 16:39:34 +01:00
Sébastien Villemot e62613e6cb Fix string warnings for Octave 3.6 2012-03-14 16:35:20 +01:00
Stéphane Adjemian (Charybdis) c5fa0b82a9 Merge remote-tracking branch 'marco/master' 2012-03-14 12:49:56 +01:00
Sébastien Villemot ebfeae2ccf Provisions for MATLAB 7.14 (R2012a) 2012-03-13 17:43:30 +01:00
Stéphane Adjemian (Charybdis) 75675d3677 Code simplification, do not pass endo_simul and exo_simul to bytecode through the global structure oo_. 2012-03-12 10:34:28 +01:00
Stéphane Adjemian (Charybdis) 4aedf7e9c0 Added a commented line to print the effective number of particles if needed. 2012-03-12 10:29:25 +01:00
Michel Juillard 1fcf708b80 Merge remote-tracking branch 'origin/master' into dr1break 2012-03-10 18:21:14 +01:00
Sébastien Villemot 4ba016cc16 Merge remote-tracking branch 'ferhat/master' 2012-03-09 20:13:22 +01:00
Stéphane Adjemian (Charybdis) 323e6fdf4f Added a second gstep option used as a parameter for the routine computing the hessian matrix.
In some cases, for instance for the non linear filters, it helps to reduce this new gstep parameter
to get a positive definite hessian matrix. options_.gstep is now a 2*1 vector. The first element is
the old gstep parameter, the second element is the new gstep parameter. The step defined for the
computation of the hessian matrix is now:

h1=max(abs(x),sqrt(gstep(1))*ones(n,1))*eps^(1/6)*gstep(2);
2012-03-09 16:36:26 +01:00
Stéphane Adjemian (Charybdis) 13eb218513 Fixed bug (ub is unknown but defined as a field in bayestopt_). 2012-03-09 15:06:04 +01:00
Stéphane Adjemian (Charybdis) 1ac55d8be8 Fixed bug. 2012-03-09 12:57:58 +01:00
Stéphane Adjemian (Charybdis) ec9b47426a Added an option for the threshold level of neff in the generic case of the resampling routines. 2012-03-09 12:44:25 +01:00
Houtan Bastani ec2528ae9b estimation: fixes to options statement 2012-03-09 11:47:25 +01:00
Ferhat Mihoubi 75331d7a4f The global oo_.steady_state should also be updated in the homotopy loop 2012-03-09 11:47:13 +01:00
Houtan Bastani dd67a81e57 estimation: place parameter priors in their own substructure 2012-03-09 11:46:09 +01:00
Sébastien Villemot 7889ac21b2 Merge remote-tracking branch 'ferhat/master' 2012-03-09 10:30:01 +01:00
Houtan Bastani ad580b8cc6 MS-SBVAR: clean up plotting functions 2012-03-08 18:25:37 +01:00
Houtan Bastani d212772212 MS-SBVAR: change state to regime to coincide with name previous name change 2012-03-08 17:55:40 +01:00
Houtan Bastani 402363bab2 MS-SBVAR: rewrite ms_variance_decomposition 2012-03-08 17:54:35 +01:00
Houtan Bastani 5f60f1bd27 MS-SBVAR: rewrite ms_forecast 2012-03-08 17:54:05 +01:00
Houtan Bastani 11c63e5050 MS-SBVAR: clean up plot_ms_*.m 2012-03-08 17:54:05 +01:00
Houtan Bastani 4e41ad7285 MS-SBVAR: remove unused argument to plot_ms_irf.m 2012-03-08 17:54:05 +01:00
Houtan Bastani 864e0b7c7e MS-SBVAR: rewrite ms_irf 2012-03-08 17:53:58 +01:00
Stéphane Adjemian (Charybdis) f12e8a3754 Force the weights to sum up to one, and not to the number of particles as in WK (Econometrica 2010). 2012-03-08 16:36:31 +01:00
Stéphane Adjemian (Charybdis) 8184ff3fdd Fixed bug (wrong calling to the resample routine: missing inputs). 2012-03-08 15:53:20 +01:00
Stéphane Adjemian (Charybdis) 7f1ab166f5 Fixed bug. 2012-03-08 15:44:14 +01:00
Ferhat Mihoubi dfbd6c8f2a Adds the index of equations (M_.blocksEQU) for a block decomposed model without bytecode option and use this index in resid.m to retrieve the residuals 2012-03-08 15:29:56 +01:00
Stéphane Adjemian (Charybdis) d995234003 Fixed bugs. 2012-03-08 12:49:17 +01:00
Stéphane Adjemian (Charybdis) f932fc8c78 Return the whole simulated paths instead of only the contemporaneous reaction of the endogenous variables.
Otherwise we can not test the number of periods and we cannot use the previous solution
to initialize the following (stochastic) perfect foresight problem.
2012-03-08 12:49:04 +01:00