Commit Graph

1501 Commits (7dd2dd5e24a343fbeaf3522ea5e535c27d8b9f95)

Author SHA1 Message Date
Sébastien Villemot 9a3c62e3d6
Add a list of former Dynare Team members 2019-11-29 17:53:06 +01:00
Sébastien Villemot d3802c2a34 Merge branch 'master' into 'master'
Save conditional forecast output in oo_. Closes: Dynare/dynare#1672

Closes #1672

See merge request Dynare/dynare!1675
2019-11-29 16:11:54 +00:00
Houtan Bastani d9f4987b59
doc: add index to html sidebar
closes #1669
2019-11-29 16:26:39 +01:00
Dóra Kocsis b9af92eb8a Save conditional forecast output in oo_. Closes: Dynare/dynare#1672 2019-11-29 15:25:05 +01:00
Houtan Bastani f2205ed4a1
add nograph option to plot_shock_decomposition
In updating the preprocessor, also update call to plot_icforecast
2019-11-29 15:17:41 +01:00
Houtan Bastani 5f1b9b3ee9
update reporting doc 2019-11-29 11:46:33 +01:00
Houtan Bastani 3ef8564279
reporting: add ability to make title page 2019-11-29 11:36:00 +01:00
Sébastien Villemot 52cb36d433
Preprocessor update
- new include_eqs and exclude_eqs command-line options
- new “forecast” option to “shock_decomposition”
- remove the “linear” option of “stoch_simul”
- forbid exogenous and exogenous deterministic variables in STEADY_STATE
  operator (#825)
2019-11-27 17:32:52 +01:00
Houtan Bastani b126d79918
introduce dynare options `exclude_eqs` and `include_eqs` 2019-11-27 15:53:14 +01:00
Sébastien Villemot 62146e14ab
Manual: do not hardcode version number, let it be automatically substituted 2019-11-26 17:05:35 +01:00
Sébastien Villemot 8065e9d439
Build system: by default, error out if some dependency is missing
In particular, if either MATLAB or Octave is missing, one needs to pass either
--disable-matlab or --disable-octave.

Moreover, several new configure flags have been introduced for disabling some
components:
--disable-doc
--disable-dynare++
--disable-mex-dynare++
--disable-mex-ms-sbvar
--disable-mex-kalman-steady-state
2019-11-26 13:53:42 +01:00
Sébastien Villemot a909bfd58c
Manual: fix typo 2019-11-26 12:59:20 +01:00
Sébastien Villemot 19cdafeada Merge branch 'manual_add' into 'master'
Add variable explanations to manual

Closes #637

See merge request Dynare/dynare!1669
2019-11-22 10:35:07 +00:00
Johannes Pfeifer b60d26a745 Add variable explanations to manual 2019-11-22 11:16:14 +01:00
Johannes Pfeifer b0272151c5 Shorten block in Tex-citation
Avoids arrows from linebreaks introduced by the software
2019-11-21 12:41:35 +01:00
Sébastien Villemot 9c6d2489ae
Manual: list the Dynare Team members in a single place
There were previously two lists of members, which were inconsistent.

By the way, add Sumudu to the list.
2019-11-21 10:51:08 +01:00
Sébastien Villemot 13c645e940
Preprocessor: improvement to balanced growth test (#1389), macro-processor bugfix for loops
Also includes various modernizations.
2019-11-14 18:04:07 +01:00
Sébastien Villemot cc9445e086
Manual: update various URLs
Some URLs have changed with the new Dynare website.

Also use HTTPS whenever possible.
2019-11-14 17:04:05 +01:00
Sébastien Villemot 8fa4c483f9
Manual: replace “GNU Octave” by “Octave”
Mentioning that Octave is a GNU project is pointless and maybe even confusing
for users.
2019-11-14 16:57:33 +01:00
Sébastien Villemot 1d01443e6f
Add Dóra to the list of Dynare Team members 2019-11-14 14:21:54 +01:00
Sébastien Villemot 56e7144b91
Merge remote-tracking branch 'community/master' into enterprise 2019-10-23 16:30:29 +02:00
Stéphane Adjemian (Charybdis) 701e6da602 Updated reference manual according to 682b08a. 2019-10-16 21:37:36 +02:00
Stéphane Adjemian (Charybdis) 1211d4c01e Updated dseries submodule (changed merge behaviour). 2019-10-16 20:58:49 +02:00
Sébastien Villemot 76cf92578b
Manual: document silent installation on Windows
Closes #1478
2019-10-14 12:05:15 +02:00
Sébastien Villemot 0c6ad30b7b
Manual: update installation procedure for GNU/Linux
In particular, mention the Linux Mint and Arch Linux packages.
2019-10-14 12:05:14 +02:00
Sébastien Villemot b3d1e8412b
Add support for mode_compute=1 under Octave
Since version 1.6, the optim Forge package has an implementation of fmincon.
Hence we can now use mode_compute=1 under Octave.

This commit also adds tests/optimizers/fs2000_1.mod to the testsuite. It will
be skipped under MATLAB if the optimization toolbox is not there, or under
Octave if optim ≥ 1.6 is not there.
2019-10-08 18:38:15 +02:00
Sébastien Villemot 6c1dcae506
Manual: fix links to Octave Forge website 2019-10-08 18:38:15 +02:00
Houtan Bastani 0a402d254b
fix yet another typo in 119595fe72 #1628
[skip ci]
2019-10-08 12:46:10 +02:00
Houtan Bastani ba04b3ccca
fix typos in 119595fe72 #1628
[skip ci]
2019-10-08 12:38:01 +02:00
Houtan Bastani 119595fe72
document options to `dynare`. closes #1628 2019-10-08 12:29:04 +02:00
Houtan Bastani afcdf46e80
capitalize Cepremap and Matlab, uncapitalize DYNARE 2019-10-02 14:09:21 +02:00
Dóra Linda Kocsis 6ece46ce65 doc: grammar fix 2019-10-01 12:13:49 +02:00
Houtan Bastani 6bc0672ddf
doc: aesthetic fix 2019-09-30 12:31:45 +02:00
Houtan Bastani 715ae0ce39
preprocessor: submodule update 2019-09-30 12:28:29 +02:00
Sébastien Villemot 7b053c7e92
Option graph_format=pdf now works under Octave
Also copy the same Octave-specific code as for EPS printing (added in
84f0d6c7da to fix problems with hybrid
Unix/Windows parallel clusters).
2019-09-25 16:06:38 +02:00
Sébastien Villemot d732075662
Manual: fix typo and formatting
[skip ci]
2019-09-20 14:33:59 +02:00
Houtan Bastani 6ddf87aa92
stoch_simul: save var_list in oo_. closes #1646 2019-09-12 15:02:18 +02:00
Houtan Bastani 7712a02f02
add print and noprint option to perfect_foresight_solver. closes #1647 2019-09-12 14:50:14 +02:00
Houtan Bastani 45af7e4a7d
doc: footnotes come after periods 2019-09-06 10:48:56 +02:00
Houtan Bastani 31f9fe6646
doc: note on line endings in .mod files. closes preprocessor#14 2019-09-06 10:48:55 +02:00
Houtan Bastani d51208f298
submodule update: reporting 2019-09-05 11:08:34 +02:00
Houtan Bastani 6b9a86b039
doc: include example of compiled report 2019-09-02 12:26:16 +02:00
Houtan Bastani fa72933027
doc: update for changes in reporting submodule introduced in cf1e88c4a1 2019-09-02 11:48:53 +02:00
Houtan Bastani 87fd09081b
doc: fix typos 2019-08-29 15:53:18 +02:00
Houtan Bastani 489634b648
doc: internal link doesn’t work when broken across two lines 2019-08-28 18:24:18 +02:00
Houtan Bastani 3e7921d61d
doc: add missing value for `json` option 2019-08-28 11:08:25 +02:00
Houtan Bastani 1e8b00babf
doc: remove warning from compilation by using anonymous reference instead (two underscores instead of one) 2019-08-27 12:37:56 +02:00
Houtan Bastani 51d2f71514
submodule update: preprocessor + doc 2019-08-27 12:23:05 +02:00
Houtan Bastani 0e8bb324ca
doc: remove line as table of contents appear before this 2019-08-27 10:45:36 +02:00
Houtan Bastani 5994321cd7
preprocessor: submodule update 2019-08-19 16:58:14 +02:00
Houtan Bastani b6cbfb56d1
preprocessor: submodule update and doc update 2019-08-08 10:27:56 -04:00
Houtan Bastani b33900b86c
preprocessor: submodule update and doc update 2019-08-07 11:11:24 -04:00
Houtan Bastani 7efacbc478
doc: macro processor integer range with user-defined increment 2019-08-06 17:31:00 -04:00
Houtan Bastani a59732cd69
doc: new built-in function cbrt 2019-08-06 17:26:51 -04:00
Houtan Bastani 885a206400
preprocessor: submodule update and doc update 2019-08-06 17:08:45 -04:00
Houtan Bastani 452dc3ceb5
preprocessor: submodule update and doc update 2019-08-06 12:11:14 -04:00
Sébastien Villemot 512f37ae85
Update manual following the move of LaTeX files generated by preprocessor 2019-07-11 17:40:28 +02:00
Sébastien Villemot febf248f17
Manual, macro-processor: fix explanation for interaction between brackets and colon notation
Ref preprocessor#6

[skip ci]
2019-07-03 17:45:23 +02:00
Sébastien Villemot 5d00a4756b
Manual, macro-processor: advertise “log” rather than “ln” 2019-07-03 17:35:47 +02:00
Houtan Bastani 123049cf18
doc: add comment about brackets around array created from colon operator. closes preprocessor#6 2019-07-01 14:36:55 +02:00
Houtan Bastani f2b61b3e9e
submodule update: preprocessor; doc: introduce comprehensions 2019-06-26 15:09:55 +02:00
Houtan Bastani 8745880bde
doc: small changes 2019-06-26 11:01:39 +02:00
Houtan Bastani 98c2152ec5
doc: update macro processor section following rewrite 2019-06-25 10:09:09 +02:00
Houtan Bastani ff5def8a00
doc: fix typo 2019-06-21 17:26:10 +02:00
Sébastien Villemot a2ce1a5607
Manual: various fixes
Thanks to Aurélien Poissonnier for his feedback.
2019-05-16 16:55:23 +02:00
Sébastien Villemot 804a11842c
Manual: fix HTML prerequisites in Makefile 2019-05-16 16:55:23 +02:00
Sébastien Villemot 5956c767d3
Stop claiming that we support Windows XP and Vista 2019-05-13 12:29:11 +02:00
Stéphane Adjemian (Charybdis) e5bc8ff1de Document behaviour of lmmcp option wrt transformations of equation.
Closes #1606.

[skip-ci]
2019-04-26 20:16:54 +02:00
Stéphane Adjemian (Charybdis) 72afafe3d4 Fixed hyperlink for solve_algo option.
[skip-ci]
2019-04-26 16:38:50 +02:00
Sébastien Villemot f71006329d
Manual: fix year of publication of Andreasen et al. (2018)
Ref #1643
2019-04-17 15:20:22 +02:00
Sébastien Villemot 38b588d7c0
Manual: adapt for k-order
Ref #217
2019-04-16 12:29:16 +02:00
Sébastien Villemot a8a53804e7
Fix typo 2019-04-09 14:38:08 +02:00
Houtan Bastani a04f5b7ae3
doc: fix typos in manual 2019-04-08 15:45:12 +02:00
Houtan Bastani 01ce90afcd
doc: fix typo in option default value 2019-04-08 12:05:03 +02:00
Houtan Bastani d0b1e0a721
doc: fix typos 2019-04-03 14:35:39 +02:00
Houtan Bastani 57f97b1a07
doc: fix parameter_set option 2019-04-03 14:35:39 +02:00
Houtan Bastani 87cc694abb
doc: fix page overrun 2019-03-28 16:34:09 +01:00
Houtan Bastani d9343b4458
doc: wrap equation to newline 2019-03-25 11:12:32 +01:00
Sébastien Villemot 641ada2a78
Add Willi Mustchler to Dynare Team 2019-03-20 16:56:29 +01:00
Willi Mutschler 666c9b8003 Improvement of Identification Toolbox
# Improvements
  * heavily commented (also auxiliary functions) and changed notation to make all the functions (hopefully) more readable and understandable, and hence, easier to debug
  * added identification criteria of Komunjer and Ng (2011, Econometrica) and Qu and Tkachenko (2012, Quantitative Economics)
  * tests can be turned of, i.e. nostrength disables identification strenght, noreducedform disables reduced form criteria, nomoments disables moment criteria, nospectrum disables spectrum criteria, nominimal disables minimal system criteria
  * all kronflags (analytic_derivation_mode) actually work in all functions
  * added functionality when there is correlation in Sigma_e and when one wants to consider corr parameters of exogenous shocks. Previously, (1) corr parameters were not allowed when calling identification and (2) when Sigma_e was not diagonal then the toolbox relied on numerical derviatives only (kronflag=-1). Now it is possible to handle both identification of corr parameters as well as correct analytical derivatives when Sigma_e is not diagonal with all possible kronflag values (-1|-2|0|1)
  * all plots and results are stored in the same folder named identification (previously there was another one with a capital I (Identification))

# Needed changes to preprocessor
  * add as field to options_ident:

    - tex (same as in options_)
    - nostrength (to turn off identification strength)
    - noreducedform (to turn off reduced form criteria)
    - nomoments (to turn off Iskrev's moment criteria)
    - nominimal (to turn off Komunjer and Ng's minimal system criteria)
    - nospectrum (to turn off Qu and Tkachenko's spectrum criteria)

  * add to options_ident:
    - normalize_jacobians (whether to normalize Jacobians or not)
    - grid_nbr (integer used to discretize the interval [-pi;pi]
    - tol_rank (tolerance level to compute ranks)
    - tol_deriv (tolerance level to select nonzero columns in derivatives)
    - tol_sv (tolerance level to select nonzero singular values)
    - ChecksViaSubsets (for debugging purposes, uses different function to find problematic parameter sets)
    - max_dim_subsets_groups (for debugging purposes, used for ChecksViaSubsets)

# Further Suggestions
  * Rename getH.m into getParamsDerivReducedForm.m to make the purpose of this function evident
  * Rename getJJ.m into getIdentificationJacobians.m to make the purpose of this function evident
  * Rename thet2tau.m into IdentificationNumericalObjectiveFunction.m to make the purpose of this function evident
  * dYss, d2Yss, dg1 should also include derivatives wrt to stderr and corr parameters (even though these are just 0), as in other functions (getJJ, dynare_estimation) we always add these manually
  * I am pretty sure the current handling in getH.m of dYss and d2Yss is not correct in the case of nonstationary variables (if g2static is nonempty), I added a warning message, as I am not sure whether this is ever used
  * It would be straigthforward to also include stderr and corr parameters of measurement errors (these is not possible right now). Should I do this?
  * Computations of d2A and d2Om need to be checked, as the differences between computing these with analytically (kronflag=0|1) or numerically kronflag=-1|-2 is really large for the example model of AnSchorfheide.
  * I am not sure how to best normalize Qu and Tkachenko's G matrix. It looks (and in the Gaussian case actually is) very similar to the Ahess matrix. So I used the same normalization rule as for the Ahess matrix. See comments in identification_checks.m. Anyone has a better idea? Please also check the models in test/identification/cgg for differences.
  * parts that are unclear to me are marked by a [@wmutschl] tag
  * the run time of tests/identification/as2007.mod increases from 0h01m27s to 0h03m46s (as Qu and Tkachenko's G matrix takes a little while to compute). One could decrease prior_mc=250 to prior_mc=150.

# New functions
  * commutation: Returns Magnus and Neudecker's commutation matrix that solves k*vec(X)=vec(X')
  * DerivABCD: Derivative of X(p)=A(p)*B(p)*C(p)*D(p) w.r.t to p as in Magnus and Neudecker (1999), p. 175
  * DeriveMinimalState: Derives minimal state space system by checking observability and controllability of all possible combinations of variables
  * duplication: Duplication Matrix (and its Moore Penrose Inverse) as defined by Magnus and Neudecker (2002), p.49, Dp*vec(X) = X
  * identification_checks_via_subsets: finds problematic parameters in a bruteforce fashion: It computes the rank of the Jacobians for all possible parameter combinations, if the rank condition is not fullfilled, these parameter sets are flagged as non-identifiable. For debugging purposes only, as the current identification_checks.m (based on nullspace and multicorrelation coefficients) is much faster

# Detailed changes in getH.m
  * functionality improvements

    - heavily commented (also auxiliary functions) and changed notation of several variables to make this function (hopefully) more readable and understandable, and hence, easier to debug
    - added functionality when Sigma_e is not diagonal and/or when one wants to consider corr parameters of exogenous shocks independent of the value of kronflag
    - fixed function for all values of kronflag, i.e. kronflag=-2|-1|0|1. Previosuly, only kronflag=-2|0 were working, all other kronflags ran into errors (-1 was actually never called , but was dealt with in getJJ.m). I assume kronflag=-1|1 was used only for debugging issues, but still was not working. I fixed this now, the function now works out-of-the-box for all kronflag values.
    - I also outlined and documented what each kronflag does and point to the corresponding equations in Ratto and Iskrev (2012) or Iskrev (2010,Appendix A)
    - the function additionally outputs the Jacobians of B and Sig, which are needed for Qu and Tkachenko (2012) and Komunjer and Ng (2011)'s criteria
    - Moved computation of Jacobian of tau=[ys;vec(A);vech(B * M_.Sigma_e * B')] into getJJ.m to have all Jacobians which are needed for identification in one place. That is, getH.m computes first and second parameter derivatives of (1) reduced-form solution, (2) steady state and (3) Jacobian of dynamic model, whereas getJJ computes and sets up all Jacobians which are used for identification purposes. Therefore, getH might be useful more generally for other purposes than identification. For instance, when doing a GMM estimation, we could use this function to compute analytically the gradient of the moments and provide this to the optimizer used in a GMM context.

  * output arguments

    - renamed `H` (Jacobian wrt parameters of tau=[ys;vec(A);vech(B * M_.Sigma_e * B')] into dTAU, (as H is very confusing, e.g. in other functions it is a Hessian, or Hss and H2ss is also just the steady state. Morevoer, tau is used in Iskrev(2010) for the steady state and reduced-form solution)
    - renamed `Hss` (Jacobian of steady state wrt model parameters only) into `dYss` (as H is very confusing here, see above)
    - renamed `H2ss` (Hessian wrt model parameters only of ys) into d2Yss (as H is very confusing, see above)
    - renamed `gp` into `dg1`, where g1 corresponds to the same variable as in dynamic model files. Note that in params_deriv files gp lacks the contribution of Jacobian wrt steady state and dg1 includes this using the implicit function theorem as outlined in Ratto and Iskrev (2012). Hence, dg1 denotes Jacobian wrt to parameters. It is useful and important to distinguish gp and dg1.
    - added `dB` (Jacobian wrt parameters of solution matrix B) needed for Qu and Tkachenko (2012) as well as Komunjer and Ng (2011)
    - added `dSig` (Jacobian wrt parameters of M_.Sigma_e) needed for Qu and Tkachenko (2012) as well as Komunjer and Ng (2011)

  * input arguments

    - renamed `indx` (index of model parameters to be checked) into `indpmodel`, the p makes it more clear that this is a parameter index
    - renamed `indexo` (index of stderr parameters) into `indpstderr`, the p makes it more clear that this is a parameter index
    - renamed `iv` (index of variables to consider) into `indvar`
    - Renamed `M_` to `M`, `estim_params_` to `estim_params`, `options_` to `options` , `oo_` to `oo` to visualize that these are local and not global variables
    - included `indpcorr` a matrix of indices for corr parameters to be checked

  * misc

    - distinguished clearly between variables in DR or in declaration order without overwriting this in between
    - added which functions call getH.m
    - updated copyright to 2010-2019

# Detailed changes in getJJ.m

  * functionality improvements

    - heavily commented and changed notation of several variables to make this function (hopefully) more readable and understandable, and hence, easier to debug
    - added functionality when Sigma_e is not diagonal and/or when one wants to consider corr parameters of exogenous shocks independent of the value of kronflag
    - tidied the function up, such that it sets up all Jacobians which are needed for identification, i.e. Iskrev's J matrix, Qu and Tkachenko (2012)'s G matrix, Komunjer and Ng (2011)'s D matrix, reduced-form solution (dTAU), linear rational expectation (i.e. Jacobian of steady state and dynamic model equations dLRE).
    - dTAU is now constructed in getJJ instead of in getH (see comment above in getH.m)
    - works for all kronflags, i.e. for numerical derivatives (-1 and -2) as well as for analytical derivatives based on kronecker products (1) or Sylvester Equations (0)
    - added functionality for stderr and corr parameters independent of the value of kronflag (previously this was only possible with numerical derivatives, now it works for all kronflags)
    - finds minimal state vector needed for Komunjer and Ng (2011)'s criteria (function `DeriveMinimalState.m`)
    - moved computations from kronflag=-1 (which were used in case of corr in shock block) into getH.m, so that getJJ now only sets up the Jacobians for LRE, Iskrev's J, Qu and Tkachenko's G and Komunjer and Ng's D, whereas getH computes the Jacobians (wrt parameters) of A, B, Sigma_e, Om, Yss and g1. This should simplify debugging as everything is now in one place and not in two

  * output arguments

    - renamed `JJ` into `J`
    - renamed `H` into `dTAU` (as H is very confusing, e.g. in other functions it is a Hessian, or Hss and H2ss is also just the steady state. Morevoer, tau is used in Iskrev(2010) for the steady state and reduced-form solution)
    - renamed `gp` into `dLRE`, as this corresponds to Jacobian of LRE=[Yss;vec(g1)] where g1 is the Jacobian of the dynamic model equations.
    - renamed `gam` into `MOMENTS`
    - added `G` for Qu and Tkachenko's Jacobian matrix G
    - added `D` for Komunjer and Ng's Jacobian matrix D
    - reordered output arguments

  * input arguments

    - added `options_ident` as input argument; hence, `kronflag`, `nlags` and `useautocorr` are removed from input arguments as these are available in options_ident
    - Renamed `M_` to `M`, `estim_params_` to `estim_params`, `options_` to `options` , `oo_` to `oo` to visualize that these are local and not global variables
    - renamed `indx` (index of model parameters to be checked) into `indpmodel`, the p makes it more clear that this is a parameter index
    - renamed `indexo` (index of stderr parameters) into `indpstderr`, the p makes it more clear that this is a parameter index
    - added `indpcorr` (index of corr parameters)
    - renamed `mf` (index of VAROBS variables) into `indvobs`

  * misc

    - updated copyright to 2010-2019
    - provided some comments on several ways to compute the spectral density matrix
    - added which functions call getJJ.m

# Detailed changes in thet2tau.m

  * functionality improvements

    - heavily commented and changed notation of several variables to make this function (hopefully) more readable and understandable, and hence, easier to debug
    - Added output option to compute spectral density matrix
    - Reorded and added some output option.
    - Instead of Om, `outputflag=0` computes B and Sigma_e, which are needed for Qu and Tkachenko as well as Komunjer and Ng. The Jacobian of Om is then computed in getJJ or getH from Jacobian of B and Sigma_e. Due to some testing with An and Schorfheide model this seems to be more accurate when I compare these with the analytical derivatives. The old behavior (computing Om directly) can be restored by setting `outputflag=-2`.
    - In total this function can now be used to compute numerically Jacobians of Yss, A, B, Sigma_e, Om, g1, autocovariogram and spectral density
    - Clearly distinguished (and commented) on the different outputs of this function.
    - Works for all types of parameters, ie. model, stderr and corr.
    - This function can now also be used when there is no estimated_params block. Previously, there was an error when there was no estimated_params block when calling `set_all_parameters` as this requires some information in `estim_params`. I fixed this by providing a temporary local estim_parms structure with the necessary information on model, stderr and corr parameters. In this way, this can be easily extended to also include stderr and corr parameters of measurement errors.

  * output arguments

    - renamed `tau` into `out`, as this function computes *very* different things (and not only tau) depending on an input flag

  * input arguments

    - renamed `flagmoments` into `outputflag` as this function does not only compute moments but many other things (see above)
    - renamed `indx` (index of model parameters to be checked) into `indpmodel`, the p makes it more clear that this is a parameter index
    - renamed `indexo` (index of stderr parameters) into `indpstderr`, the p makes it more clear that this is a parameter index
    - added `indpcorr` (index of corr parameters)
    - merged `mf` (index of observable variables) and `iv` (index of variables to consider) into a single index `indvar` as there is no need to distinguish between these two indices (they were never used in combination)
    - added `grid_nbr` (number of grid points to compute spectral density)
    - reordered input arguments

  * misc

    - added which functions call thet2tau
    - updated copyright to 2010-2019

# Detailed changes in identification_analysis.m

  * functionality improvements

    - heavily commented and changed notation of several variables to make this function (hopefully) more readable and understandable, and hence, easier to debug
    - renamed `dg1` to `dLRE`, renamed `vecg1` to `lre`, renamed `H` to `dTAU` (see comments above)
    - added option `numzerotolderiv` with default `1.e-8` used for non-zero derivatives
    - added option `numzerotolrank` with default `1.e-10` used for rank computations
    - added theoretical identification analysis based on Komunjer and Ng (2011)'s method, i.e. steady state and observational equivalent spectral densities within a minimal system
    - added theoretical identification analysis based on Qu and Tkachenko (2012)'s method, i.e. steady state and spectral density
    - restructured the code slightly to combined chunks of code that belong together on the one hand, and on the other hand to differentiate between the different criteria
    - added call to new function `identification_checks_via_subsets.m` (see above for the definition of the functionality) to perform identification checks differently as find it more intuitive and (most likely) more precise.

  * input arguments

    - removed `bounds` and `dataset_` as input argument, because these are not needed
    - moved `name_tex` and `tittxt` into `options_ident` as these two inputs are only used in `ident_bruteforce.m` and already set in `dynare_identification.m`

  * output arguments

    - added `ide_spectrum` structure for Qu and Tkachenko's criteria based on the spectral density
    - added `ide_minimal` structure for Komunjer and Ng's criteria based on the minimal state space system
    - reordered output arguments

  * misc

    - added which functions call identification_analysis
    - updated copyright to 2010-2019

# Detailed changes in dynare_identification.m

  * functionality improvements

    - heavily commented and changed notation of several variables to make this function (hopefully) more readable and understandable, and hence, easier to debug
    - included more options (and default values) which can be set by the user, i.e. nostrength, nomoments, nominimal, nospectrum, tex, tol_rank, tol_deriv, tol_sv, grid_nbr, ChecksViaSubsets, max_dim_subsets_group
    - instead of turning warnings globally off, I specified the relevant warnings for matlab and octave, respectively, off
    - improved the warning messages slightly
    - restructured chunks of code with respect to different criteria

  * output arguments

    - renamed arguments: TAU to STO_TAU, GAM to STO_MOMENTS, LRE to STO_LRE, gp to STO_si_dLRE, H to STO_si_dTAU, JJ to STO_si_J
    - added arguments: STO_G and STO_D for the two new criteria

  * misc

    - added which functions call dynare_identification
    - updated copyright to 2010-2019

# Detailed changes in identification_checks.m

  * functionality improvements

    - added checks for Komunjer and Ng's D matrix. Note that the Jacobian D=[D_par D_rest], where D_par depends on the parameters and D_rest does not. So this is taken into account.
    - added checks for Qu and Tkachenko's G matrix. Note that the Jacobian G is a Gram matrix with dimension nparam x nparam, similar to Ahess. So this is taken into account. I am, however, not sure whether this is correct regarding the multicorrelation and pairwise correlation coefficients. Please double check.
    - the rank is now actually computed at the prespecified tolerance level (and not Matlab's default level), so this is in accordance to the further analysis of problematic parameter sets

  * output arguments

    - added the rank to output arguments which is later also displayed
    - replaced the J or JJ part in the variable names with X as this function is used for all sorts of Jacobians, not only Iskrev's J

  * input arguments

    - renamed hess_flag to output_flag (and clearly outlined what each value does)
    - added tol_rank and tol_sv as input arguments, such that the tolerance levels can be changed by the user and not preimplemented in this function
    - added param_nbr which is needed for Komunjer and Ng's D matrix

  * misc

    - updated copyright to 2010-2019

# Detailed changes in ident_bruteforce.m

  * functionality improvements

    - the output directory was set with a capital I, i.e. Identification, whereas in all other functions we rely on lower case i, i.e. identification. I changed this to lower-cases, so everything is now saved in the same folder.
    - changed displayed strings to be more precise with the corresponding papers and notation

  * input arguments

    - renamed `n` to `max_dim_cova_group` to name options the same across functions
    - renamed `pnames_TeX` to `name_tex` to name options the same across functions
    - added `tol_deriv` as tolerance level which can be changed by the user

  * misc

    - Added some comments
    - updated copyright to 2010-2019

# Detailed changes in disp_identification.m

  * functionality improvements

    - this function displays the same output for different Jacobians, hence I put the common code into a for loop. This should simplify changing the output that is printed to the console. Previously the code was simply repeated for the different criteria and only the strings changed.
    - some settings relevant for the computation are now printed as a summary to the console
    - the tolerance level, rank and required rank are always displayed on the command line to see how many problematic sets there are and which tolerance level was used
    - the function is also able to display problematic parameters computed by the new function `identification_checks_via_subsets.m` which is only used for debugging.

  * input arguments

    - added `idespectrum` structure for analysis based on Qu and Tkachenko
    - added `ideminimal` structure for analysis based on Komunjer and Ng
    - added `options_ident` to have all necessary settings in a structure

  * misc

    - Added some comments
    - Removed uncommented code that was not used as this was redundant and probably an artifact of the original programming?!
    - updated copyright to 2010-2019

# Detailed changes in dsge_likelihood.m

  * misc

    - adjusted call of getH due to changes of input and output arguments
    - updated copyright to 2010-2019

# Detailed changes in cosn.m

  * misc

    - commented functionality, input and output arguments of this function
    - updated copyright to 2010-2019
2019-03-20 15:44:54 +00:00
Sébastien Villemot cda0b3192a
Add missing Python files in tarball 2019-02-25 17:46:40 +01:00
Sébastien Villemot ae230fcd92
Really remove the old Texinfo manual 2019-02-25 15:28:23 +01:00
Sébastien Villemot c8a234b653
Remove obsolete .gitignore 2019-02-21 17:35:26 +01:00
Sébastien Villemot 8c906a6e7e
Add files missing in e5f938a8e 2019-02-21 17:06:47 +01:00
Sébastien Villemot 60054af97e
Manual: the minimal requirement is now the same on macOS as on other platforms 2019-02-21 17:02:51 +01:00
Sébastien Villemot 6df3b5aa31
Manual: recommend "apt" instead of "apt-get" under Debian 2019-02-21 17:02:18 +01:00
Sébastien Villemot e5f938a8e5
Integrate new reference manual
- integrate with autoconf/automake, so that "make html pdf" now build the
  manual
- remove the old texinfo manual
- the PDF manual is now called dynare-manual.pdf (Closes #1543)
- add a Gitlab CI job that updates the online unstable manual under
  www.dynare.org/manual-unstable/
2019-02-21 16:58:18 +01:00
Stéphane Adjemian (Charybdis) 6e747b5dba
Merge remote-tracking branch 'reference-manual/merge-in-main-dynare-Repo
[skip ci]
2019-02-19 11:39:11 +01:00
Stéphane Adjemian (Charybdis) 35b848d766
Moved all files under doc/manual subfolder. 2019-02-19 11:32:09 +01:00
Sébastien Villemot 1f84bc051d
Under Octave, the "statistics" Forge package is now a requirement
The gamrnd fallback under matlab/missing/stats/ does not work under Octave
because the +gamrnd/ folder is not accessible (it has the same name as the
function, which does not work under Octave).

Instead of fixing this, rather make the statistics toolbox a requirement, since
anyways it is very easy to obtain under Octave.

Accordingly:
- do not try to run the unit tests of matlab/missing/stats/ under Octave
- merge the matlab/missing/stats-matlab/ into matlab/missing/stats/, since this
  directory is now MATLAB-only.

Also:
- move matlab/distributions/+gamrnd/ under matlab/missing/stats/ for
  consistency
- in the manual: remove obsolete link to Octave downloads on the Dynare
  website; update URL of Octave Forge

Closes #1638
2019-02-18 17:41:10 +01:00
Johannes Pfeifer 20b51b3c08 Document treatment of several Matlab statements in one line
Related to #1637
2019-02-05 11:51:48 +01:00
Houtan Bastani 266d470668
document rounding method in reporting 2019-01-28 15:27:27 +01:00
Wenddy SHu 163c904b49 Update dynare.texi 2019-01-28 01:38:10 +00:00
Sébastien Villemot b20a9536b8
Fix Texinfo error introduced in previous commit 2019-01-02 16:45:51 +01:00
Sébastien Villemot 7e9669c71a
Doc: the preprocessor no longer accepts a mod-file as a string as 1st argument 2019-01-02 16:40:35 +01:00
Houtan Bastani 4aa4b7f25f
update year 2019-01-02 13:37:33 +01:00
Houtan Bastani 123ba261b4
doc: fix typo 2018-12-31 11:36:03 +01:00
Johannes Pfeifer 6460a3a1e5
Document prior moments(distribution) option 2018-12-15 19:23:06 +01:00
Johannes Pfeifer 463e42a18f
Fix description of oo_.conditional_variance_decomposition 2018-12-15 19:23:06 +01:00
Johannes Pfeifer 2ba9a8e10b
Prevent inconsistent specification in estim_params-block
Also documents the behavior
2018-12-15 18:49:53 +01:00
Sébastien Villemot 7b0ef3d080 Merge branch 'doc_references' into 'master'
Cosmetic fixes to reference in manual

See merge request Dynare/dynare!1628
2018-11-14 11:33:49 +00:00
Johannes Pfeifer bb1642b5b8 Cosmetic fixes to reference in manual 2018-11-14 12:15:59 +01:00
Sébastien Villemot 736d43c4e6
Bump minimal MATLAB version requirement to 7.9 (R2009b) 2018-11-13 15:59:16 +01:00
Houtan Bastani 2dcaff4f16
preprocessor: submodule update 2018-11-07 15:57:22 +01:00
Houtan Bastani e37549461b
doc: update mexext, matlabroot options 2018-11-06 16:41:35 +01:00
Sébastien Villemot 096936be9c
The preprocessor now compiles the MEX when use_dll is specified
Update documentation accordingly (except on macOS where the solution has not
yet been implemented).

Also include MinGW in the Windows installer.
2018-10-29 14:41:34 +01:00
Stéphane Adjemian (Charybdis) 6a847931dc
Dynare computes the excess kurtosis.
See https://forum.dynare.org/t/simulated-kurtosis-reported-incorrectly/12534
2018-10-03 23:22:33 +02:00
Michel Juillard 3ad654b9b8
Allowing for different number of periods in conditional_forecast_path.
Updated preprocessor submodule.
2018-09-27 18:58:24 +02:00
Sébastien Villemot 7b834bef29 Update URLs for the move to GitLab 2018-09-10 11:55:04 +02:00
Sébastien Villemot d03cc56587 solve_algo=7 and stack_solve_algo=2 are now allowed under Octave
The gmres() function has been implemented (actually since Octave 3.4.1!).
2018-08-02 15:20:39 +02:00
Houtan Bastani 01d5a13082 preprocessor: submodule update: on-the-fly variable declaration in equation tags 2018-07-09 15:36:49 +02:00
Houtan Bastani cfee93b080 preprocessor: submodule update: macro functions 2018-07-09 15:36:49 +02:00
Houtan Bastani ec3e32a12f update copyright year for doc 2018-07-09 15:36:49 +02:00
Sébastien Villemot a1b8bd39b2 Move the location of various generated files on the filesystem
- M and MEX files are now under +${MODELNAME}/
- bytecode, C source and JSON now under ${MODELNAME}/model/
2018-06-27 17:03:39 +02:00
Johannes Pfeifer fa363f7e4b Correct name in manual 2018-06-07 23:15:24 +02:00
Sébastien Villemot 5166b43add Fix case 2018-05-17 12:06:07 +02:00
Stéphane Adjemian(Charybdis) f53be721c1 Added new option mh_tune_jscale.
Works only with the Random Walk Metropolis Hastings algorithm.

Closes #1598
2018-05-16 16:37:22 +02:00
Sébastien Villemot a3301777c9 Update my email and affiliation 2018-05-16 10:23:30 +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
Adrian Bunk 9e06eb8e65 Set the input encoding in parallel.tex
This fixes compilation with TeX Live 2018.
2018-04-23 17:49:15 +02:00
Houtan Bastani fdb72bb633 doc: fix warnings 2018-03-20 16:48:57 +01:00
Houtan Bastani 7f3120eb2e preprocessor: submodule update; introduction of on-the-fly variable declaration 2018-03-20 16:43:06 +01:00
Houtan Bastani 5d1a132374 move preprocessor and macroprocessor documentation to preprocessor submodule 2018-02-19 15:10:07 +01:00
Marco Ratto e45acc11cc fix error in documentation of presample in realtime shock decomposition 2018-02-01 19:15:07 +01:00
Johannes Pfeifer dde1acd18d Make fast_realtime accept observation as input 2018-01-26 18:23:49 +01:00
Johannes Pfeifer 911ca2a54f Add preprocessor interface for fast_realtime option of 2018-01-12 09:48:14 +01:00
Houtan 27317d25c5 preprocessor: add option to remove empty lines from macro-expanded mod file. closes #1551 2017-12-07 18:47:21 +01:00
Houtan 4a6fd427e0 preprocessor: add line number to field in structure that macro variables are saved to. #1564 2017-12-07 18:11:00 +01:00
Houtan Bastani 1d1a91239e preprocessor: support echomacrovars(save). closes #1564 2017-12-04 16:56:43 +01:00
Houtan Bastani c258bad2ab dynare command line: be less strict in accepting macros from .mod file 2017-11-14 12:21:48 +01:00
Houtan Bastani 21c8c3e586 doc: add verbatim BibTeX code for citing dynare 2017-10-13 13:50:49 +02:00
Houtan Bastani 87ea953aa7 doc: add Junior to citation in manual 2017-10-13 13:30:11 +02:00
Houtan Bastani a03834ac3e doc: update guidelines for citing dynare 2017-10-13 12:36:09 +02:00
Houtan Bastani 372decfe90 doc: update dynare compatibility 2017-10-13 12:18:35 +02:00
Houtan Bastani 6d7ae68e2e doc: update references to wiki and forum 2017-10-13 12:09:21 +02:00
Houtan Bastani 85dc468f74 doc: remove references to user guide 2017-10-13 12:09:03 +02:00
Johannes Pfeifer 8779b5a603 Document VarianceDecompositionME field 2017-10-05 11:33:17 +02:00
Johannes Pfeifer a1222a1d1b Implement variance decomposition with measurement error 2017-10-05 11:33:17 +02:00
Houtan Bastani 5c821b784d doc: move user guide to https://github.com/DynareTeam/user-guide.git 2017-09-22 11:52:51 +02:00
Houtan Bastani 513abe445f doc: update for change in 24a03ee290. #1509 2017-09-08 18:20:56 +02:00
Stéphane Adjemian (Scylla) 591a68bf50 Added option stochastic to Dynare command. 2017-08-31 10:19:43 +02:00
Houtan Bastani 349834eeca preprocessor: add write_latex_steady_steade_model command. Closes #1496 2017-08-30 14:30:06 +02:00
Houtan Bastani 09d44c89fd preprocessor: add parameter_set option to evaluate_smoother command. Closes #1477 2017-08-28 18:25:37 +02:00
Houtan Bastani 628c4cf27b preprocessor: add model_local_variable declaration for declaring model local variables with tex names. Closes #563 2017-08-28 17:24:56 +02:00
Houtan Bastani a8073a8d31 doc: add documentation for nopreprocessoroutput option. #1390 2017-08-25 17:41:40 +02:00
Houtan Bastani 1551d33e9e preprocessor: add write_equation_tags option to write_latex_original_model and write_latex_static_model. closes #1431 2017-08-24 16:10:53 +02:00
Johannes Pfeifer b4a52b8076 conditional_forecasts: Fix errors in manual 2017-08-16 19:45:58 +02:00
Johannes Pfeifer 8e899aa6bc Fix another typo in manual 2017-07-17 19:33:51 +02:00
Johannes Pfeifer 9f00081310 Fix typos in manual
Thanks to Jean-Paul K. Tsasa
2017-07-17 08:39:11 +02:00
Stéphane Adjemian 6a789458f1 Merge pull request #1474 from JohannesPfeifer/mode_compute_6_doc
mode_compute=6: Fix mistakes in manual
2017-06-30 12:01:46 +02:00
Johannes Pfeifer 2e06a636cd mode_compute=6: Fix mistakes in manual 2017-06-30 10:50:49 +02:00
Stéphane Adjemian (Charybdis) 63d6dfccf4 Added the possibility to dynare the dynare command options in the mod file. 2017-06-30 10:16:26 +02:00
Houtan Bastani 5eb66ff1ab preprocessor: only create one dynamic/static JSON file 2017-06-29 15:11:22 +02:00
Houtan Bastani 9a13adb111 preprocessor: print JSON deriv detail by default; use option to print less-detailed versions of dynamic/static models 2017-06-29 13:08:41 +02:00
Sébastien Villemot f1ed349d6b Enfore standard tmp directory when calling latex2html. 2017-06-29 12:32:21 +02:00
Sébastien Villemot 5feea2fc72 Update macro-processor slides (new @#include variant). 2017-06-28 18:19:10 +02:00
Sébastien Villemot 1270f12439 Drop texi2html requirement (obsolete software), use texi2any instead. 2017-06-28 17:24:26 +02:00
Stéphane Adjemian (Charybdis) 684861ce87 Fixed typos. 2017-06-28 15:35:05 +02:00
Houtan Bastani 1c2d116a0f doc: fix up wording of JSON description 2017-06-28 12:13:23 +02:00
Houtan Bastani 3938381e99 preprocessor: write JSON output for original model when writing after transform pass 2017-06-28 12:04:04 +02:00
Houtan Bastani 170d90bd84 doc: fix bug introduced in 8e0791d05c 2017-06-28 11:08:17 +02:00
Houtan Bastani 8e0791d05c doc: add info about JSON output 2017-06-28 11:02:16 +02:00
Houtan Bastani f917869439 doc: macOS related updates 2017-06-15 14:03:59 +02:00
Stéphane Adjemian (Charybdis) 0ed62fb476 Fixed authors ordering. 2017-06-11 02:25:05 +02:00
Johannes Pfeifer ac15f60ec6 Fix typo in manual and clarify analytic_derivation option 2017-05-27 18:30:40 +02:00
Stéphane Adjemian 502612a5a5 Merge pull request #1451 from JohannesPfeifer/bvar_doc
Document how to set options for BVAR Irfs
2017-05-16 12:49:30 +02:00
Johannes Pfeifer 6dde340c1e Document how to set options for BVAR Irfs 2017-05-14 18:37:34 +02:00
Johannes Pfeifer 660b370fb3 Fix typos in manual (thanks to Daniel Bendel) 2017-05-03 15:06:16 +02:00
Johannes Pfeifer 0361fb29dc Add documentation of one_sided_hp_filter missing from f7175745ac 2017-05-02 12:27:27 +02:00
Stéphane Adjemian 072246c5ab Merge pull request #1441 from JohannesPfeifer/ksstat
Remove redundant ksstat option
2017-04-29 18:00:25 +02:00
Johannes Pfeifer d7b2e271d7 Update documentation on sensitivity
Closes #789
2017-04-27 12:03:02 +02:00
Johannes Pfeifer 451646ff16 Remove redundant ksstat option
Closes #1431
2017-04-27 11:08:17 +02:00
Stéphane Adjemian (Charybdis) d6e1d0baa5 Added option rescale_prediction_error_covariance. 2017-04-26 18:22:03 +02:00
Houtan Bastani 753d8a17f0 preprocessor: move equation tags out of dmath mode, include all equation tags in one set of brackets, allow equation tags to be interpreted as latex, modify manual and test accordingly. #477 2017-04-05 11:01:25 +02:00
Houtan Bastani 14f4544a29 preprocessor: add option to write equation tags in latex output. closes #477 2017-04-04 16:08:30 +02:00
Stéphane Adjemian (Charybdis) f9a462bf07 Added option nonlinear_filter_initialization.
Default value is 1 (initialization with the ergodic variance of the reduced
form solution of the model approximated at order one).

If the model has unit roots, the user must use `nonlinear_filter_initialization=3`,
which select an identity matrix for the initial covariance matrix of the state variables.

A side effect of this option is to temporarily change the value of options_.qz_criterium to
a value above one (ie 1+1e-6) so that the unit roots are not rejected. If the
model has unit roots and if the and if the option
nonlinear_filter_initialization has a value less than 3, the evaluation of the
likelihood will fail, because by default the unit root is counted as an
unstable root.
2017-04-03 11:25:05 +02:00
Stéphane Adjemian (Charybdis) 8eefb6a747 Fixed warning introduced in b5c353f5a3. 2017-04-03 11:25:05 +02:00
Johannes Pfeifer b64aa57bc3 Update affiliation of Johannes 2017-04-01 19:59:29 +02:00
Houtan Bastani 6571f7ea68 doc: fix changes merged in ad2e1ffc8d 2017-03-28 11:56:38 +02:00
Johannes Pfeifer b5f989ccb1 Manual: Define integer_vector 2017-03-28 11:39:44 +02:00
Johannes Pfeifer 368262d5f1 Update manual on realtime_shock_decomposition following Marco's description 2017-03-28 11:35:27 +02:00
Johannes Pfeifer b5c353f5a3 Prevent Texinfo from replacing straight quotation marks in codes by italic ones 2017-03-27 12:36:18 +02:00
Johannes Pfeifer 14b8604de5 Restructure manual on shock_decomposition
- Introduces proper definition of output variables
- Clarifies various options
2017-03-27 12:35:36 +02:00
Johannes Pfeifer 94f09402a2 Manual: Add new subsections for commands not belonging to estimation 2017-03-27 11:43:07 +02:00
Houtan Bastani b3ecc8c003 preprocessor: add plot_shock_decomposition command. closes #1406 2017-03-24 12:11:36 +01:00
Houtan Bastani 2be17e1ebd doc: more fixes to documentation 2017-03-24 10:34:59 +01:00
Houtan Bastani 4f432b7e58 doc: update plot_shock_decomposition option names 2017-03-24 10:34:59 +01:00
Stéphane Adjemian c24ebb6055 Merge pull request #1413 from JohannesPfeifer/manual_fix
Fix typo in manual
2017-03-22 12:40:08 +01:00
Houtan Bastani 24abebb0b4 doc: correct argumnets to options 2017-03-21 14:35:04 +01:00
Houtan Bastani 4b4ee1cd92 doc: fix typo 2017-03-21 14:27:58 +01:00
Houtan Bastani 30232985ee doc: fix markups of i.e. and e.g. 2017-03-21 14:15:51 +01:00
Houtan Bastani 2a33cd1bb0 doc: fix doc following recent changes 2017-03-21 12:48:11 +01:00
Johannes Pfeifer effcd3d12a Fix typo in manual
ts does not exist
2017-03-21 09:48:55 +01:00
Johannes Pfeifer 9abac8ccdb Store indicator whether smoother was used with loglinear
Required to keep track of whether estimates were logged. Related to #1407
2017-03-20 11:36:10 +01:00
Stéphane Adjemian (Charybdis) dd02aa4c03 Expand reference manual on loglinear.
Partial cherry-pick of 3fc2e2b967d7c779058922e9f7fd9f688118a2f0 by Johannes Pfeifer.
2017-03-20 10:17:32 +01:00
Marco Ratto f52035a3a0 updated documentation about sub_draws 2017-03-18 00:06:15 +01:00
Marco Ratto a9732afaf6 document behavior of filtered_vars, filter_covariance and filter_step_ahead 2017-03-17 15:43:00 +01:00
Johannes Pfeifer 5d8d5e90d8 evaluate_smoother.m: pass updated M_.params and oo_ back to base workspace
Closes #1373
2017-03-17 13:15:39 +01:00
Stéphane Adjemian (Charybdis) ef9338bfd6 Fixed bugs in Reference Manual. 2017-03-17 12:42:00 +01:00
Marco Ratto 27f4f81bbd document save_realtime option of shock decomp 2017-03-17 12:41:59 +01:00
Marco Ratto 0053e7018f special characters fixed again. 2017-03-17 12:41:59 +01:00
Marco Ratto ddd25fb817 Improve documentation of shock decomposition commands 2017-03-17 12:41:59 +01:00
Marco Ratto 06176caf64 manual updates 2017-03-17 12:41:59 +01:00
Stéphane Adjemian (Charybdis) 9fbef0c107 Removed penalty_hessian routine.
+ Code factorization.
 + Added an option for using the penalized objective when computing numerically
 the hessian at the mode.

Previous behaviour (introduced with penalty_hessian routine) was to compute the
hessian matrix at the mode with the penalized objective function (instead of
the original objective function). This behaviour hides problematic situations,
where the computed hessian (using the original objective) would not be full
rank. For instance, if the estimation ends up with a parameter on (or very
close to) the bounds of its possible values (which is often not a desirable
outcome), the estimated posterior variance would be zero for this
parameter (with the original objective) because the hessian is not finite in
this direction, while the posterior variance would be positive if the penalized
objective is used instead. But this estimate would not be reliable by
construction of the penalty which is quite ad-hoc (more fundamentally I do not
think that there exists any rational for approximating the covariance matrix
with the inverse of the hessian matrix if the mode is on the border of the set
of possible values).

This commit restore the behaviour previous to 2446ab02ba.

An option is available for computing the hessian with the penalized
objective function.
2017-02-08 13:07:25 +00:00
Stéphane Adjemian (Charybdis) 5b73d7d59c Added new optimization routine (particleswarm).
Only available under Matlab if the Global Optimization Toolbox is installed.
2017-02-08 13:07:25 +00:00
Houtan Bastani e88739a5ea doc: add preprocessor copyright info 2017-02-01 18:16:51 +01:00
Houtan Bastani 25e9a81b71 doc: update for preprocessor 2017-02-01 18:06:44 +01:00
Houtan Bastani 3776b910a1 preprocessor: remove introduction to C++ programming 2017-01-31 17:11:28 +01:00
Houtan Bastani f1d607af99 preprocessor: remove extra exogenous variables. closes #841 2017-01-27 22:48:17 +01:00
Houtan Bastani a6e74ac7af doc: update manual copyright date 2017-01-23 14:24:30 -05:00
Houtan Bastani 12b8a915e9 submodule update: reporting 2017-01-09 16:20:15 +01:00
MichelJuillard 562b8f7a5c Merge pull request #1139 from JohannesPfeifer/Ramsey_documentation
Correct manual on Ramsey
2017-01-08 20:03:59 +01:00
Michel Juillard 1554f15a65 - rephrased description of objective function value when Lagrange multipliers are
set to 0
- type correction
2017-01-08 17:16:41 +01:00
Stéphane Adjemian 420fb3896b Merge pull request #1361 from JohannesPfeifer/endogenous_prior_restrictions
Document irf_calibration and moment_calibration in the context of est…
2017-01-05 09:08:52 +01:00
Stéphane Adjemian b464226eaa Merge pull request #1358 from JohannesPfeifer/nograph
Implement posterior_nograph option
2017-01-05 06:52:08 +01:00
Stéphane Adjemian 90982d5fa0 Merge pull request #1357 from rattoma/parallel
Provisions for new node option NumberOfThreadsPerJob. Document option
2017-01-04 23:29:24 +01:00
Houtan Bastani 95ac8536ba doc: update menue for compiler installation 2016-12-28 11:10:02 +01:00
Johannes Pfeifer ca6cd152f2 Document that ramsey_policy now takes multipliers in the variable list.
Related to #1355
2016-12-27 14:36:51 +01:00
Johannes Pfeifer 91abae9ce0 Document graph option 2016-12-26 13:10:45 +01:00
Johannes Pfeifer 452d3cd986 Implement preprocessor interface for posterior_nograph option 2016-12-26 13:07:46 +01:00
Johannes Pfeifer 28d4ed1918 Finish implementation and documentation of nograph option of shock_decomposition.m 2016-12-26 12:52:28 +01:00
Johannes Pfeifer c7290a5f03 Document irf_calibration and moment_calibration in the context of estimation
Also adds unit test. Closes #1318
2016-12-23 12:11:10 +01:00
Johannes Pfeifer 5e010f57c0 Document different treatment of mh_recover and load_mh_file under Octave
Also adjusts unit tests accordingly. Closes #1332
2016-12-23 10:47:58 +01:00
Marco Ratto a55cbdd5fe Provisions for new node option NumberOfThreadsPerJob. Document option 2016-12-19 23:28:46 +01:00
Johannes Pfeifer 352786c2b4 load_mh_file: recompute results by default and load on request
Prevents general overwriting of results in oo_ and having stale results
2016-12-19 19:37:34 +01:00
Johannes Pfeifer 5515da191a Add Raftery/Lewis (1992) convergence diagnostics 2016-12-17 17:22:05 +01:00
Stéphane Adjemian 5334c7433d Merge pull request #1345 from JohannesPfeifer/robust_lin_solve
robust_lin_solve: Fix mistakes introduced in 4b83c1bf763fe5029c94b7e5…
2016-12-17 17:18:19 +01:00
Houtan Bastani de7d239f7c preprocessor: parallel: change default for singleCompThread. #1349 2016-12-13 11:12:04 +01:00
Houtan Bastani f1b4d63045 doc: fix endval typo and add @math{} markup 2016-12-08 10:54:03 +01:00
Stéphane Adjemian (Charybdis) d491b8c1ef Minor modification of 26baff91c.
An exogenous variable appearing in t+1 (as productivity in the expected
return of capital in the Euler equation) is not a forward variable.
2016-12-08 08:53:55 +01:00
Johannes Pfeifer da113029aa Correct initval, endval, and histval documentation 2016-12-08 08:53:55 +01:00
Johannes Pfeifer d5e20752ac robust_lin_solve: Fix mistakes introduced in 4b83c1bf76
Interface was still missing and documentation of option was in wrong place in manual and wrong
2016-12-01 17:31:29 +01:00
Houtan Bastani 392829ef40 doc: fix typo 2016-11-24 15:19:50 +01:00
MichelJuillard 31d2c7e332 Merge pull request #1324 from JohannesPfeifer/kalman
Three bugfixes for missing_DiffuseKalmanSmootherH1_Z.m that led to wrong results
2016-11-13 19:13:10 +01:00
Johannes Pfeifer 7831dccd2a Transform save_tmp_file into an option and change defaults 2016-11-04 19:56:55 +01:00
Stéphane Adjemian 4532d13fd3 Merge pull request #1295 from JohannesPfeifer/stochastic_singularity
Stochastic singularity
2016-11-04 10:56:50 +01:00
Johannes Pfeifer 98cf1bfc1d Add smoothed state uncertainty to Kalman smoother routines 2016-11-04 09:23:55 +01:00
Stéphane Adjemian b069241d18 Merge pull request #1217 from JohannesPfeifer/qz_estimation
Make sure diffuse_filter triggers qz_criterium>1
2016-11-04 06:47:17 +01:00
Stéphane Adjemian 09d374a0be Merge pull request #1303 from JohannesPfeifer/shock_decomp
Shock decomposition and posterior moments
2016-11-04 00:41:04 +01:00
Stéphane Adjemian (Charybdis) a4fc0cb1a6 Fixed typo. 2016-11-03 17:22:44 +01:00
Stéphane Adjemian (Charybdis) f303378f54 Added warnings about the BVAR identification scheme. 2016-11-03 17:22:44 +01:00
Stéphane Adjemian (Charybdis) 9900c05560 Added missing command in list of BVAR commands. 2016-11-03 17:22:44 +01:00
Johannes Pfeifer fac3348dfe Add information on bvar_irf to bvar-a-la-sims.tex 2016-11-03 17:22:44 +01:00
Johannes Pfeifer ef2ee9d2b0 Fix typo in manual 2016-11-03 17:22:44 +01:00
Johannes Pfeifer d75651a8c7 Correct non-unique nodes in manual that breaks compilation 2016-10-15 11:01:00 +02:00
Johannes Pfeifer c7b751bd50 Add mingw to dyn_mex.m and document compiler options and installation. 2016-10-14 16:35:05 +02:00
Johannes Pfeifer fe9d024d9f Manual: add that if several files differ only by the extension, the filaname must include the extension and be written between quotes 2016-10-09 22:28:29 +02:00
Johannes Pfeifer 209f1b4a7c Allow first_obs and nobs as options of shock_decomposition 2016-10-06 14:20:04 +02:00
Johannes Pfeifer 2fe73fafdc Implement and document keep_kalman_algo_if_singularity_is_detected option 2016-10-02 12:56:28 +02:00
Johannes Pfeifer f553f893c6 Make sure qz_criterium being reset by evaluate_smoother.m does not affect subsequent commands
- adds diffuse_filter as option of calib_smoother
- adds test case for calib_smoother with diffuse_filter
2016-10-02 10:51:47 +02:00
Houtan Bastani 245359a7df doc: remove last reference to java package for octave 2016-09-27 16:03:45 +02:00
Houtan Bastani 8edea5edb0 octave only supports .xlsx Excel extension (no longer supports .xls extension). #1293 2016-09-27 16:00:34 +02:00
Houtan Bastani 3ace574d72 doc: fix typo 2016-09-16 14:57:35 +02:00
Houtan Bastani 804d31e8af preprocessor: allow shock group names to contain spaces. closes #1280 2016-09-14 14:10:00 +02:00
Houtan Bastani e31f0a8d0f macroprocessor: stop with error when division by zero is encountered. closes #1278 2016-09-05 17:36:40 +02:00
Johannes Pfeifer 76e2112df9 Improve manual on lmmcp 2016-08-23 17:28:41 +02:00
Johannes Pfeifer 2751ab08bb Provide interface to original PATH files and document how to obtain them 2016-08-23 17:28:41 +02:00
Johannes Pfeifer dd22b9609e Add function generate_trace_plots.m that plots trace plots for all estimated parameters 2016-08-23 17:22:41 +02:00
Johannes Pfeifer 8341ac33f8 Document treatment of measurement error in forecasts
Also removes wrong info on HPDTotalsup/inf
2016-08-23 17:22:41 +02:00
Houtan Bastani ab35020e97 Merge pull request #1224 from JohannesPfeifer/ms_doc
Document options of MS code after interface change
2016-08-23 16:57:06 +02:00
Johannes Pfeifer 75e52ed71d Make sure fast_kalman_filter is only used with diffuse_periods=0
Closes #1234
2016-08-22 19:24:35 +02:00
Johannes Pfeifer 818befd4eb Document mh_init_scale 2016-08-22 16:27:32 +02:00
Johannes Pfeifer df8ad833fb Transform automatic loading of optimal_mh_scale_parameter.mat into option scale_file
Closes #503
2016-08-22 16:27:32 +02:00
MichelJuillard 6a6ccfa966 Merge pull request #1257 from JohannesPfeifer/conf_sig
Conf sig
2016-08-21 16:14:28 +02:00
MichelJuillard d27bbe667f Merge pull request #1230 from JohannesPfeifer/load_mh_file
Save chain's proposal density and make load_mh_file and mh_recover load it
2016-08-21 16:12:12 +02:00
MichelJuillard cc5cafdd15 Merge pull request #1254 from JohannesPfeifer/log_density_save
Save log_density at the mode and document oo_.posterior-fields
2016-08-21 11:13:19 +02:00
MichelJuillard 688c812267 Merge pull request #1233 from JohannesPfeifer/doc_additions
Additional documentation for OSR and onlyclearglobals
2016-08-20 17:46:44 +02:00
MichelJuillard 5c69c789f6 Merge pull request #1261 from JohannesPfeifer/bvar
BVAR: Save prior and posterior information in oo_
2016-08-20 17:39:34 +02:00
Houtan Bastani e6a5b8f9b8 doc: clarify that latex code passed to reports must be valid 2016-08-17 14:42:02 +02:00
Houtan Bastani 850411a990 doc: clarify graphLineName option to addSeries 2016-08-17 14:39:15 +02:00
Johannes Pfeifer c156a5907c BVAR: Save prior and posterior information in oo_ 2016-08-01 10:41:04 +02:00
Johannes Pfeifer 8dadd1519e Restore backward compatibility of OSR command with maxit and tolf options
Translates these options into optim_opt structure
2016-07-22 16:53:19 +02:00
Johannes Pfeifer 1bd5c7cc0d Disentangle options_.conf_sig and set default to 0.9 2016-07-21 12:17:30 +02:00
Johannes Pfeifer 08e63f1812 Document tolf and tolx options for perfect foresight and steady
Related to #1249
2016-07-21 09:40:35 +02:00
Johannes Pfeifer f2f44a0989 Save log_density at the mode and document oo_.posterior-fields 2016-07-20 20:48:24 +02:00
Johannes Pfeifer 7621ebb5ea Harmonize spelling and function arguments of collect_latex_files.m
All lower caps and no inputs
2016-07-01 19:09:29 +02:00
Stéphane Adjemian (Hermes) 2435040929 Changed default for nonlinear filters. 2016-07-01 11:47:21 +02:00
Stéphane Adjemian (Hermes) 581198741f Revert "Revert "preprocessor: allow for partitioning of variables along multiple dimensions""
This reverts commit b0e7f1cfd7.
2016-06-24 17:38:54 +02:00
Houtan Bastani b0e7f1cfd7 Revert "preprocessor: allow for partitioning of variables along multiple dimensions"
This reverts commit 7a29f50d99.
2016-06-23 15:59:35 +02:00
Houtan Bastani 7a29f50d99 preprocessor: allow for partitioning of variables along multiple dimensions 2016-06-23 15:36:42 +02:00
Johannes Pfeifer 1c420e6056 Allow for parameter_set=mle_mode in shock_decomposition
Required after writing results into oo_.mle_mode for ML estimation
2016-06-17 00:21:08 +02:00
Johannes Pfeifer 00dcc1b543 Clarify Dynare behavior of using clear all for Octave and Matlab
Closes #1232
2016-06-16 20:50:11 +02:00
Johannes Pfeifer 20ae7069cf Document new OSR fields of M_ 2016-06-16 20:49:02 +02:00
Johannes Pfeifer 1c84ccdc34 Save trend and constant for all variables in smoother 2016-06-16 12:05:38 +02:00
Johannes Pfeifer 5d6d1336ef Enable filter_covariance option in posterior sampling 2016-06-16 12:05:38 +02:00
Stéphane Adjemian (Hermes) 64d01a806e Fixed behaviour of write_latex_prior_table command 2016-06-16 10:38:40 +02:00
Stéphane Adjemian (Lupi) b70fe62503 Minor change in user reference manual.
The write_latex_prior_table has not to follow the estimation command but
the estimated_params block.
2016-06-15 17:15:53 +02:00
Johannes Pfeifer e94a698a9b Implement write_latex_prior_table.m
Fixes and replaces write_table_prior.m and uses consistent name. Also includes documentation
2016-06-15 16:47:39 +02:00
Johannes Pfeifer 4486d098b5 Save dsge_var objects at the mode 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 1084a2d452 Document new behavior of mh_recover and mh_replic 2016-06-14 15:18:05 +02:00
Johannes Pfeifer d02f8d0377 Allow for text-command in math environment by using amsmath package in collect_LaTeX_Files.m 2016-06-14 11:52:49 +02:00
Johannes Pfeifer 954b0fe987 Document options of MS code after interface change
Closes #879
2016-06-12 13:07:05 +02:00
Sébastien Villemot fe9ef566a6 Fix duplicate texinfo anchor introduced in previous commit. 2016-06-02 14:01:14 +02:00
Houtan Bastani ea4ec224e1 preprocessor: add all_values_required option to histval. closes #261 2016-06-02 12:57:11 +02:00
Stéphane Adjemian (Charybdis) 15f83d0e18 Added new option for setting weights in CPF algorithm. 2016-06-01 16:29:53 +02:00
Stéphane Adjemian (Charybdis) 67b808207c Added new algorithm for the estimation of nonlinear models. 2016-06-01 16:29:53 +02:00
Johannes Pfeifer 14c4a5c131 Fix copy and paste mistake in manual 2016-05-30 17:20:26 +02:00
Johannes Pfeifer cd128cb563 Document configuration file setting for Windows
Closes #337
2016-05-30 13:58:38 +02:00
Johannes Pfeifer b58c8274dd Manual: clarify that name tags are not required for all equations for display of residuals with tags 2016-05-28 19:34:07 +02:00
Johannes Pfeifer f5fd699149 Update documentation on equation tags and LMMCP
Also documents solve_algo=10
2016-05-28 18:02:57 +02:00