Sébastien Villemot
49a396030b
Yet another batch of Octave compatibility fixes
2021-09-16 18:25:00 +02:00
Sébastien Villemot
37467a9b9d
Merge branch 'octave_fixes' of git.dynare.org:wmutschl/dynare
...
Ref. !1926
2021-09-16 15:16:14 +02:00
Willi Mutschler
5199ea414b
Fix for testsuite on Octave AnScho_matched_moments.mod
2021-09-16 12:45:38 +02:00
Johannes Pfeifer
38a2dcaa8f
dynrbc_common.inc: increase maxit and check_ahead_periods
...
Required for Octave
2021-09-16 10:40:44 +02:00
Johannes Pfeifer
001971bda6
dynrbc_common.inc: provide file ending required in Octave
2021-09-16 08:56:44 +02:00
Sébastien Villemot
ff06b9ad10
More Octave compatibility fixes
2021-09-15 18:35:30 +02:00
Sébastien Villemot
4346903c65
Various Octave compatibility issues
...
Also improve on e42cf2e5b4
for the compatbilitity
with MATLAB < R2016a in occbin.write_regimes_to_xls.m.
2021-09-14 17:55:55 +02:00
Johannes Pfeifer
e7b1d4aca5
testsuite: Fix missing dependence
2021-09-11 11:29:18 +02:00
Johannes Pfeifer
334020fc46
evaluate_planner_objective.m: fix wrong timing in setting of shocks
2021-09-11 09:44:36 +02:00
Johannes Pfeifer
0d483ff85f
evaluate_planner_objective.m: Factorize setting of initial condition
...
also takes care of initially set shocks
2021-09-11 09:44:35 +02:00
NormannR
acdad93822
Fixing the regression in behavior in evaluate_planner_objective (Ref: #1680 )
...
- evaluate_planner_objective now returns conditional welfare depending on the initial value of the Lagrange multipliers when it is suitable to do so
- histval blocks are no longer ignored
2021-09-11 09:44:35 +02:00
Sébastien Villemot
e42cf2e5b4
Various MATLAB R2014a compatibility fixes
2021-09-08 14:15:49 +02:00
Sébastien Villemot
8d4f5fbd9b
Fix tests/deterministic_simulations/multiple_lead_lags/sim_endo_lead_lag.mod
...
A bug was introduced in 440a0e460b
, erroneously
changing the name of the baseline for a comparison.
The bug was left unnoticed with recent versions of MATLAB and on Octave,
because the first array in the ensuing comparison had zero line, and because of
automatic broadcasting, the error message was not triggered.
However, the bug was exposed on MATLAB < R2016b.
2021-09-08 14:15:49 +02:00
Sébastien Villemot
badb36d6d2
Fix typos introduced in c68e4801bd
2021-09-02 20:43:21 +02:00
Sébastien Villemot
c68e4801bd
Build system: add several test files to the source package
2021-09-02 17:14:07 +02:00
Johannes Pfeifer
cf6621187e
Add example for system prior
...
(@stepan removed trailing spaces)
2021-08-17 19:39:02 +02:00
Johannes Pfeifer
b8c76a96e3
block_kalman_filter: add integration tests
2021-08-17 14:26:58 +02:00
Johannes Pfeifer
bfd92e79a7
Occbin: udpate options
2021-08-16 11:37:53 +02:00
Stéphane Adjemian (Charybdis)
c00307c8cc
Fix encoding.
2021-08-16 11:23:13 +02:00
Stéphane Adjemian (Charybdis)
1c54eb21d2
Cosmetic change (remove trailing spaces).
2021-08-16 11:19:28 +02:00
Willi Mutschler
0d200f3b39
MoM: Fix AFVRR test cases due to 3c67ad
2021-08-16 10:58:35 +02:00
Willi Mutschler
f5ec70a06d
MoM: Refactor AnScho test case
...
Instead of checking everything in one mod file, this commit separates the checks into individual mod files that test:
- whether the translation from matched_moments works
- whether the duplicate moments are found
- whether GMM and SMM both work with different estimated_params blocks.
wip
2021-08-16 10:58:35 +02:00
Stéphane Adjemian (Ryûk)
bdc95dd1d0
Add unit tests (trust_region algorithm).
...
Using mex implementation (block_trust_region).
2021-07-23 19:44:16 +02:00
Stéphane Adjemian (Ryûk)
e8cc23d3af
Bug fixes (typos).
2021-07-23 19:44:16 +02:00
Stéphane Adjemian (Ryûk)
a905539f60
Add test functions for nonlinear solvers.
2021-07-23 19:44:16 +02:00
Sébastien Villemot
b34be496c5
Merge branch 'evaluate_planner' into 'master'
...
evaluate_planner_objective.m: correctly rely on lag/lead structure for perfect foresight
See merge request Dynare/dynare!1890
2021-07-23 14:01:22 +00:00
Johannes Pfeifer
440a0e460b
Storage of results: use subfolder
...
Ref. #1758
2021-07-23 14:12:17 +02:00
Johannes Pfeifer
e09d215964
evaluate_planner_objective.m: correctly rely on lag/lead structure for perfect foresight
...
Also cosmetic changes to indentation
2021-07-23 13:27:30 +02:00
Sébastien Villemot
3206ea9684
Merge branch 'evaluate_planner_objective' into 'master'
...
Streamline evaluate planner objective
See merge request Dynare/dynare!1887
2021-07-22 14:42:22 +00:00
Johannes Pfeifer
a517c1f1de
neo_growth_ramsey_k_order.mod: call evaluate_planner_objective
2021-07-22 15:20:30 +02:00
Sébastien Villemot
8b8f919a0f
Merge branch 'smoother2histval' into 'master'
...
Improvements for smoother2histval
See merge request Dynare/dynare!1886
2021-07-22 12:03:59 +00:00
Johannes Pfeifer
3fb41e075f
Matlab implementation of the consider_all_endogenous_and_auxiliary option
2021-07-22 13:12:27 +02:00
Sébastien Villemot
0e793faeb2
Merge branch 'pf_options' into 'master'
...
Particle filter: enable passing of option values and prepare for other samplers
Closes preprocessor#59
See merge request Dynare/dynare!1884
2021-07-22 09:50:10 +00:00
Johannes Pfeifer
80cad32068
Particle filter: enable passing of option values and prepare for other samplers
2021-07-21 23:00:32 +02:00
Stéphane Adjemian (Ryûk)
cd2ed823b6
Fix constant in VAR and PAC expectations...
...
When the VAR auxiliary model has a constant.
2021-07-21 18:02:11 +02:00
Stéphane Adjemian (Ryûk)
a69f68bb7c
Modify companion matrix if VAR model has a constant.
2021-07-21 18:02:04 +02:00
Sébastien Villemot
1045c442a9
Merge branch 'occbin_mean' of git.dynare.org:JohannesPfeifer/dynare
...
Ref. !1882
2021-07-21 16:42:00 +02:00
Johannes Pfeifer
944bf2b68e
occbin: work with non-demeaned data and in constraints
2021-07-21 13:42:38 +02:00
Johannes Pfeifer
ac3f04c2ff
borrcon*.mod: nostrict option is not needed anymore
2021-07-20 22:38:21 +02:00
Sébastien Villemot
c4e1d1e802
Occbin: new syntax for constructing multi-regime equations
...
Ref. #569
2021-07-20 18:19:19 +02:00
Sébastien Villemot
229282a1c4
Occbin: the +<basename>/occbin_difference.m file is now generated by the preprocessor
...
Some fields have also changed under M_.occbin.
Ref. #569
2021-07-20 12:35:15 +02:00
Marco Ratto
02072dde39
Add Occbin routines
...
Syntax is not yet finalized (see preprocessor#68).
Documentation still to be done.
Ref. #569
2021-07-16 17:20:11 +02:00
Stéphane Adjemian (Ryûk)
54f80e88d2
Add structural VAR as an auxiliary model for VAR based expectations and PAC expectations.
...
Ref. #1785
Just add option `structural` to the `var_model` command.
2021-07-16 10:25:18 +02:00
Stéphane Adjemian (Ryûk)
547b7aef45
Activate integration test for NLS estimation.
2021-07-15 17:39:41 +02:00
Stéphane Adjemian (Ryûk)
14bc82b287
Add single equation estimation by NLS.
...
Ref. #1798 .
See example in tests/estimation/example_nls.mod.
2021-07-15 16:55:49 +02:00
Stéphane Adjemian (Ryûk)
2b4572affd
Allow arbitrary nonzero mean exogenous variables in PAC equations.
...
Previously any nonzero mean exogenous variable had to be centered on
the growth rate (first difference) of the (PAC's LHS) endogenous
variable.
2021-07-11 17:06:53 +02:00
Sébastien Villemot
abd64c256e
New perfect_foresight_with_expectation_errors_{setup,solver} commands
...
These command solve the problem where agents think they know perfectly the
future (they behave as in perfect foresight), but make expectation errors.
Hence they can potentially be surprised in every period, and their expectations
about the future (incl. the final steady state) may change.
Currently the sequence of information sets needs to be passed through a CSV
file. Another interface may be added in the future.
The algorithm uses a sequence of (true) perfect foresight simulations (not
necessarily as many as there are periods, because if the information set does
not change between two periods, there is no need to do a new computation).
There are two possibilities for guess values:
— the default is to use the initial steady state for the simulation using the
first-period information set; then use previously simulated values as guess
values
— alternatively, with the terminal_steady_state_as_guess_value option, use the
terminal steady state as guess value for all future periods (this is actually
what the “true” perfect foresight solver does by default)
2021-07-09 18:16:46 +02:00
Stéphane Adjemian (Ryûk)
fe63082c42
Add lagged information set in VAR based expectations.
2021-07-06 23:06:46 +02:00
Johannes Pfeifer
f7a232061a
Remove unused options_-output
...
Prevents accidentally changing something
2021-06-22 18:17:11 +02:00
Sébastien Villemot
18a172bd45
Merge branch 'mcp_ramsey' of git.dynare.org:JohannesPfeifer/dynare
...
See merge request !1874
2021-06-16 17:41:40 +02:00