Stéphane Adjemian (Telemachus)
8fedac4d5e
Replaced calls to dyn_assert by calls to dassert.
...
This routine is used to compare objects i -n unit tests.
2014-11-08 09:28:53 +01:00
Stéphane Adjemian (Telemachus)
479189ef47
Updated path in dynare_config.
...
For m-unit-tests module.
2014-11-07 22:41:25 +01:00
Stéphane Adjemian (Telemachus)
f2aabb1f0d
Added m-unit-tests as a submodule.
2014-11-07 22:40:31 +01:00
Stéphane Adjemian
1c62420909
Removed matlab/utilities/tests subfolder.
2014-11-07 22:31:23 +01:00
Houtan Bastani
e6789a3707
Merge pull request #761 from JohannesPfeifer/message_test_calibration
...
Clarify message in test_for_deep_parameters_calibration.m
2014-11-07 17:27:15 +01:00
Houtan Bastani
1f25e7d479
Merge pull request #757 from JohannesPfeifer/fix_display
...
Add missing run index to looped variable in resol.m
2014-11-07 17:25:50 +01:00
Houtan Bastani
a1a0cc098b
skipline: simplify code
2014-11-07 16:44:05 +01:00
Houtan Bastani
f98a41007e
skipline: fix function header
2014-11-07 16:44:05 +01:00
Houtan Bastani
ae52f7615c
bug fix: skipline
2014-11-07 16:44:05 +01:00
Stéphane Adjemian
6edef09aba
Added fake input argument in @dates/isequal.
2014-11-07 16:12:47 +01:00
Stéphane Adjemian
d77dec9726
Added optional tolerance parameter in @dseries/isequal method.
2014-11-06 15:43:23 +01:00
Houtan Bastani
884cbc3fbe
dseries: bug fix: add delimiter for importdata for .csv files
2014-11-06 14:46:27 +01:00
Houtan Bastani
3f4f348a0a
dseries: variable in error messages isn't set
2014-11-06 14:34:05 +01:00
Houtan Bastani
9a966151fa
fix typo
2014-11-06 13:48:53 +01:00
Johannes Pfeifer
2a67e2a306
Take care of imaginary numbers in perfect foresight simulations
...
Finishing with imaginary parts now does not count as a solution and triggers a new homotopy step.
2014-11-06 09:08:50 +01:00
Johannes Pfeifer
cb5d3df6a0
Computation of the loss function in the presence of unit root variables was incorrect
...
Some elements were simply left out. This commit now mimics the computations as in th_autocovariances.m and makes sure the loss function coincides with the one that is obtained by reading out the covariance from oo_.var
2014-11-03 18:05:15 +01:00
Johannes Pfeifer
669016167e
Fix bug in osr where moments were not based on optimal parameter draw
...
M_.params is global and was set by csminwel1 to the last value tested; this does not necessarily coincide with the optimal parameter vector, which may have occurred earlier. This commit explicitly sets the optimal parameter vector.
2014-11-03 18:01:04 +01:00
Johannes Pfeifer
7b1663281b
Transform objective function in osr to full matrix
...
If the objective function only has one element, the scalar product of a sparse matrix and a full matrix is sparse (in contrast to two or more elements). This crashes the osr code subsequently.
2014-11-03 15:29:21 +01:00
Johannes Pfeifer
6bc9b88401
Add reordering of second order derivatives to stochastic_solvers.m
...
It was erroneously completely moved to dyn_second_order_solver.m in the 4.3 branch when cleaning up dr1.m. Without this reordering, decision rules for exogenous deterministic variables at second order are wrong
2014-11-02 19:34:55 +01:00
MichelJuillard
283912be53
Merge pull request #770 from JohannesPfeifer/Ramsey_aux_vars
...
Ramsey aux vars
2014-11-02 15:16:44 +01:00
Johannes Pfeifer
ecbe428bd7
Fix computation of objective function in OSR if covariances are specified
...
Due to the preprocessor adding entries for all variable combination into i_var, variables contained in covariances obtained a wrong weighting. By only selecting the unique entries, this cannot happen anymore. Moreover, the computation intensity of the objective does not increase quadratically in the objective anymore.
2014-11-02 12:49:11 +01:00
Michel Juillard
491301c67b
th_autocovariances.m creates Gamma_y{nar+2} (variance decomposition)
...
even if there is a single shock. In that case variance decomposition
is one. It is better if Gamma_y has always the expected
size. disp_th_moments.m only displays variance decomposition if there
is more than one shock.
2014-11-02 11:17:27 +01:00
Michel Juillard
fbbe98815b
fixing bug introduced in commit 6eb3a3d
when displaying theoretical
...
moments for a model with a single exogenous variable
2014-11-01 09:15:48 +01:00
Johannes Pfeifer
c2da796153
Fix distinction between initial values provided to dyn_ramsey_static.m and stale unchanged initial values in oo_.steady_state
...
In case of no steady state file, they are identical, but with a steady state file, they are not. Moreover, this fixes a problem with the dimension of the input to the steady state file. ys was not initialized and had wrong dimensions
Also adds comments to file.
2014-10-30 13:31:57 +01:00
Johannes Pfeifer
3a9c273535
Allow for check of Hessian at order>2 in model_diagnostics.m
2014-10-29 19:37:03 +01:00
Johannes Pfeifer
c1999443ce
Condition singularity warning on unit root check
...
When singularity is detected, try to compute eigenvalues to see if unit root is present and issue warning according to this check
2014-10-29 19:33:33 +01:00
Johannes Pfeifer
a159442935
Fix message in dynare_estimation_init.m
...
If some parameters are NaN after computing the steady state, the message erroneously said that parameters had been changed. In a check for equality, NaN is not equal to NaN. Thus, NaNs are now taken care of separately.
2014-10-29 09:02:29 +01:00
Stéphane Adjemian (Charybdis)
9300a061aa
Fixed bug (appearing only with Matlab and legacy data interface) if the m data file is in the current directory.
...
If the m data file is in the current directory, the first output of
fileparts(options_.datafile) is an empty string. In Matlab the command
cd('') fails, but Octave does not fail in this case (and does nothing).
Added a test on the first output of fileparts, if this output is empty
we do not try to change the current directory.
2014-10-23 11:08:26 +02:00
Stéphane Adjemian (Karaba)
5ab08ed8d3
Added missing semi colon.
2014-10-21 16:37:57 +02:00
Stéphane Adjemian (Karaba)
ca28a2b778
Fixed load_m_file_data_legacy.m.
...
An m file data was not loading if outside the current directory.
2014-10-21 16:05:34 +02:00
Stéphane Adjemian (Karaba)
63d3157267
Do not force the user to provide a clean m data file when using the legacy data interface.
...
Note that all the variables listed in varobs need to have the same
number of observations.
2014-10-20 17:28:35 +02:00
Stéphane Adjemian (Karaba)
f48566aeae
Fixed prior bounds (according to the doc in master branch).
...
* Second and third positional arguments after the name of the
estimated parameter in the estimated_params block are only
considered in the optimization stage (not in the MCMC)
* Do not store bounds in bayestopt_, because bounds do not always
reflect restrictions implied by prior shapes.
* prior_bounds routine returns a structure (with fields lb and ub)
instead of a matrix.
2014-10-20 16:18:54 +02:00
Stéphane Adjemian (Karaba)
fb14d24036
Do not truncate the plotted prior densities with the truncation
...
parameters used for optimization (second and third positional
arguments after the name of the estimated parameter in the
estimated_params block).
2014-10-16 15:27:40 +02:00
Stéphane Adjemian (Karaba)
2d61c39276
Cosmetic changes.
2014-10-16 15:25:51 +02:00
Johannes Pfeifer
db2ba6d887
Clarify message in test_for_deep_parameters_calibration.m
2014-10-15 13:42:47 +02:00
Johannes Pfeifer
2c01113e8c
Fix bug when calling non-Bayesian smoother after Bayesian estimation
...
Because xparam1 is used by the smoother, but xparam was set to the posterior mean, the non-Bayesian smoother results were based on the parameters at the mode, which are stored in xparam1.
2014-10-15 09:49:07 +02:00
Stéphane Adjemian (Karaba)
d423ae63a8
Set default value for last input argument of lyapunov_symm routine (debug flag).
2014-10-15 09:02:42 +02:00
Johannes Pfeifer
590c0985f8
Add missing run index to looped variable in resol.m
2014-10-13 20:10:57 +02:00
Stéphane Adjemian (Karaba)
935f74883d
Added unit tests for lyapunov_symm routine.
2014-10-13 17:42:53 +02:00
Stéphane Adjemian (Karaba)
97b63105a0
Add a parameter to the lyapunov_symm routine (debug mode).
2014-10-13 17:42:53 +02:00
Stéphane Adjemian (Karaba)
55808060cf
Removed useless input (complete commit 438a671c3873e5c4e1bb02a54080e930fbc11886).
2014-10-13 17:42:52 +02:00
Johannes Pfeifer
b90f3deed2
Bugfixes and improvements related to method 3 of lyapunov_symm.m
...
- the function was called with the wrong input argument for this case (Q instead of R*Q*R'), crashing with incompatible matrix dimensions
- the persistent variable X was not updated when the size of it changed, leading to crashes when estimation is followed by calls to DsgeSmoother.m where the state-space is different
- Also eliminates the printed output in lyapunov_symm.m that could not be turned off and clutters estimation
2014-10-13 17:42:52 +02:00
Stéphane Adjemian
573d276f1a
Merge pull request #739 from JohannesPfeifer/Cosmetic_changes
...
Cosmetic changes, documentation, and small bugfix
2014-10-13 13:39:19 +02:00
Johannes Pfeifer
96df3b0043
Cosmetic changes to error messages
...
(cherry picked from commit ffa424d9d88dcd534272b154a3d9848df861914b)
2014-10-13 13:05:46 +02:00
Stéphane Adjemian
78621c03ee
Merge pull request #742 from JohannesPfeifer/second_order_hessian_problems
...
Deal with NaN and Inf in Hessian of dynamic model
2014-10-13 12:49:38 +02:00
Johannes Pfeifer
de5875a75b
Fix bug still present in CutSample.m
...
#733 was faulty because it did not account for changes in the first line when more than 1 MH file was present. Now, FirstDraw really denotes the first draw (as opposed to the last draw as before). The subsequent computation of FirstMhFile is then also correct.
2014-10-12 11:33:55 +02:00
Stéphane Adjemian
6c112a2701
Merge pull request #743 from JohannesPfeifer/debug_info_estimation
...
Add check for NaN parameters to initial_estimation_checks.m
2014-10-10 22:30:12 +02:00
Stéphane Adjemian
06fbf2b2c5
Merge pull request #746 from JohannesPfeifer/rplot
...
Filter out empty oo_.endo_simul in rplot.m
2014-10-10 22:25:07 +02:00
Stéphane Adjemian (Charybdis)
df1e734106
Merge branch 'steady_debug'
2014-10-10 21:47:24 +02:00
Stéphane Adjemian (Charybdis)
f4922a8a27
Cosmetic changes.
2014-10-10 21:46:50 +02:00
Stéphane Adjemian
9e3edd6673
Merge pull request #748 from JohannesPfeifer/maxit
...
Change maxit default value and correct manual
2014-10-10 19:03:56 +02:00
Stéphane Adjemian
37d4cf7e35
Merge pull request #753 from JohannesPfeifer/MCMC_diag
...
Improve tractability of McMCDiagnostics_core.m by adding header and comm...
2014-10-10 18:46:30 +02:00
Houtan Bastani
f4f7a02fd7
Provisions for MATLAB 8.4 (R2014b)
2014-10-10 10:41:04 +02:00
Johannes Pfeifer
1d68ed8da6
Improve tractability of McMCDiagnostics_core.m by adding header and comments. Also uses more intuitive variable names
2014-10-09 10:57:28 +02:00
Johannes Pfeifer
3187c70b97
Add debugging info on initial values for steady state computation
2014-09-30 15:05:12 +02:00
Johannes Pfeifer
a9bb341b0a
Increase default maxit for steady and deterministic simulations
...
Judging from forum reports, the default fails too often. Closes #747
2014-09-30 11:47:58 +02:00
Michel Juillard
6bbfa2fa6d
removed 1e6 in expression forcing a non-singular Jacobian
2014-09-30 08:13:31 +02:00
Johannes Pfeifer
6a8c968411
Filter out empty oo_.endo_simul in rplot.m
2014-09-29 15:00:45 +02:00
Michel Juillard
fa3e77d163
fixing bug in handling options for lmmcp
2014-09-28 10:07:08 +02:00
Johannes Pfeifer
127b7b0221
Add check for NaN parameters to initial_estimation_checks.m
...
Provides important info to debug cryptic crashes in later routines. Mostly applies to cases where people run estimation without stoch_simul
2014-09-25 09:02:36 +02:00
Johannes Pfeifer
b43d52278d
Deal with NaN and Inf in Hessian of dynamic model
...
Checks for these cases in stochastic_solvers.m to prevent cryptic crashes in dll-files later on
2014-09-25 08:49:19 +02:00
Johannes Pfeifer
2d39fc62e2
Make sure the output arguments of dsge_likelihood.m are actually set
...
Before, trend_coeff and ys were sometimes returned as empty
2014-09-21 11:54:43 +02:00
Johannes Pfeifer
3e427020d6
Cosmetic changes in headers
2014-09-21 11:51:46 +02:00
Stéphane Adjemian (Charybdis)
e2fd82d403
Merge branch 'cut_sample'
2014-09-20 11:18:16 +02:00
Stéphane Adjemian (Charybdis)
cc80c8662c
Fixes ambiguity in the output of CutSample routine (second part of PR #733 ).
2014-09-20 11:17:57 +02:00
Stéphane Adjemian (Charybdis)
bfc9719f05
Fix bug in in CutSample.m that led to wrong number of draws for moment computation (first part of PR #733 )
...
FirstLine actually defined the last line. One needs to 1. Otherwise,
Draws in GetAllPosteriorDraws.m will be (NumberOfDraws+1)*nblck.
2014-09-20 11:16:50 +02:00
Stéphane Adjemian (Charybdis)
2e08025cac
Fixed typo (wrong condition for defining the integration weights and nodes).
2014-09-19 22:05:42 +02:00
Johannes Pfeifer
79c5e18bfe
Cosmetic changes
...
- Suppresses spurious output from dynare_estimation_1.m
- Removes unset output argument from dynare_estimation_init.m (which seems to be totally unused as it was not set at all and nobody reported any crashes)
- Corrects header of dynare_estimation_init.m
2014-09-19 16:20:43 +02:00
Johannes Pfeifer
08b598609e
Clarify ambiguous printout in internals function
...
"Overall acceptance rate" could be read as over all chains.
Also capitalizes the name Matlab
2014-09-16 20:44:18 +02:00
Jukka Heikkonen
79d0e269a7
cosmetic change
2014-09-12 15:40:47 +02:00
Marco Ratto
4729459970
Properly handle case when post_metropolis=0: here steady_state must be added to smoothed variables.
2014-09-12 15:35:00 +02:00
Jukka Heikkonen
55b6d0eb93
1) check for restricted or extened var list
...
2) allow proper working will all GSA type of sample: prior, MC, posterior
2014-09-12 14:49:25 +02:00
Johannes Pfeifer
8655df67a9
Clean up use of verbosity option
...
- in dr_block.m and ep_residuals.m the option was hardcoded and disabled
- for csminwel1.m, no verbosity option exists anymore, thus definitions preceeding calls to it were redundant as was the options_.osr.verbose
2014-09-12 10:33:37 +02:00
ferhat
beee1d2f82
Correct the test on the number of eigenvalues outside the unit circle: do the test on each block instead of at the global level
2014-09-11 18:19:31 +02:00
Stéphane Adjemian (Scylla)
576ed55dda
Merge branch optimizer_number_5.
2014-09-11 17:38:03 +02:00
Stéphane Adjemian (Scylla)
89fa0ae9b6
Fixed typo.
2014-09-11 17:33:42 +02:00
Stéphane Adjemian (Charybdis)
7e3114847d
Fix crash in Ramsey with more than 1 instrument and steady state file.
...
Vector ys is undefined.
2014-09-11 15:33:55 +02:00
Stéphane Adjemian (Charybdis)
ce97a27c9d
Cosmetic changes.
2014-09-10 17:49:33 +02:00
Johannes Pfeifer
308ce25031
Make sure that solve_algo=0 inherits options from options_.steady
...
Otherwise, MaxIter is hard-coded
(cherry picked from commit 2499f641ac2fab7ddf938263d0ee34f73765c4c8)
2014-09-10 17:49:33 +02:00
Johannes Pfeifer
caa6d5d93e
Fix display of MH-history if parameter names do not have same length
...
In this case, cell2mat fails, because the dimensions are not consistent. Using char() instead padds with spaces
(cherry picked from commit 47b1a2df74cf1f643ca913ab4ff6c2057e8b58cf)
2014-09-10 17:49:33 +02:00
Johannes Pfeifer
41d1533086
Add check that prevents datafile from having same name as mod-file
...
Otherwise, the generated m-file might be called as the datafile, leading to infinite loops. The check cannot be moved to makedataset because M_.fname is not available there.
2014-09-10 17:49:33 +02:00
Stéphane Adjemian (Charybdis)
27d54758be
Fixed typo.
2014-09-10 17:49:33 +02:00
Stéphane Adjemian (Charybdis)
6d42ec66d5
Account for error code 10 (Inf in Jacobian of the dynamic model) in likelihood functions.
2014-09-10 17:49:33 +02:00
Stéphane Adjemian (Scylla)
5500846280
Added option distribution_proposal (estimation, non linear filters).
2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla)
4c9be8a56a
Removed useless option.
2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla)
df19396acf
Added option proposal_approximation (estimation, non linear filters).
2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla)
9bfdeb30e2
Bug fixes.
2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla)
5e4b7d8d42
Added filter_algorithm (estimation command, sets the particle filter algorithm).
2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla)
bcad4f31f2
Added option resampling_method (estimation command, non linear filters).
2014-09-08 22:36:41 +02:00
Stéphane Adjemian (Scylla)
08c74b8f41
Added option resampling_threshold (estimation command, non linear filters).
2014-09-08 22:36:40 +02:00
Stéphane Adjemian (Scylla)
a6009908e4
Added option resampling (estimation command, non linear filters).
2014-09-08 22:36:40 +02:00
Stéphane Adjemian (Scylla)
77a29e95c1
Fixed bugs:
...
(1) The non_linear_dsge_likelihood routine was not adapted to the last changes related to the way data are handled.
(2) The removal of the trend was missing.
2014-09-08 22:36:40 +02:00
Stéphane Adjemian (Scylla)
06f4926553
Do not consider variables that are not column vectors.
2014-09-08 22:36:40 +02:00
Stéphane Adjemian (Scylla)
b972c34417
Changed local variable name (index of the main loop).
2014-09-08 22:36:40 +02:00
Stéphane Adjemian (Scylla)
f6a1df8549
Increased default number of particles.
2014-09-08 22:36:40 +02:00
MichelJuillard
5e8489ac45
Merge pull request #696 from JohannesPfeifer/Ramsey_steady_state
...
Bugfix Ramsey steady state with steady state files
2014-09-08 21:56:13 +02:00
Marco Ratto
62b4cfe631
Provisions for moment calibration.
...
Sensitivity analysis for irf and moment calibration, with new function /gsa/map_calibration.m
Added new tests/gsa/ls2003a.mod for testsuite of irf/moment calibration
To be done:
- extend SA of calibration to MC and posterior samples (currently uses prior sample only)
- documentaion
- partial progress to close #267
2014-09-04 16:44:14 +02:00
Frédéric Karamé
b06b6a6161
Modifications for online estimation of linearly-solved models
2014-08-29 15:51:01 +02:00
Sébastien Villemot
07d321c159
Merge pull request #705 from JohannesPfeifer/get_posterior_bug
...
Fixes bug where number of posterior draws was computed incorrectly and w...
2014-08-14 12:44:58 +02:00
Michel Juillard
6d42861e19
extended-path: fixing bug when options_.initial_period is NaN
2014-08-12 18:59:56 +02:00
Michel Juillard
812a8c7637
extended_path: fixed bugs when model doesn't converge
2014-08-12 12:12:15 +02:00
Johannes Pfeifer
819dd8c899
Fixes bug where number of posterior draws was computed incorrectly and wrong warning was displayed
...
The bug did not affect any computations, but only provided a wrong warning
2014-08-09 10:37:16 +02:00
Marco Ratto
f346b734d9
when flag==0 (or options_.hess==0), we force to use the hessian from outer product gradient computed in optimizer == 5.
2014-08-07 17:49:04 +02:00
Sébastien Villemot
6c1266f861
Merge pull request #683 from JohannesPfeifer/mh_mode
...
Add saving of parameter names to make loading of mh_mode-file compatible...
2014-07-30 18:29:03 +02:00
Houtan Bastani
217ab0088d
reporting: tables: add row highlighting option
2014-07-30 15:21:32 +02:00
Sébastien Villemot
9c4294d0aa
Merge pull request #700 from JohannesPfeifer/unit_test
...
Set missing argument in makedataset.m that leads to crashes with GSA
2014-07-30 12:59:45 +02:00
Stéphane Adjemian (Scylla)
0f28422e9f
This fixes #704 .
2014-07-29 18:22:10 +02:00
Houtan Bastani
f3c807f577
reporting: add writeCSV option for tables. closes #693
2014-07-29 15:21:51 +02:00
Houtan Bastani
5b7b8da7fa
reporting: table fix bug where the table would not be saved in the directory specified by tableDirName if the tableName option was provided
2014-07-29 15:21:51 +02:00
Houtan Bastani
b4dd4b5de1
reporting: add writeCSV option for graphs, #693
2014-07-29 15:21:45 +02:00
Stéphane Adjemian (Scylla)
c5af1d43ed
Removed nobs and vobs members in @dseries class.
...
The syntax to get the number of observations and the number of
variables remains unaffected by this commit. If ts a @dseries object,
ts.nobs and ts.vobs are respectively the number of observations and
the number of variables.
2014-07-28 17:50:15 +02:00
Houtan Bastani
555e2cf73b
reporting: write tableSubSectionHeader in bold
2014-07-28 17:28:20 +02:00
Houtan Bastani
1f3ae372fe
reporting: fix bug where a whole row wasn’t colored if the tableSubSectionHeader option was passed at the same time
2014-07-28 17:28:20 +02:00
Houtan Bastani
19134d1287
reporting: minor aesthetic changes to table and code simplifications
2014-07-28 17:28:20 +02:00
Houtan Bastani
010a87623e
reporting: ensure tableRowIndent is ge 0
2014-07-28 17:28:20 +02:00
Stéphane Adjemian (Scylla)
1e4c2e0881
Fixed bug affecting prior restictions (removed the extension in the argument of str2func).
2014-07-28 13:02:10 +02:00
Houtan Bastani
7387237a5b
reporting: option to suppress reporting output. closes #688
2014-07-25 14:38:30 +02:00
Stéphane Adjemian (Scylla)
916fe62218
Fixed bug. Test on multiple declaration of observed variables was wrong.
2014-07-24 17:53:20 +02:00
Marco Ratto
a6bddb2d57
Improve computation of outer product gradient for univariate Kalman algorithms, by exploiting the larger number of individual densities computed during recursions (used in optimizer number 5).
2014-07-23 16:33:39 +02:00
Johannes Pfeifer
4c6aad3d2d
Fix bug in dynare_identification.m that led to missing output and crashes if the initial parameterization was invalid
...
If the initial parameters did not solve, the code for displaying results and saving was not reached. The also led to later crashes with saving as the -append option was used and no file existed. If no valid draw can be found, the function exits in any case, so no additional check is needed.
2014-07-23 12:10:00 +02:00
Johannes Pfeifer
bf69cee91f
Set missing argument in makedataset.m that leads to crashes with GSA
...
Fixes the recent problem with unit tests
2014-07-23 12:05:45 +02:00
Stéphane Adjemian (Scylla)
0efcef8f20
Added the possibility to declare non linear prior restrictions over estimated parameters.
...
If a file <MOD_FILE_NAME>_prior_restrictions.m exists in current folder, the value returned by this routine is
substracted to fval (likelihood-lnprior) at the end of dsge_likelihood. The arguments of this routine are: M_,
oo_, options_, dataset_ and dataset_info. Routines for writing <MOD_FILE_NAME>_prior_restrictions.m will be
provided later.
2014-07-21 12:45:49 +02:00
Stéphane Adjemian (Charybdis)
871fa6aa86
Issue a warning if conditional forecasts are computed with correlated innovations (if these correlations are defined in the covariance matrix of the innovations).
2014-07-18 18:36:02 +02:00
Johannes Pfeifer
36222cb40d
Account for presence of Lagrange multipliers and auxiliary equations in display_problematic_vars_Jacobian.m
2014-07-18 14:05:12 +02:00
Johannes Pfeifer
27572277d0
Test the result of steady state computation for correctness
...
- Checks correctness of steady state file
- Tests whether result of computation really is a steady state
- Also eliminates case that can never be reached
2014-07-18 13:18:14 +02:00
Johannes Pfeifer
7c09435e5e
Fix bug in dyn_ramsey_static.m with steady state file that resulted in incorrect steady state when running twice
...
The x returned by a steady state file includes Lagrange multipliers. When starting with 0 multipliers, the steady state of the multipliers is computed correctly. But when running it a second time like in a subsequent call to stoch_simul, the algorithm thinks that elements of xx are 0 which they aren't. As a result, it finds minus the multiplier as the solution, resulting in an output of 0 for all multipliers.
2014-07-18 12:35:52 +02:00
Johannes Pfeifer
3f72f394aa
Cosmetic fixes to dyn_ramsey_static.m
...
Also makes sure that the check flag is returned and the steady state file always called if it exists. Otherwise, parameters might not be updated and NaN not detected.
2014-07-18 08:53:51 +02:00
Stéphane Adjemian (Scylla)
49e53f9299
Added isdiagonal routine.
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla)
3f496b494d
Moved routines under utilities folder.
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla)
71df21bf0d
Fixed issue induced by the merge of 74fd0850d61f8ba464ff08ed42c4019d27722fb3 in master (changed DynareDataset field name).
2014-07-17 22:05:08 +02:00
Johannes Pfeifer
b69174477c
Add more info on requirement on dsge_var prior weight needed for prior to be proper.
...
(cherry picked from commit 74fd0850d61f8ba464ff08ed42c4019d27722fb3)
2014-07-17 22:05:08 +02:00
Johannes Pfeifer
fbdfaf640a
Document computation of theoretical mean at second order
...
(cherry picked from commit 7084913382dc892fa4385fb7783e5daec41449f7)
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla)
afb5be2067
Set options_.nobs if the new data interface is used.
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla)
5b08223820
Changed default value of initial_period (NaN).
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla)
afbd0bd47a
Cosmetic change (added white space).
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla)
863fe4998f
Fixed typo/bug (removed space).
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla)
1a98943651
Fixed bug (tex names with underscores were not correctly saved in m datafile).
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla)
a261c3bbce
Fixed bug. The instantiation of a dseries object with a file name (for the datafile) and a string (for the initial period) was not working correctly.
2014-07-17 22:05:08 +02:00
Stéphane Adjemian (Scylla)
7b089ec2b3
Cosmetic change. Renamed nobs as vobs.
2014-07-17 22:05:07 +02:00
Stéphane Adjemian (Scylla)
e5a419ecaf
Removed reference to options_.nobs
2014-07-17 22:05:07 +02:00
Johannes Pfeifer
04554967fc
Fix bug in imcforecast.m where covariance matrix was decomposed element-wise instead of via Cholesky.
2014-07-17 22:05:07 +02:00
Johannes Pfeifer
bf674fa59f
Deal with cases where too few draws are available for posterior moments
2014-07-17 22:05:07 +02:00
Johannes Pfeifer
b9aa971d73
Add description for conditional_forecasts
2014-07-17 22:05:07 +02:00
Sébastien Villemot
064c1bb8fc
Clarify license of LMMCP.
...
Closes #680
2014-07-10 14:24:41 +02:00
Houtan Bastani
179e8b867a
reporting: bug fix. closes #673
2014-07-09 15:46:28 +02:00
Houtan Bastani
34610ad4eb
reporting: fix bug in creating table when data option is passed to constructor
2014-07-09 15:46:28 +02:00
Stéphane Adjemian (Charybdis)
94b87beb10
Fixed bug (missing code for handling prefilter=1).
2014-07-09 15:34:53 +02:00
Stéphane Adjemian (Charybdis)
03975f7d01
Fixed bug (wrong definition of rawdata).
2014-07-09 15:34:53 +02:00
Stéphane Adjemian (Charybdis)
57c583867b
Added new method @dseries/detrend.
2014-07-09 15:34:53 +02:00
Houtan Bastani
946bf4f5e2
reporting: modify depricated method of changing font (thanks to Dirk Muir for the solution)
2014-07-08 16:12:17 +02:00
Sébastien Villemot
7400c2c143
evaluate_steady_state.m: fix bugs when static and dynamic models differ.
...
Closes #661
2014-07-08 16:10:09 +02:00
Sébastien Villemot
def9ee92e5
Steady state calculation of Ramsey problem: fix bug when params are updated.
...
If the steady state file was modifying parameters, the changes were not taken
fully taken into account.
Thanks to Junior Maih for noticing and proposing the fix.
2014-07-08 15:06:26 +02:00
Stéphane Adjemian (Charybdis)
9c733de40a
Added unitary tests.
2014-07-08 14:06:55 +02:00
Michel Juillard
4613fb2bf4
Adding initialization for lmmcp options
2014-07-08 13:53:18 +02:00
Houtan Bastani
a64ded92cd
dseries: fix subtraction bug. closes #686
2014-07-08 12:06:27 +02:00
Sébastien Villemot
658151aa48
Merge pull request #682 from JohannesPfeifer/model_comparison
...
Filter out ML of model_comparison.m
2014-07-07 18:18:38 +02:00
Sébastien Villemot
24ec8e2b81
Merge pull request #685 from JohannesPfeifer/Load_Excel
...
Account for loading of only one variable when loading Excel-file
2014-07-07 18:15:04 +02:00
Houtan Bastani
ad00875cf6
reporting: graph: add option yTickLabelScaled
2014-07-07 16:49:53 +02:00
Houtan Bastani
9fc4d62264
reporting: remove unused graphSize option
2014-07-07 10:29:09 +02:00
Houtan Bastani
535168850a
reporting: add option to suppress compiler output
2014-07-07 09:49:12 +02:00
Houtan Bastani
21f9b98d6c
reporting: add option to open report at end of compilation
2014-07-07 09:45:34 +02:00
Houtan Bastani
a97197c445
reporting: rework option handling for compile.m
2014-07-07 09:45:25 +02:00
Houtan Bastani
9872fe69c0
reporting: fix bug with end tabular/end landscape
2014-07-04 16:46:09 +02:00
Johannes Pfeifer
9f793d1069
Account for loading of only one variable when loading Excel-file
...
Closes #654
2014-07-04 13:44:48 +02:00
Stéphane Adjemian (Charybdis)
779364c35d
Fixed bug and added unit tests (force the variables in mat files to be in column vectors).
2014-07-03 11:35:46 +02:00
Stéphane Adjemian (Charybdis)
0c98ba67f6
Fixed bug and added unitary tests.
2014-07-02 16:08:08 +02:00
Johannes Pfeifer
7f15295cda
Add saving of parameter names to make loading of mh_mode-file compatible with mode_file option
2014-07-02 15:20:07 +02:00
Stéphane Adjemian (Scylla)
1b36d75947
Rewrote @dates/size and @dseries/size (compatibility fix for Octave).
2014-07-02 12:20:19 +02:00
Johannes Pfeifer
85f336496d
Filter out ML of model_comparison.m
...
Also documents that ML is not supported and adds reference for model comparison
Related to #681
2014-07-01 18:50:24 +02:00
Sébastien Villemot
6ceecd1cf6
Tighten convergence criterion of trust region.
...
Closes #666
2014-07-01 18:43:16 +02:00
Sébastien Villemot
f4f7b8d0a1
Merge pull request #660 from JohannesPfeifer/mode_file
...
Restore backward compatibility of mode_file option
2014-07-01 18:00:48 +02:00
Sébastien Villemot
40ea09644b
Merge pull request #668 from JohannesPfeifer/loglinear
...
Fix two bugs in resol that lead to crashes instead of error messages when...
2014-07-01 17:59:20 +02:00
Sébastien Villemot
939fb78624
Merge pull request #663 from JohannesPfeifer/master
...
Bugfix and cosmetic fix
2014-07-01 17:56:48 +02:00
Stéphane Adjemian (Charybdis)
daf4cb1491
Added unitary tests.
2014-06-27 23:12:05 +02:00
Stéphane Adjemian (Charybdis)
a8cb8ccd29
Merge branch 'use-dseries'
2014-06-27 22:38:07 +02:00
Stéphane Adjemian (Charybdis)
9c92b20f33
Added unitary test.
2014-06-27 22:36:10 +02:00
Stéphane Adjemian (Charybdis)
a5ea76d58c
Do not issue an error message if the dseries appearing in the recursive/static expression do have common names.
2014-06-27 22:29:57 +02:00
Stéphane Adjemian (Scylla)
20e64aa88c
Fix for empty and nan fields.
2014-06-27 18:41:04 +02:00
Stéphane Adjemian (Scylla)
d5e873f01f
Fixed bug (missing argument).
2014-06-27 18:40:09 +02:00
Stéphane Adjemian (Scylla)
684b6b8c04
Fixed bug in osr.
2014-06-27 18:39:39 +02:00
Stéphane Adjemian (Scylla)
81541ac058
Fixed unitary test.
2014-06-27 18:39:18 +02:00
Houtan Bastani
87b4254ce5
reporting: remove checks on colors that are passed to graphs/series to allow for all color combinations supported by TikZ
2014-06-27 17:06:45 +02:00
Houtan Bastani
56d861787b
fix typo
2014-06-27 16:26:34 +02:00
Houtan Bastani
638297f4b8
add missing semicolon
2014-06-27 16:18:05 +02:00
Houtan Bastani
0ef65bc296
reporting: graph: add option tickFontSize
2014-06-27 15:56:06 +02:00
Stéphane Adjemian (Scylla)
a29a4d0842
Removed unitary test (needs to be fixed).
2014-06-26 16:09:50 +02:00
Stéphane Adjemian (Scylla)
4359eb6dad
Adapted ms sbvar codes (options_.varobs is a row cell array of strings).
2014-06-26 16:07:45 +02:00
Stéphane Adjemian (Scylla)
62e28dac94
Use makedataset in condition forecast routine.
2014-06-26 10:55:54 +02:00
Houtan Bastani
c23bb31252
reporting: add graph option to change title font size
2014-06-25 16:30:04 +02:00
Stéphane Adjemian (Scylla)
03395a7425
Fixed bug. Wrong test on the number of input arguments (because of the new input argument dataset_info in dsge_likelihood).
2014-06-25 14:57:20 +02:00
Stéphane Adjemian (Scylla)
38df13bb92
Fixed bug (options_.varobs is a row cell array of strings).
2014-06-25 14:49:49 +02:00
Stéphane Adjemian (Scylla)
0b82874268
Adapted madataset routine for Gsa.
2014-06-25 11:34:39 +02:00
Stéphane Adjemian (Scylla)
18eb81da55
Fixed bug in filt_mc_ (gsa) routine (dataset_.dat need to be transposed).
2014-06-25 11:28:49 +02:00
Stéphane Adjemian (Scylla)
904b8025f3
Adapted dynare_sensitivity routine (options_.varobs is a row cell array of strings).
2014-06-25 11:27:12 +02:00
Houtan Bastani
f2b4de1d8a
reporting: support a different shape for the axis in a graph
2014-06-24 15:51:29 +02:00
Houtan Bastani
7ccd26a17e
dseries: remove strsplit as it was introduced in Matlab R2013a
2014-06-24 12:10:59 +02:00
Stéphane Adjemian (Scylla)
b7cf6338db
Adapted evaluate_likelihood routine.
2014-06-23 17:11:01 +02:00
Stéphane Adjemian (Scylla)
06f74c4603
Cosmetic change.
2014-06-23 16:06:58 +02:00
Stéphane Adjemian (Scylla)
800de3fcc9
Fixed bug (varobs is a field of options_).
2014-06-23 16:06:29 +02:00
Stéphane Adjemian (Scylla)
a0907b2e05
Merge branch 'master' into use-dseries
2014-06-23 15:15:48 +02:00
Stéphane Adjemian (Scylla)
40a60e92fa
Fixed bug when loaded m file data is not in the current folder or a subfoler.
2014-06-23 13:54:52 +02:00
Stéphane Adjemian (Scylla)
11f00d041e
Fixed bug (options_.varobs is a row cell array of strings) + Cosmetic changes.
2014-06-23 12:53:39 +02:00
Stéphane Adjemian (Scylla)
195a3f8fff
Fixed bug (missing transposition).
2014-06-23 12:52:44 +02:00
Stéphane Adjemian (Scylla)
d727ba7246
Fixed bug (missing input).
2014-06-23 12:24:36 +02:00
Stéphane Adjemian (Scylla)
0cb1b6795b
Fixed bug in set_prior routine (options_.varobs is a cell array of strings).
2014-06-23 12:24:17 +02:00
Stéphane Adjemian (Scylla)
f6ce89260a
Adapted posterior IRFs routines.
2014-06-23 11:08:48 +02:00
Stéphane Adjemian (Scylla)
b11f6e2505
Adapted code for dsge-var models.
2014-06-23 10:55:08 +02:00
Michel Juillard
21d40f6123
fixed minor bug in stochastic extended path
2014-06-21 10:06:01 +02:00
Houtan Bastani
6733c83ff5
reporting: add graph option: zeroLineColor
2014-06-20 15:41:11 +02:00
Stéphane Adjemian (Scylla)
91d74fabb3
Cosmetic changes.
2014-06-20 11:57:46 +02:00
Stéphane Adjemian (Scylla)
50e42777b2
Adapted simplex routine.
2014-06-20 11:27:06 +02:00
Stéphane Adjemian (Scylla)
304ea02a53
Adapted newrat routines (adding dataset_info).
2014-06-20 11:21:30 +02:00
Stéphane Adjemian (Scylla)
e4cd72b5b6
Fixed typo.
2014-06-20 11:20:27 +02:00
Stéphane Adjemian (Scylla)
788c528c84
Merge branch 'master' into use-dseries
2014-06-19 18:13:35 +02:00
Stéphane Adjemian (Scylla)
f5c2027e18
Do not impose the equality between the initial period as defined by the set_time command and the date of the initial observation defined in the datafile or dseries object.
2014-06-19 18:02:31 +02:00
Stéphane Adjemian (Scylla)
c4dac88ed2
Added the possibility to redefine the initial date (and implicitly the frequency) when a dseries object is instantiated with the name of a datafile.
2014-06-19 17:59:19 +02:00
Stéphane Adjemian (Scylla)
653f10df72
Added persistent variable in evaluate_smoother routine (dataset_info which describes the distribution of missing data). Changed type of dataset_.
2014-06-19 12:31:35 +02:00
Stéphane Adjemian (Scylla)
7e862ae72a
Fixed bug (forgot some calls to identification_analysis).
2014-06-18 15:37:13 +02:00
Stéphane Adjemian (Charybdis)
4f02e58010
Added the possibility to pass a dseries object to the data command (the user can manipulate the data in the mod file, using dseries class methods, and use them for estimation without writing the data on disk).
2014-06-17 16:03:30 +02:00
Stéphane Adjemian (Charybdis)
42c4aabdcc
Adapted identification routines.
2014-06-17 12:04:58 +02:00
Stéphane Adjemian (Charybdis)
8691304b9f
Fixed gsa (dataset_ is now a dseries object).
2014-06-17 10:30:45 +02:00
Stéphane Adjemian (Charybdis)
880bb58aef
Fixed mode_check and prior_posterior_statistics routines (added dataset_info as an input).
2014-06-17 10:19:07 +02:00
Stéphane Adjemian (Charybdis)
efcf6bd9c0
Use dseries object in the estimation routines.
2014-06-16 17:41:59 +02:00
Michel Juillard
499967f9a1
adding an option to extended path to control homotopic steps and
...
continue in case of failed case
2014-06-16 14:25:23 +02:00
Michel Juillard
6f9720ff84
removing debug code
2014-06-16 14:24:05 +02:00
Stéphane Adjemian (Charybdis)
7795833add
Fixed bug in dates class constructor (wrong call to length routine).
2014-06-15 19:17:30 +02:00
Stéphane Adjemian (Charybdis)
4f5ab5a236
Changed logic in dates class constructor.
2014-06-15 19:15:30 +02:00
Stéphane Adjemian (Charybdis)
558c818cca
Changed logic in isfreq routine.
2014-06-13 16:32:25 +02:00
Stéphane Adjemian (Charybdis)
e41e8effdf
Modified isdate behaviour (an integer scalar is interpreted as a year).
2014-06-13 10:10:17 +02:00
Stéphane Adjemian (Charybdis)
af1009d8a4
Merge branch 'master' into use-dynSeries
2014-06-12 17:42:52 +02:00
Stéphane Adjemian (Charybdis)
08ea66057c
Automagically increase the number of observations in the assigned variable if needed.
...
So that the following is possible
y = dseries([0],'1990Q1','y');
e = dseries(randn(1000,1),'1990Q1','e');
from 1990Q2 to 2239Q4 do y(t) = .5*y(t-1) + e(t) - .5*e(t-1)*y(t-1) +.1*y(t-1)^2
Initially y has only one observation (which is mandatory because y
depends on its first lag), the routine extends the number of
observations so that y.dates(end)==2239Q4
Note that the exogenous variables are not adjusted, they must be
defined (leads/lags included) between the first and last dates of the
from-to-do syntax.
2014-06-12 15:24:00 +02:00
Stéphane Adjemian (Charybdis)
955dcab449
Removed init and freq members from dseries class (redundant informations).
...
The frequency and initial date can still be accessed with the usual syntax:
ts.freq
ts.init
It is also possible to get the last date:
ts.last
Added new methods frequency, firstdate and lastdate as alias for ts.dates.freq, ts.dates(1) and ts.dates(end)
2014-06-11 12:22:35 +02:00
Stéphane Adjemian (Charybdis)
8507c27fab
Removed display of current path in last unitary test.
2014-06-11 12:22:35 +02:00
Stéphane Adjemian (Charybdis)
3606cbc8ed
Added new syntax to remove variables from a dseries object.
...
If ts is a dseries object, then
ts{'Variable_1','Variable_2'} = [];
or
ts{'Variable_@1,2@} = [];
will remove Variable_1 and Variable_2 from ts (if they exist).
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
ff27824b29
Fixed bug related to the initialization of the dseries and dates object (test that the input argument is a string).
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
f0a3d6ad44
Added @dseries/remove method.
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
d5066e9a44
Added unitary test.
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
353bab2117
Fixes issue #652 .
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
2e280ecdcd
Added dseries/end method.
...
Allows the following syntax to extract variables from a
dseries object ts:
us = ts{2:end};
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
aa14faf508
Removed the possibility to extract subsamples from a dseries object with a vector of integers.
...
If ts is a dates object with 100 observations (ts.nobs=100), the
following syntax for selecting the last 90 observations *is not legal*:
ts(11:end)
ts has to be indexed instead with dates objects, as in the following example:
ts(d1:d2)
where d1 and d2 are dates objects. To select the 90 last observations,
if the last date is unknown, the following syntax can be used:
ts(ts.dates(11:end))
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
c3029468af
Do not display the object returned by from.
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
64bdbb525b
Allow variables extracted from a dseries object in the dynamic or static expression following the do keyword.
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
d60565bfc4
Fixed bug in @dates/colon (last years were wrong if r>0).
2014-06-11 12:22:34 +02:00
Stéphane Adjemian (Charybdis)
7a96533339
Allow empty dseries objects in @dseries/horzcat method. Added unitary test.
2014-06-11 12:22:33 +02:00
Stéphane Adjemian (Charybdis)
ba726db417
Fixed bug in @dates/colon methood (wrong offset if r>0).
2014-06-11 12:22:33 +02:00
Stéphane Adjemian (Charybdis)
3ae2874fd0
Cosmetic changes (error messages).
2014-06-11 12:22:33 +02:00
Stéphane Adjemian (Charybdis)
34e9f0dc14
Allow dates objects as first and third arguments (initial and terminal dates).
2014-06-11 12:22:33 +02:00
Stéphane Adjemian (Charybdis)
ac05826ef0
Test that the names of the variables contained in the dseries objects are different.
2014-06-11 12:22:33 +02:00
Stéphane Adjemian (Charybdis)
1ed0ccff6f
Test that dseries are not empty.
2014-06-11 12:22:33 +02:00
Stéphane Adjemian (Charybdis)
03250208c0
Test that each dseries object contains only one variable.
2014-06-11 12:22:33 +02:00