Commit Graph

15031 Commits (7dd2dd5e24a343fbeaf3522ea5e535c27d8b9f95)

Author SHA1 Message Date
Sébastien Villemot 39f47dc957
local_state_space_iteration_k MEX now uses the Fortran code (instead of the C++ code)
Closes: #1802
2022-02-04 11:49:46 +01:00
Sébastien Villemot 10a4ec53e9 Merge branch 'smm_field_name' into 'master'
mom.objective_function.m: fix field naming

See merge request Dynare/dynare!2000
2022-02-03 17:09:15 +00:00
Johannes Pfeifer 4ccc7c7262 mom.objective_function.m: fix field naming 2022-02-03 15:12:46 +01:00
Sébastien Villemot 2cb6988de6
Merge branch 'jscale' of git.dynare.org:JohannesPfeifer/dynare
Ref. !1999
2022-02-03 09:25:16 +01:00
Sébastien Villemot adb4007bda
Merge branch 'smm_lsqnonlin' of git.dynare.org:JohannesPfeifer/dynare
Ref. !1998
2022-02-03 09:24:37 +01:00
Johannes Pfeifer 217de5084c check_posterior_sampler_options: make global variable an input
Does not properly work for scale_file-option as caller has variable not global
2022-02-02 16:20:12 +01:00
Johannes Pfeifer 57eda3886d SMM: fix logic for check of vector output 2022-02-02 13:27:46 +01:00
Sébastien Villemot f8bf26571a Merge branch 'parallel_simul' into 'master'
Parallelizes local_state_space_iteration_fortran

See merge request Dynare/dynare!1987
2022-02-01 09:43:25 +00:00
NormannR 5f828e241f Parallelizes local_state_space_iteration_fortran 2022-01-31 18:44:48 +01:00
Sébastien Villemot 3f00b51950
Preprocessor update
– Fix matching of diff leads/lags in TCM and PAC models
– Fix a bug in variable mapping (M_.mapping) where some endogenous, appearing
  in a log() in a VAR or TCM, would not be mentioned
– Various refactorings related to auxiliary variables and TCM
2022-01-28 17:48:07 +01:00
Stéphane Adjemian (Charybdis) 1d916b1fe2
Bug fix.
[skip ci]
2022-01-27 11:07:09 +01:00
Stéphane Adjemian (Ryûk) fca5b99a03
Fix bug (missing condition).
The cherrypick was failing if the selected equations were not about a PAC equation (e.g. a VAR expectation
model), because the code was assuming the existence of the pac field in M_.
2022-01-27 10:49:19 +01:00
Sébastien Villemot df185cf19b Merge branch 'mom_field' into 'master'
mom: fix error message if matched_moments-block is missing

See merge request Dynare/dynare!1997
2022-01-26 14:39:24 +00:00
Sébastien Villemot 1c81c46e05
Preprocessor update
– Macroprocessor: under Windows, trim trailing slashes and backslashes in the
  value of “@#includepath” (Closes: Madysson/estimation-codes#11)
– Remove unused field M_.pac.(model_name).lhs
2022-01-25 16:58:31 +01:00
Johannes Pfeifer 4ef4b929d5 mom: fix error message if matched_moments-block is missing 2022-01-25 16:26:12 +01:00
Sébastien Villemot 9c79b0d73f
Octave: better workaround for bug 46282 2022-01-25 11:32:08 +01:00
Sébastien Villemot 79132ebe55
Build system: no longer use deprecated LFLAGS from mkoctfile
By the way, drop the -static-* flags from LDFLAGS in Windows mkoctfile stub. It
is no more needed and creates duplicates in the link command line (since those
flags are already in DL_LDFLAGS).
2022-01-24 12:52:24 +01:00
Stéphane Adjemian (Ryûk) f5f47cd834
Add new option last_simulation_period to initval_file command.
Also adjust the periods in Simulated_time_series (output of the perfect
foresight solver in the workspace). Note that this dseries object contains the
observations for the initial condition (M_.orig_maximum_lag observations) and
for the terminal condition (M_.orig_maximum_lead observations).

See #1838.

Fix testsuite (wrong file name)
2022-01-21 17:39:47 +01:00
Stéphane Adjemian (Charybdis) 38e1cd5d4e
Do not include auxiliaries in Simulated_time_series...
And add paths for the exogenous variables.
2022-01-21 16:50:42 +01:00
Sébastien Villemot 4ffa6abd4f
Preprocessor update
– Fix orig_lead_lag field for unary op auxiliary variables (Closes: #1837)
– In case of nested unary ops (e.g. log(log())), ensure that the definition of
  the external aux var references the internal aux var
– Fix orig_lead_lag field for diff lag aux vars
– Refactor the code that substitutes unary ops in model equations
– Refactor handling of var_expectation_model statements
– Add missing “time_shift” option to JSON output of var_expectation_model
– Add check to ensure that column indices in derivative matrices do not overflow
2022-01-21 14:56:55 +01:00
Sébastien Villemot 5a55e29561
Dynare++: minor fix to check for oversized problem
The maximum value of a signed integer is 2³¹−1, so the inequality test must not
be strict.
2022-01-21 14:55:37 +01:00
Sébastien Villemot 4fdb15b437
Testsuite: fix test under Octave
Enforce the positivity of standard errors in the maximum likelihood
estimations. Otherwise some stderr are estimated negative, and the Bayesian
estimation fail because the initial value is out of the bounds of the prior
shape.
2022-01-21 14:50:44 +01:00
Stéphane Adjemian (Ryûk) a08de9e661
Partial fix for #1837. 2022-01-19 09:20:22 +01:00
Sébastien Villemot 1edb8ba7ba Merge branch 'planner_check' into 'master'
evaluate_planner_objective.m: fix check for NaN moments

See merge request Dynare/dynare!1996
2022-01-18 16:45:06 +00:00
Sébastien Villemot 18060ffe4a
Testsuite: disable an estimation with mode_compute=5 that randomly fails under Octave
Similar to 3af51e3153.
2022-01-18 16:18:12 +01:00
Johannes Pfeifer b5d129de1f evaluate_planner_objective.m: fix check for NaN moments 2022-01-18 16:12:20 +01:00
Stéphane Adjemian (Charybdis) 1fd4904ccc
Fix evaluate routine if PAC's growth option is constant. 2022-01-17 16:56:58 +01:00
Stéphane Adjemian (Charybdis) 7f075ca109
Remove files that should not have been committed in e1d0ce2.
[skip ci]
2022-01-16 16:12:37 +01:00
Stéphane Adjemian (Charybdis) e1d0ce28d2
Remove aux variables from evaluate routine.
Auxiliary variables were still present in the growth neutrality correction. This
commit remove the auxiliaries, so that the user doesn't need to update the
database with the auxiliary variable definitions.

Also adds integration test.

TODO Check that it works with log unary op
TODO Complete tests by checking that the written evaluate routine works
2022-01-14 20:45:46 +01:00
Sébastien Villemot bab2b983c8 Merge branch 'occbin_shock' into 'master'
occbin: fix bug if there is only a surprise shock in the first period

See merge request Dynare/dynare!1995
2022-01-14 17:32:44 +00:00
Johannes Pfeifer 3b59253416 occbin: fix bug if there is only a surprise shock in the first period 2022-01-14 08:47:37 +01:00
Sébastien Villemot d8c99ff5a1 Merge branch 'liu_west' into 'master'
online auxiliary filter: add option to set termination condition of loop

See merge request Dynare/dynare!1994
2022-01-13 19:04:57 +00:00
Johannes Pfeifer 958dcf7b48 online auxiliary filter: add option to set termination condition of loop 2022-01-13 18:42:55 +01:00
Sébastien Villemot ca4601bd1c
dyntable: fix column width calculation in case of minus sign
By the same token, improve the logical expression for determining whether all
values are infinite (it was nevertheless giving the right result, because an
“all()” is implicit when an array of booleans is passed to an “if” statement).
2022-01-11 17:44:24 +01:00
Sébastien Villemot 6f83afbf42
Octave: fix some warning ids
Those warning ids were renamed in Octave 3.8.
2022-01-11 17:22:58 +01:00
Sébastien Villemot ba13b9cafb
macOS package: update brew formulas for GCC
The formulas are taken from commit afe7d6a73ec16b5479434bbe3613d4e7a3c28fac of
the homebrew-core repository.

The gcc.rb formula was modified by adding “cellar: :any” to all bottles (see
https://github.com/Homebrew/brew/blob/master/docs/Bottles.md).
2022-01-11 15:04:51 +01:00
Sébastien Villemot 95e8b5cd23
Windows package: bump dependencies 2022-01-11 14:43:03 +01:00
Sébastien Villemot 79d9bbd873
Preprocessor: clang compatibility and warning fixes
Closes: #1833
2022-01-10 10:41:11 +01:00
Sébastien Villemot 1070993fb1
NEWS.md: expand ECB acronym
[skip ci]
2022-01-07 16:52:14 +01:00
Sébastien Villemot 43d75d0e5c
Update Normann’s affiliation
[skip ci]
2022-01-07 16:12:02 +01:00
Sébastien Villemot 6de1488a8d Merge branch 'news' into 'master'
NEWS.md: cosmetic fixes

See merge request Dynare/dynare!1993
2022-01-07 14:06:22 +00:00
Johannes Pfeifer a6e899786c NEWS.md: cosmetic fixes 2022-01-07 12:26:38 +01:00
Sébastien Villemot c2d820c779
Release announcement for 5.0 2022-01-07 11:58:56 +01:00
Sébastien Villemot d65c0827ad
Manual: update Dynare WP reference for v5 manual 2022-01-07 11:12:44 +01:00
Sébastien Villemot 3f65574f15
Windows package: fix name of Control Panel menu in README.txt
Use the name as of Windows 11.

[skip ci]
2022-01-06 18:47:56 +01:00
Johannes Pfeifer b7d37f092f
manual: expansion of the semi-structural estimation section
[skip ci]
2022-01-06 17:59:21 +01:00
Sébastien Villemot 38d84c2a52 Merge branch 'master' into 'master'
bug fixes in varlist_indices heteroskedastic initialization and occbin smoother

See merge request Dynare/dynare!1992
2022-01-06 15:35:16 +00:00
Marco Ratto 9305cd1ef1 fixed header of occbin solver 2022-01-06 15:02:43 +01:00
Marco Ratto 06a7e6c7be bug fixes with occbin smoother: reset nested waitbars and fix names of outut structure of solver 2022-01-06 15:01:35 +01:00
Marco Ratto 8ac3f4b22b fixed bugs in initialization of heteroskedastic shocks and first_obs>1 and nobs< full dimension of dataset 2022-01-06 14:59:33 +01:00