Commit Graph

401 Commits (a6cd92f5745a7f5fb8c427aa21cc96302641b608)

Author SHA1 Message Date
michel f60bb42588 v4 parser: corrected bug for normcdf in DynareBison.yy
begin implementation of homotopy (not finished)


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1461 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-26 16:31:48 +00:00
ferhat d884d8a397 New features:
- Implementation of the simulation of the block decomposed model using sparse matrix using MATLAB code: 
  New option in model : sparse
  Example:
  Model(SPARSE);
  ….
  End;
- Implementation of the simulation of the block decomposed model using sparse matrix for static model. 
- Krylov methods are implemented to solve the linear model J.y=b, with J the Jacobian matrix at each step of  the Newton Method. Two Krylov's solvers are considered : 
   + Generalized Minimum Residual Method (GMRES) 
   + BiConjugate Gradients Stabilized (BICGSTAB)
  To call them the SIMULATE command has to be completed with a new option : METHOD which could have three   different values : 
   + LU : (default value)  Sparse LU resolution
   + GMRES 
   + BICGSTAB
	 	Example:
 			simul(periods=100, method=lu);
                        or        simul(method=Gmres);
- Correction of various bugs in “simulate.dll”.
- Correction of simk.m
- Correction allowing a list of VALUES or PERIODS not necessarily separated by a comma. 

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1447 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-20 23:24:01 +00:00
michel 7f2ea748b3 v4: updated dynare_m.exe
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1446 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-19 10:43:11 +00:00
adjemian 1795e5d6f6 Moved AkronBC.cc
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1445 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-16 12:59:55 +00:00
adjemian d9db719b7b Added mex file to compute A*kron(B,B) or A*kron(B,C).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1443 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-15 14:58:56 +00:00
michel 8204b9abd6 v4 global_initialization.m: added default for options_.dsample = 0
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1442 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-15 13:00:35 +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
michel a82c653ab2 v4 matlab: removed empty () for compatibility with older version of Matlab
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1439 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-09 10:22:08 +00:00
adjemian 3ca2614711 Bug correction and headers.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1438 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-11-08 17:23:53 +00:00
michel 2f904524dc v4: added gensylv75 for compatibility with Matlab 2007b
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1436 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-31 14:53:38 +00:00
michel 7152bfb6e5 call gensylv75() for Matlab release 2007b
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1435 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-31 14:52:11 +00:00
adjemian 2e41644573 git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1434 ac1d8469-bf42-47a9-8791-bf33cf982152 2007-10-19 20:28:48 +00:00
adjemian 14e1a06d06 Bug correction (Second order solution for big models).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1432 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-17 14:55:17 +00:00
adjemian f5f4ecea26 Bug correction (Second order solution for big models)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1431 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-17 13:58:59 +00:00
adjemian 020035a81b Add posterior variance decomposition.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1426 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-12 17:02:04 +00:00
adjemian 130a947a7e Bug correction.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1423 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-10 16:11:55 +00:00
adjemian 3d4ae90e22 Code factorization.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1422 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-10 13:20:09 +00:00
adjemian aa9b217788 Set options_.replic equal to one if the model is linear or if a first order approximation is used. The default value was (for second order *and* first order approximations) 50, and this bug was dramatically slowing down the stochastic simulations (when we simulate time series with thousands of periods).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1416 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-04 15:36:00 +00:00
michel 396a3306cc update of dynare_m.exe
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1415 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-04 12:49:43 +00:00
michel 221e230e21 update of dynare_m.exe
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1414 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-04 12:47:12 +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
michel e62027a296 v4 initial_estimation_checks: added a check for *_steadystate.m accuracy
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1403 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-01 11:53:28 +00:00
michel 7a87a7b200 v4: corrected bug in handling of trend_coeff
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1402 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-10-01 09:39:32 +00:00
michel 23277f1f87 v4 steady_: corrected bug when checking values returned by *_steadystate.m
Triggers an error when *_steadystate.m returns wrong values


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1401 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-29 08:20:06 +00:00
sebastien b619eef664 v4 rand_matrix_normal.m: inverted order of last two arguments for more consistency with matrix-normal notation
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1400 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-28 13:43:21 +00:00
michel f3375020fc v4: bug in handling of options_.trend_coeffs
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1399 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-27 15:35:40 +00:00
adjemian 4a0aeb12de Factorization of rand_inverse_wishart(...) and rand_matrix_normal(...) + Some small changes to (marginally) speed up the thing (loop --> matrix calculus in rand_inverse_wishart(...), ... ).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1398 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-25 16:25:25 +00:00
adjemian 0c3d36eb11 Bug correction
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1397 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-25 13:10:50 +00:00
sebastien 3bc0201f59 v4 bvar_toolbox.m: fixed bug and documentation
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1395 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-25 11:48:20 +00:00
adjemian 07965db080 Estimation of the posterior theoretical 2nd order moments. Results are saved in oo_. This function can be called directly from the *.mod file by the user (no input argument needed).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1393 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-21 22:54:23 +00:00
adjemian 7b7339cad4 Other cosmetic changes...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1392 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-21 16:50:36 +00:00
adjemian a53e4db7ab Correction of a bug in the estimation of smoothed variables (occasionaly systematic error in the level).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1391 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-21 16:22:16 +00:00
adjemian 6ea51663a6 Enable estimation of bvar models without constant, prefiltering and log transformation of the dataset.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1390 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-21 16:15:49 +00:00
adjemian 01f5e9aa1f Just some cosmetic changes!
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1389 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-21 12:34:30 +00:00
adjemian 1224cec429 Explosive VARs (the companion matrix has eigenvalues outside the unit circle) are discarded from the posterior distribution (by default).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1388 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-09-21 12:17:56 +00:00
gary c96ce67a80 test of commit
added blank line at line 3


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1382 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-08-30 13:33:54 +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
sebastien 185ebc09bd v4 bvar_toolbox.m: fixed bug in Sims' code related to omega (prior option)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1373 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-17 14:00:22 +00:00
sebastien b241abc87e v4 bvar_*: minor changes in comments
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1372 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-17 13:43:44 +00:00
adjemian daef6d60b6 Correction of a bug related to BVAR-DSGE. After the estimation of the DSGE posterior mode, dynare was computing the hessian matrix associated to the BVAR-DSGE...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1369 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-13 14:55:21 +00:00
adjemian 01e7407d76 Correction of a bug with mh_recover.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1344 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-06 14:50:09 +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 269329cac2 Corrections for bvar-dsge estimation and irfs.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1341 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-06 08:43:25 +00:00
sebastien 2074327cd9 v4 bvar_forecast.m: no more use 'lower' option of chol(), to ensure compatibility with older Matlab versions
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1340 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-05 12:49:26 +00:00
sebastien 52ee61764a v4 bvar_forecast.m: fixed bug in RMSE computation
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1339 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-05 12:37:57 +00:00
adjemian 254a2df272 Correction of a bug in bvar-dsge estimation.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1338 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-05 12:32:28 +00:00
michel d75d2a459b v4 stoch_simul.m: added storage of IRFs in oo_.irfs
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1337 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-07-05 04:34:24 +00:00