Commit Graph

54 Commits (master)

Author SHA1 Message Date
Johannes Pfeifer cbf57b1af6
set_state_space.m: remove unused options_ input argument 2023-10-11 09:30:45 -04:00
Johannes Pfeifer 328f6f3229
check.m and model_diagnostics.m: use consistent global naming 2023-10-11 09:26:05 -04:00
Johannes Pfeifer 8da98057b9
Have computation of decision rules and smoother only input and output required arguments instead of full oo_ and M_ 2023-09-25 17:17:34 +02:00
Sébastien Villemot 8f1a4cb363
Drop block-decomposed first-order perturbation solution and kalman filter 2023-01-13 16:57:49 +01:00
Sébastien Villemot 10af04c6d8
Use Unicode copyright symbol (in UTF-8 encoding) in all source files
It is now supported by the MATLAB editor (as of R2022a).

The old ASCII notation is left in some files that we copy as-is from other
sources (e.g. in the contrib/ and m4/ subdirectories).

The particles submodule is not updated at this point, because it is in an
inconsistent state.

[skip ci]
2022-04-13 14:54:25 +02:00
Johannes Pfeifer f7a232061a
Remove unused options_-output
Prevents accidentally changing something
2021-06-22 18:17:11 +02:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Sébastien Villemot 89a3e94cbf
Use true/false instead of 1/0 for boolean options
This is more elegant, and makes it easier to distinguish them from integer
options.

Also simplify test expressions for these boolean options.
2019-03-19 15:21:16 +01:00
Houtan Bastani a68f3fc082
remove unused output from functions 2019-01-31 16:11:35 +01:00
Stéphane Adjemian(Charybdis) 3fe758c2b2 Cosmetic change in doc headers. 2018-05-05 21:58:52 +02:00
Stéphane Adjemian(Charybdis) 8f53be2a6f Impose the consistency of the count of unstable eigenvalues...
... Between stoch_simul and check. Added sdim (the number of stable
eigenvalues) and edim (the complementary number of explosive eigenvalues) in dr
structure. The test is always done with sdim (or edim) returned by mjdgges.
2018-05-05 19:53:13 +02:00
Stéphane Adjemian (Charybdis) a53636e24e Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Johannes Pfeifer e595626259 Make check.m display error messages
Fixes #619
2014-02-28 13:06:01 +01:00
Houtan Bastani ef777de3d5 fix typo fix 2013-12-08 11:40:10 +01:00
Houtan Bastani e765c16b73 fix typo 2013-12-08 10:47:39 +01:00
Stéphane Adjemian (Charybdis) 4052d4ccaf Cosmetic changes. Use skipline() instead of disp(' '). 2013-07-10 17:12:34 +02:00
Stéphane Adjemian (Charybdis) 8574dfd053 Adapted print_info routine. 2013-06-12 10:54:33 +02:00
Sébastien Villemot eed3651d6e check only returns eigenvalues, not the whole oo_ 2013-01-15 16:45:15 +01:00
Sébastien Villemot 14ed3d94a9 Ensure that running check without stoch_simul still sets oo_.dr.eigval
This is documented in the reference manual, but was not working.
The change consists in having check.m returning oo_ as 1st output argument, and
having the preprocessor generating the corresponding code.
2013-01-15 16:14:15 +01:00
Sébastien Villemot 9ec22085b0 Fix wrong count of forward looking vars in check with block option
Bug introduced in c121aa14b1
2012-12-11 18:10:01 +01:00
Sébastien Villemot c121aa14b1 Remove oo_.dr.{nstatic,npred,nboth,nfwrd,nspred,nsfwrd}
Replace them by equivalents in M_ (and an extra one: M_.dynamic).

IMPORTANT POINT: oo_.dr.npred used to count both purely backward and mixed/both
variables. This was the cause of lots of confusion. The new M_.npred only
counts purely backward variables.

We now have the following indentities:

M_.npred + M_.nboth + M_.nfwrd + M_.nstatic = M_.endo_nbr
M_.nspred = M_.npred + M_.nboth
M_.nsfwrd = M_.nfwrd + M_.nboth
M_.ndynamic = M_.npred + M_.nboth + M_.nfwrd
2012-11-16 20:05:13 +01:00
Michel Juillard a22d1d415a replaced rank() by rcond() in evaluating whether Z22 is full rank in
checking Blanchard and Kahn conditions with CHECK
2012-09-10 13:26:05 +02:00
Stéphane Adjemian (Charybdis) 1fb89a07e9 Removed global from set_state_space. 2012-07-03 11:29:18 +02:00
Michel Juillard 7c62fafe0c Merge branch 'master' into dr1break 2011-12-10 20:10:31 +01:00
Stéphane Adjemian (Scylla) d6268cf720 Fixed bugs.
(1) Wrong calling sequence for resol routine in check.m.
(2) Replaced steady_state_0 by oo.steady_state in resol.m.
2011-09-17 13:33:57 +02:00
Stéphane Adjemian (Scylla) d81fd1b55b Removed globals from check routine. Added texinfo header. 2011-09-17 12:53:38 +02:00
Ferhat Mihoubi 3459b08c53 - Corrects the first order approximation of block-decomposed models
- The block-decomposed models can now be estimated
2011-06-18 17:43:45 +02:00
Houtan Bastani 43479f6ef3 use short-circuit ops (|| and &&) as opposed to (| and &) to avoid warnings in Octave (and save time) 2011-02-10 15:54:23 +01:00
Sébastien Villemot 02652f6eb8 Updated copyright notices 2011-02-04 17:27:33 +01:00
Michel Juillard dcc46959b4 The default for options_.qz_criterium is now different for different contexts:
qz_criterium = 1+1e-6
- stoch_simul
- osr
- check
- dynare_estimation_1 with lik_init =2 or 3
qz_criterium = 1+1e-6 for dynare_estimation_1 with lik_init = 1

This correct a bug in estimation and computation of the posterior distribution of moments of endogenous variables when the priors permit roots too close to 1.
2010-12-23 08:34:13 +01:00
Ferhat Mihoubi 61a251535f Correction of bugs in check command with block decomposition and
Add the missing dr_block m-file
2010-11-25 16:10:46 +01:00
Ferhat Mihoubi 1aceb504fd Check command is now compatible with block and bytecode options 2010-10-27 15:34:48 +02:00
stepan c3aaa9b105 Added info vector as an output (needed to compute penalty for the smm objective function).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3308 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-06 14:06:41 +00:00
stepan 0520d44f8e Changed copyright date.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3307 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-06 13:56:02 +00:00
stepan 9dff2ba6cd * Added missing dummy output argument (result is equal to one if BK conditions are satisfied).
* Removed useless definition of options_.qz_criterium 

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3306 ac1d8469-bf42-47a9-8791-bf33cf982152
2010-01-06 13:53:47 +00:00
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
sebastien 71ba0d6433 Prevent use of "check" with "block" or "bytecode" option
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2889 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-03 10:11:36 +00:00
ferhat beade4bea1 References to model_mod option are ruled out of M-files
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2878 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 13:07:59 +00:00
stepan 5f8de6f142 + Added error messages related to the output of the steadystate file.
+ Removed options_ from print_info.m
+ Removed some useless initializations of options_'s fields.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2786 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-25 08:30:27 +00:00
ferhat 7c6ed357b6 Bugs correction in check command with sparse option in model command
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2196 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-24 16:35:06 +00:00
sebastien 2af294a5e6 trunk: removed remnants of dr_algo option
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2118 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-26 16:49:51 +00:00
sebastien 0c23ac2b06 v4 matlab:
* fixed various copyright headers
* added URL pointer to C. Sims' original files
* removed obsolete dgamma.m


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2018 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-02 15:18:05 +00:00
ferhat 6a3d20452b Minor corrections:
- Bug in check.m with model without sparse options
- Display in simulate.dll
- "Model_InfoStatement" renamed "Model_InfoStatement" in ComputingTasks

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2010 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-29 12:31:25 +00:00
ferhat 08688fd7f3 Check command compatible with sparse model
- New version of dr1.m (dr1_sparse.m & dr11_sparse.m) to handling sparse model (dr1_sparse and dr11_sparse could replace dr1.m)
- model_info command to describe the block structure of the model 
- transition_matrix.m modified to be compatible with sparse model



git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2006 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-28 13:18:09 +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
assia 1f29e89eea header updated
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1531 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-01-03 11:36:48 +00:00
michel 33baab148b v4 check.m: corrected bug when no exogenous variable and save results in oo_.dr
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1509 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-12-20 19:42:19 +00:00
michel ac07e14f02 v4 check.m: forcing options_.order = 1 correctly (correcting 1045)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1048 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-07 14:49:24 +00:00
michel 9b91c3532f v4 check.m: forces options_.check = 1
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1046 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-07 13:20:51 +00:00
adjemian 6eac49b1d7 Correction of bugs related to the _steadystate file.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@822 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-07-17 08:47:30 +00:00