Commit Graph

744 Commits (f76badf151bfee46aeacc7a5abc5752e850cdf5e)

Author SHA1 Message Date
sebastien f76badf151 v4 matlab: rreplaced beta_rnd.m and gamm_rnd. by GPL'ed custom ones
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1980 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-05 09:07:02 +00:00
sebastien 8bef1f0399 v4 matlab:
* replaced dnorm, pnorm and qnorm by GPL alternatives in distributions/
* only add distributions/ to the path if under Matlab without Statistics toolbox


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1979 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-04 13:33:57 +00:00
sebastien 4bd6b02ec9 v4 matlab/sec2hms.m: replaced it by a custom version
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1978 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-02 12:54:36 +00:00
sebastien 47a4d91700 v4 matlab:
* fixed copyright headers of remaining files
* deleted old ChangeLog


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1977 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 18:53:30 +00:00
sebastien dbe05bd9c8 v4 matlab: added copyright notice to C. Sims' files
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1976 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 13:28:14 +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
sebastien db50368418 v4 matlab: fixed some existing copyright headers (and some other minor header issues)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1974 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-01 12:40:33 +00:00
george 3bf9d8d487 Corrected and commented out the penalty power on info(2) because penalty power is already raised in DR1.m and resol respectively.
GP July'08

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1968 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-28 10:15:27 +00:00
george 827261166c Added use of G Anderson AIM - see Readme.txt in the new AIM subdirectory.
DR1 tries to invoke AIM if options_.useAIM == 1 is set.
for start, options_.useAIM = 0 is set by default in global_initialization.m so that system uses mjdgges by default. 
If AIM is to be used, options_.useAIM = 1 needs to be set either in the model <>.mod file, before invoking, estimate and/or stoch_simul, or by issuing appropriate command for estimate and/or stoch_simul. 

However, if other exceptions occur and aimcode is higher than 5, the system resets options_.useAIM = 0 tries to use mjdgges instead.

GP July '08

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1967 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-28 09:53:36 +00:00
george bee92a9714 The path to the AIM directory is added by dynare_config.m
for start, options_.useAIM = 0 is set by default in global_initialization.m so that system uses mjdgges by default. 

If AIM is to be used, options_.useAIM = 1 needs to be set either in the model <>.mod file, before invoking, estimate and/or stoch_simul, or by issuing appropriate command for estimate and/or stoch_simul. 
GP July '08

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1966 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-28 09:46:07 +00:00
george 8225da0e7e git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1965 ac1d8469-bf42-47a9-8791-bf33cf982152 2008-07-28 09:42:22 +00:00
michel c9cf49e30b options_.nk default is now set to 1
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1963 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-26 14:15:21 +00:00
adjemian 6b0ba30fb9 Bug correction.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1962 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-25 08:26:20 +00:00
michel 6ff7605f58 added missing semicolon
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1960 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-21 20:20:53 +00:00
michel f78c7f3400 corrected bug in returned argument sequence
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1959 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-21 13:51:43 +00:00
michel 994af45929 made it possible to force the univariate filter in estimation, mostly for testing purpose
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1958 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-18 23:02:53 +00:00
sebastien 308166f1f5 v4 matlab/doc: removed obsolete directory
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1953 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-11 14:13:28 +00:00
sebastien 491e5aabd0 v4 lyapunov_symm.m: fixed bug (one cannont change the counter of a 'for' loop from inside the loop)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1950 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-10 13:22:50 +00:00
adjemian eeb0bee292 Initialization of the deterministic simulation is made optional. Added an option for homotopic solution to deterministic models (not ready).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1944 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-09 08:47:38 +00:00
sebastien d9ffbb3e79 v4 dynare.m: cosmetic changes
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1942 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-08 15:52:55 +00:00
sebastien 57f4d42a5b v4:
* added a warning when Matlab < 6.5 or Octave < 3.0.0
* created octave_ver_less_than.m


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1941 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-08 15:45:10 +00:00
adjemian b99a83d1be Moved use_qzdiv in options_ (defined in global_initialization.m), so that we do not have to test the mjdgges file and define use_qzdiv each time dr1.m is called.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1940 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-08 14:29:11 +00:00
adjemian 20fb13f7c2 * Added five points formula for gradient evaluation.
* Cosmetic changes in numgrad3.m

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1939 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-08 08:18:54 +00:00
sebastien e8d6dd1ef3 v4 matlab: use my_ordeig instead of ordeig for Octave and for Matlab < 7.0.1
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1938 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-07 21:48:12 +00:00
sebastien 2d4d93df13 v4 my_ordeig.m: fixed bug with 2x2 blocks: the second complex eigenvalue was not the conjugate of the first! (bug caused by manual incrementation of the index of a for loop; a while loop solves the issue)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1937 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-07 21:38:43 +00:00
sebastien ddaaf9e1e3 v4 matlab:
* added a function matlab_ver_less_than() for testing Matlab version
* updated dynare_config.m and build_matlab.m accordingly
* removed tests to check whether we are older than Matlab 6.5 (R13), since we don't support those old versions anymore
* removed a few unnecessary uses of eval()


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1936 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-07 17:08:55 +00:00
adjemian 27886047cf * Changed numgrad.m. If fcn(x+h) is not well defined (for instance cost_flag=0 because of BK conditions) we compute the gradient using (fcn(x)-fcn(x-h))/h instead of the original formula (fcn(x+h)-fcn(x))/h.
* Added function numgrad3.m. This new function uses a three point formula to compute the gradient. By default Dynare uses the two point formula. By setting options_.gradient_method=3 Dynare switches to the three point formula. Note that an input argument has been added to csminwel.
* Added automatic detection of needed constant in dsge-var model (may be problematic is some cases)

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1935 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-07 12:58: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
sebastien de66e31008 v4 qbeta.m: quick fix for Octave
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1932 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-04 13:37:01 +00:00
sebastien 4993de5e95 v4 read_variables.m: more explicit error message if datafile does not exist
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1931 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-04 13:27:21 +00:00
sebastien 6fa483bd3f v4 prior_posterior_statistics.m: Octave compatibility issues:
* added missing .mat extensions
* use text waiting bar instead of waitbar()


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1930 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-04 13:20:49 +00:00
adjemian 3ac7bab6f0 Replaced | by || in conditional statements.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1929 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-04 12:50:08 +00:00
adjemian 6827fc7c28 Replaced & by && (compatibility with octave issue).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1928 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-04 12:41:01 +00:00
adjemian 4553ceca01 Bug correction (MAX_error replaced by MAX_nerro, for models with measurement errors).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1927 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-04 12:21:52 +00:00
sebastien e9be36f6ad v4 octave: fixed a problem with infinite eigenvalues in dr1.m
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1926 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-04 09:57:01 +00:00
michel b1c4c4537b added missing ';'
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1925 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-03 11:23:32 +00:00
michel fe54c7ca07 adding functions and fixing bugs for diffuse filter
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1924 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 12:53:24 +00:00
michel 5ba344d75c bug correction
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1923 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 11:49:19 +00:00
michel 2c8a9d2f60 cleaning diffuse algorithms
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1922 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 11:48:14 +00:00
michel bfe76b3c4b updating dynare_m.exe
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1921 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 11:46:51 +00:00
michel f91d9dbf7c adding back DsgeLikelihood_hh.m
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1920 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 11:39:58 +00:00
michel a148c0a3f1 undoing changes
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1919 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 11:38:44 +00:00
michel 36f264a1ca put back DsgeLikelihood_hh.m that is used by option 5 of the optimizer
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1918 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 11:15:19 +00:00
michel 9074fdba91 updating dynare_m.exe
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1917 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 09:34:22 +00:00
michel 333915e07a removing unused function DsgeLikelihood_hh.m
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1915 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 08:17:12 +00:00
michel d0b87d6c32 corrections to optimal policy code required by making M_, options_, oo_ and it_ local
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1914 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 07:42:50 +00:00
sebastien cc66aebdb8 v4 pm3.m: disabled PDF and FIG output for Octave
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1912 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-01 11:17:00 +00:00
adjemian c86ba80007 Added posterior multivariate auto-correlation analysis
+ Changed load instruction in selec_posterior_draws for octave compatibility.

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1911 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-01 11:03:23 +00:00
adjemian adb5f730f5 Bug correction.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1910 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-01 09:37:52 +00:00
adjemian b8736dc337 Changed \Plots\ to /Output/
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1909 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-01 09:36:58 +00:00