Commit Graph

22 Commits (0011678cb5e7ed5f7a72507f11ee5884fd1db4c8)

Author SHA1 Message Date
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
stepan ec4b45cc7c Bug correction (condition info==19 was not used in DsgeLikelihood and DsgeVarLikelihood).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2667 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-12 11:38:06 +00:00
stepan aa31417a05 Efficiency & Cosmetic changes related to the design of bayestopt_ and
the computation of the prior density.

bayestopt_.p1 is always the prior mean
bayestopt_.p2 is always the prior standard deviation
bayestopt_.p3 is unchanged
bayestopt_.p4 is unchanged
bayestopt_.p5 [new field] is the prior mode
bayestopt_.p6 [new field] is the first hyper-parameter of the prior density
bayestopt_.p7 [new field] is the second hyper-parameter of the prior density
 
These fields are defined in  set_prior and are never changed after. In
the previous version of Dynare,  the hyper parameters of the densities
were  updated at  each iteration  of the  optimization routine  or the
metropolis.

Removed fields pmean and pstdev.

Vectorized the code in priordens.

Fixed the bug mentionned by Gianni. If a (logged) density is evaluated
outside the  prior domain, the  output of priordens if  minus infinity
(instead of a complex number).


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2556 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-06 14:38:37 +00:00
stepan ba080ab910 v4.1:: Changes related to lyapunov_symm.
+ Fixed a bug introduced in the previous commit.
+ Added a threshold parameter for the complex blocks in the upper
triangular matrix T in lyapunov_symm.m (new field in options_)
+ Cosmetic changes.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2414 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-12 14:16:10 +00:00
sebastien 9f5beff89e v4 matlab: fixed remaining copyright headers (those files which are in the CR+LF endline convention)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1975 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 13:08:13 +00:00
adjemian 7f927eff00 Changed penalties.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1934 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-07 12:31:51 +00:00
adjemian 341adad2e9 Added new functions for posterior distribution processing (second order moments) + Removed global variables.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1890 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-21 08:33:31 +00:00
adjemian be833e1e03 Bug correction.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1746 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-27 09:19:38 +00:00
adjemian 2aaf214c09 Correction of bug in the definition of the dsge-var prior.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1744 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-18 10:28:53 +00:00
adjemian ea1f4abaed Added a function returning the prior and posterior densities of a dsge-var model, given the deep parameters and the dsge_prior_weight parameter.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1740 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-10 16:08:02 +00:00
assia a7cb948e69 header updated
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1728 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-03-03 10:26:09 +00:00
adjemian 3eea736e30 Corrected bug related to the constant in bvar-dsge.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1484 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-12-07 16:31:15 +00:00
adjemian c14493361b Added estimation of bvar-dsge models with constant.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1441 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-14 17:42:18 +00:00
adjemian 0480677d66 Bug correction.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1408 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-03 15:44:06 +00:00
adjemian d9f56bfde9 Add the possibility to estimate a BVAR-DSGE with a dsge prior weight equal to infinity (the user just have to calibrate dsge_prior_weight to Inf).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1407 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-03 14:40:43 +00:00
adjemian a1c0424585 Correction of a bug related to the penalty on dsge_prior_weight.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1378 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-26 08:50:38 +00:00
adjemian 9549b0dd42 Correction of a bug related to info.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1377 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-26 08:21:54 +00:00
adjemian ac15bfa388 Added a penalty in DsgeVarLikelihood if SIGMAu (the covariance matrix of the BVAR) is not positive definite. New function to test if a matrix is pd.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1376 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-25 13:25:38 +00:00
adjemian 6d6174d6ae Added a penalty when the bvar-dsge prior is not proper (too small values of dsge_prior_weight).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1343 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-06 14:43:00 +00:00
adjemian 44093cbbb9 BVAR-DSGE with constant (not yet ready)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1167 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-26 14:50:30 +00:00
adjemian 4dc01acbd6 correction of a bug related to BVAR-DSGE models.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@930 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-09-22 15:58:43 +00:00
adjemian 9e266024f8 Added : No constant for estimation of nonlinearly specified models with detrended data, BVAR-DSGE (not ready).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@911 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-09-13 12:39:23 +00:00