Commit Graph

6063 Commits (7341ca4e6df71dde7604fc0379af1d28defcdd00)

Author SHA1 Message Date
Johannes Pfeifer 56edaf5cb0 Fix check for existence of dname variable 2017-03-07 13:55:29 +01:00
Stéphane Adjemian (Charybdis) 927b813ed8 Removed printing of debugging info.
Introduced in ffebf6b262.
2017-02-15 13:35:33 +01:00
Stéphane Adjemian (Charybdis) ffebf6b262 Check positive steady state for loglinear option...
1e-9 is too far from zero. Set 1e-16 as a threshold value for the positivity test.
2017-02-15 12:41:56 +01:00
Stéphane Adjemian (Charybdis) 9fbef0c107 Removed penalty_hessian routine.
+ Code factorization.
 + Added an option for using the penalized objective when computing numerically
 the hessian at the mode.

Previous behaviour (introduced with penalty_hessian routine) was to compute the
hessian matrix at the mode with the penalized objective function (instead of
the original objective function). This behaviour hides problematic situations,
where the computed hessian (using the original objective) would not be full
rank. For instance, if the estimation ends up with a parameter on (or very
close to) the bounds of its possible values (which is often not a desirable
outcome), the estimated posterior variance would be zero for this
parameter (with the original objective) because the hessian is not finite in
this direction, while the posterior variance would be positive if the penalized
objective is used instead. But this estimate would not be reliable by
construction of the penalty which is quite ad-hoc (more fundamentally I do not
think that there exists any rational for approximating the covariance matrix
with the inverse of the hessian matrix if the mode is on the border of the set
of possible values).

This commit restore the behaviour previous to 2446ab02ba.

An option is available for computing the hessian with the penalized
objective function.
2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 5b73d7d59c Added new optimization routine (particleswarm).
Only available under Matlab if the Global Optimization Toolbox is installed.
2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 35078e13ee Completed header + cosmetic changes. 2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 8d4abe4a9f Cosmetic changes. 2017-02-08 13:07:24 +00:00
Stéphane Adjemian (Charybdis) e71e89bb38 Added check on Octave version. 2017-02-08 13:07:24 +00:00
Stéphane Adjemian (Charybdis) 62c954ff12 Fixes #1287. 2017-01-25 22:13:36 +01:00
Stéphane Adjemian (Charybdis) 0b1b873160 Updated dseries submodule.
Fixes remaining Octave failing unit tests.
2017-01-25 09:18:28 +01:00
Johannes Pfeifer 875497bc71 Unit test lpdfgweibull.m: adjust upper integration bound under Octave
Does not correctly integrate otherwise as more than 99% of support is 0
2017-01-18 11:01:13 +01:00
Johannes Pfeifer ce4ab7f7d8 Unit test wblinv.m under Octave: adjust tolerance 2017-01-18 10:59:53 +01:00
Houtan Bastani 12b8a915e9 submodule update: reporting 2017-01-09 16:20:15 +01:00
Stéphane Adjemian ba9af24a67 Merge pull request #1370 from JohannesPfeifer/updated_variables
Output UpdatedVariables in oo_ without filtered_variables
2017-01-05 11:50:06 +01:00
Stéphane Adjemian 4dfec0d7fb Merge pull request #1369 from JohannesPfeifer/disp_dr_aux_var
disp_dr: Add case for aux_vars.type==0
2017-01-05 10:44:44 +01:00
Stéphane Adjemian 77a93d6ff9 Merge pull request #1362 from JohannesPfeifer/MCMC_jumping_covariance
Moving loading of MCMC_jumping_covariance to after display of standar…
2017-01-05 09:02:59 +01:00
Stéphane Adjemian b464226eaa Merge pull request #1358 from JohannesPfeifer/nograph
Implement posterior_nograph option
2017-01-05 06:52:08 +01:00
Stéphane Adjemian 90982d5fa0 Merge pull request #1357 from rattoma/parallel
Provisions for new node option NumberOfThreadsPerJob. Document option
2017-01-04 23:29:24 +01:00
Stéphane Adjemian (Lupi) c893c0620c Merge branch 'pr#1354' 2017-01-04 15:12:32 +01:00
Johannes Pfeifer 2c5b1fed2d Use master function lyapunov_solver.m to call individual solvers 2017-01-04 11:25:44 +01:00
Stéphane Adjemian b946d3c082 Merge pull request #1353 from JohannesPfeifer/Plot_posterior
PlotPosteriorDistributions.m: remove eval commands and fix typo in "m…
2017-01-04 11:20:06 +01:00
Johannes Pfeifer e815c2b4db Output UpdatedVariables in oo_ without filtered_variables
Makes it consistent with manual and closes #1366
2017-01-04 10:57:00 +01:00
Stéphane Adjemian (Karaba) 515e080f49 Do not compute static residuals if steady state routine failed.
Avoids cryptic model dependent error message.
2017-01-04 10:26:22 +01:00
Johannes Pfeifer 65c402469c disp_dr: Add case for aux_vars.type==0
Closes #1367
2017-01-04 09:14:01 +01:00
Marco Ratto 3c892170ef Fixed bug with getting CPU number on mac [see #1272 #838] 2017-01-03 19:24:18 +01:00
Marco Ratto ee7611c8ad added note to commented text, as an alternate option, should bugs/problems be reported with line 60 2017-01-03 19:15:53 +01:00
Johannes Pfeifer 7b4fc9ec4a Moving loading of MCMC_jumping_covariance to after display of standard errors and computation of Laplace approximation
Closes #1255
2016-12-27 12:07:22 +01:00
Johannes Pfeifer d8b0495c77 Make PosteriorIRF.m and pm3.m honor nograph and posterior_nograph option 2016-12-26 13:11:01 +01:00
Johannes Pfeifer 452d3cd986 Implement preprocessor interface for posterior_nograph option 2016-12-26 13:07:46 +01:00
Johannes Pfeifer 28d4ed1918 Finish implementation and documentation of nograph option of shock_decomposition.m 2016-12-26 12:52:28 +01:00
Marco Ratto 4ecf1d9f5d Workaround to avoid popup figures with nodisplay option saved as fig in MATLAB. 2016-12-20 09:14:48 +01:00
Marco Ratto a55cbdd5fe Provisions for new node option NumberOfThreadsPerJob. Document option 2016-12-19 23:28:46 +01:00
Johannes Pfeifer 352786c2b4 load_mh_file: recompute results by default and load on request
Prevents general overwriting of results in oo_ and having stale results
2016-12-19 19:37:34 +01:00
Johannes Pfeifer 5707b4d965 Make evaluate_smoother.m output former global variables for correct updating of these objects 2016-12-18 12:43:29 +01:00
Johannes Pfeifer 61ee4e123c Reset selected_variables_only in shock_decomposition.m
closes #1350
2016-12-18 09:57:51 +01:00
Johannes Pfeifer 2f717b5adc Eliminate global variables from shock_decomposition.m 2016-12-18 09:57:51 +01:00
Johannes Pfeifer 33d0f44c40 model_diagnostics.m: provide warning that check of dynamic model is not supported for block option instead of crashing 2016-12-17 21:28:04 +01:00
Johannes Pfeifer 1a8382adfb OSR: add error indicator and suppress output if noprint options is specified 2016-12-17 19:30:57 +01:00
Johannes Pfeifer 7254767ccf Fix bug in osr_obj.m that did not correctly filter out all problems 2016-12-17 19:30:57 +01:00
Johannes Pfeifer 481bb43fd7 PlotPosteriorDistributions.m: remove eval commands and fix typo in "mearsurement_errors" 2016-12-17 18:20:58 +01:00
Johannes Pfeifer 5515da191a Add Raftery/Lewis (1992) convergence diagnostics 2016-12-17 17:22:05 +01:00
Johannes Pfeifer c03fa143f7 Fix printout of comment in McMCDiagnostics.m 2016-12-17 17:22:05 +01:00
Johannes Pfeifer d6d517c4c9 Move MCMC diagnostics files to separated folder 2016-12-17 17:22:04 +01:00
Michel Juillard 6fd715a3b8 adding simul_backward and simul_backward_linear 2016-12-05 16:17:14 +01:00
Houtan Bastani c2d72d2292 fix check of path for octave 2016-12-05 12:28:02 +01:00
Johannes Pfeifer f5fb81a758 Correct typos in error message and header 2016-12-01 17:49:06 +01:00
Stéphane Adjemian (Charybdis) 95076d5c72 Fixed initial condition of stochastic simulation of backward looking models.
Do not initialize with the steady state. Use histval if available,
default initialization is 0 (which may be problematic).
2016-12-01 13:32:54 +01:00
Johannes Pfeifer ca1c6ecc0e Increase test tolerance under Octave for lpdfgweibull.m 2016-11-24 11:50:21 +01:00
Michel Juillard 42acb96b3d renamed compute schur_statespace_transformation.m
refactored code
2016-11-22 18:40:10 +01:00
Michel Juillard 73e0f9d591 made evaluate_steady_state file consistent with evaluation of auxiliary
variables in <fname>_static.m file
2016-11-20 15:40:08 +01:00