Commit Graph

81 Commits (e6f1a53e6059afc5bc501768c34bac13903070e2)

Author SHA1 Message Date
sebastien cf77c3f245 * Fix USE_DLL option at order 2 (closes #64)
* Added a corresponding test


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3236 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-14 11:06:29 +00:00
sebastien ee3ceb7db6 M-files and preprocessor:
* removed "options_.simul", and instead test if "options_.periods" is non-zero
* test for the incompatibility of options "periods" and "hp_filter" in "stoch_simul.m", instead of in the preprocessor
Reference manual:
* removed "simul" options, updated "periods"
* updated "order" option (for 3rd order)
* added "k_order_solver" option
* give some hints for installing a compiler for users of MATLAB for Windows


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3188 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-01 17:51:47 +00:00
sebastien 59ca45e4f4 Removed last remnants of "ct_" global variable
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3187 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-01 16:30:56 +00:00
michel 48dad3e37a 4.1: add preprocessor interface for k_order_solver
rename use_k_order to k_order_solver in Matlab procedures
     fix tests


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3179 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-30 19:54:45 +00:00
stepan 9a23cee31c * Changed name of ct_ --> options_.terminal_condition. The default value is zero
(the terminal condition is y_{T} = y^{\star}), other possible values
  are  1  (terminal  condition   is  y_{T+1}=y_{T})  and  2  (terminal
  condition is  y_{T+1}=TransitionMatrix*y_{T}, where TransitionMatrix
  is given by the first order approximation of the reduced form model).
* Added mode options_.terminal_condition=2 in perfect_foresight_simulation.m.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@3176 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-30 16:24:57 +00:00
sebastien ffd9b2d405 preprocessor: clean-up workaround for acosh(), asinh(), atanh() on Win 64 platforms
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3101 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-29 17:16:10 +00:00
stepan ee74f38b11 Removed (or moved) initialization of options_'s fields from simul.m.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3079 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-23 12:52:16 +00:00
sebastien df7bc34379 Added a new option "partial_information" to stoch_simul, estimation, osr, ramsey_policy
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3063 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 16:55:31 +00:00
sebastien aa6ff983a9 AIM solver:
* added interface in the MOD file, with a new option "aim_solver" to stoch_simul and estimation
* documented the option in the reference manual


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3059 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 15:44:56 +00:00
ferhat e1f17fa9e5 - adds a new option in simul command when block and bytecode options are used : minimal_solving_periods. With bytecode option, the linear solver is applied only on the first periods. As soon as the set of operations remains the same from one period to another, they are repeated for the remaining periods. In some cases the linear solver could encounter exact or near singularities. To avoid these effects, this new option allows the user to extend the minimal number of periods where the model has to be solved.
- corrects some mod files.
- In steady command, get check argument from bytecode dll

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3051 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-18 15:18:16 +00:00
sebastien 579b5f509e Cleanup "cutoff" and "mfs" options (the former is no longer in options_)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2888 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-03 10:10:06 +00:00
sebastien 74232e9ee5 * Added new option stack_solve_algo to simul
* Added solve_algo=5 for steady
* Remove obsolete method option of simul
* Added various checks to avoid unimplemented combinations of bytecode/block/solve_algo/stack_solve_algo


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2882 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 16:34:48 +00:00
ferhat 9f45200924 simulate.dll has been replaced by bytecode.dll
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2881 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 14:40:54 +00:00
sebastien a56de57637 Various cleanups related to new options "bytecode" and "block"
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2879 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-02 13:36:56 +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
michel 3eb02c720d updating SWZ sbvar code
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2876 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-30 19:28:10 +00:00
ferhat ed6cda0ca1 New options for block decomposition and bytecode (see http://www.dynare.org/DynareWiki/ByteCode):
- the options "sparse_dll" and "sparse" are no more available. They are replaced by combinations of block (for block decomposition) and bytecode (for model stored in a binary file)
- markowitz is now an option of simul and steady commands


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2873 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-29 15:04:11 +00:00
ferhat d32dd99210 - extension of normalization of equations to nonlinear equations
- mfs: new option for 'steady' and 'model' commands. Determines the equation belonging to the set of feedback variables.
  mfs = 0 => all variables are considered as feedback variables (default value)
  mfs = 1 => using only naturally normalized equation as potential recursive equations (all variables assigned to unnormalized equations are considered as feedback variable)
  mfs = 2 => adding to the set of potential recursive equation with mfs = 1 the linear equation in endogenous variable normalized (all variables assigned to nonlinear unnormalized equations are considered as feedback variable)
  mfs = 3 => adding to the set of potential recursive equation with mfs = 2 the non linear equation in endogenous variable normalized
- correction of few buggs in simulate.dll
- block_mfs_dll: new option for 'steady' command. Use simulate.dll to solve the steady state model (speedup the computation of the steady-state and the homotopy)

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2866 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-08-25 09:43:01 +00:00
sebastien e8700bc046 Implemented MATLAB part of the block_mfs option to steady.
(Still need to fix a bug)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2829 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 16:35:07 +00:00
stepan a089e59f3c dynare/trunk::
+ Added a  new option for likinit=2 used to define  the numbers on the
initial diagonal Pstar matrix.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2828 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 15:41:11 +00:00
michel 05189497a5 changed handling of nonstationary variables:
- oo_.mean, oo_.var, oo_.gamma_y contains all selected variables
- moments of non-stationary variables are set to NaN
options_.Schur_vec_tolerance lowered to 10^-11


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2810 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-04 14:11:51 +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
ratto d10423ec19 Added mode_check_nolik option, with default = 0
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2772 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-19 08:44:08 +00:00
stepan f039875f60 + Various bug fixes related to prior sampling.
+ Removed globals in set_stationary_variables_list.m.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2771 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-15 14:36:30 +00:00
stepan 271b16a879 + Moved the definition of dr_.qz_criterium from dr1.m to global_initialization.m.
+ dr1.m: Removed useless field declarations in dr1.m.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2748 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-09 15:06:21 +00:00
stepan dedca98dba Added Posterior distribution of the conditional variance
decomposition (more tests are needed). 

The results are saved in oo_.PosteriorTheoreticalMoments.dsge.ConditionalVarianceDecomposition. 

Contrary to the asymptotic variance decomposition, we do not report
contribution shares but contribution levels of each structural shock.

LIMITATIONS: 
* Won't work in a model with measurement errors.
* Won't work in a model with correlated shocks.
* The routines do not compute the covariance decompositions.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2719 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-03 14:50:02 +00:00
ratto 41f59bfb51 Initialize parallel structure at 0.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2665 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-08 15:23:51 +00:00
michel 1b7df60410 4.1: initializing M_.params = [] for the case where there are no parameters declared in the model
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2656 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-04 19:31:48 +00:00
george 7ac5750ac4 added options_.use_k_order=1
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2447 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-03-03 12:00:46 +00:00
stepan 0bb00c71eb v4.1::
+ Added new file for prior sampling (prior_sample.m). 
+ Undo previous change on prior_draw.m (transposition of pdraw).
+ Bug correction in prior_draw.m.
+ Added field in options_: the default number of mc simulations in the
prior distribution.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2431 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-19 16:27:04 +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
michel 47c51d42cc added option to compute covariance matrix of coefficient (default = 1)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2405 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-08 09:23:31 +00:00
michel 5f148e90f4 adding PLOT_PRIORS option, no plotting is the new default
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2391 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-02-03 14:10:16 +00:00
sebastien 6017007f4f trunk: fixed dsample command (was broken until now)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2301 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-12-08 16:19:59 +00:00
sebastien 2134146033 trunk:
* removed obsolete global variables "endval_" and "rplottype_"
* removed duplicate initialization of options_.replic


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2295 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-12-05 15:34:26 +00:00
adjemian f58cdcf676 v4.1: Files related to kalman filter (likelihood evaluation of a state space model with or without missing observations).
* Added a new tolerance parameter specific to the iteration on the riccati equation.
 * Added a kalman filter routine allowing for missing observations.
 * I do not distinguish anymore models with and without measurement errors (the same m file is used for both models to evaluate the likelihood). For a model without measurement errors H hat to be set to 0 scalar.

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2148 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-10-13 18:54:42 +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
adjemian b4c04a27cc Added autocorrelogram for the posterior draws.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2017 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-02 10:16:44 +00:00
adjemian b5f0fa26ee Changed default value for options_.trace_plot_ma
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2015 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-02 09:09:36 +00:00
adjemian fb3899018e + Added trace plots.
+ Correction of a bug related to ferhat's recent commits (options_.model_mode has to be declared somewhere).

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2013 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-09-01 11:44:26 +00:00
adjemian a9be2e5f13 Added Independent Metropolis Hastings and multivariate student as an alternative to multivariate normal for the proposal distribution. The default posterior sampling algorithm is random walk metropolis with a gaussian proposal distribution.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2009 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-08-28 13:38:07 +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 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
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 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
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 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
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 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