Commit Graph

47 Commits (master)

Author SHA1 Message Date
Stéphane Adjemian (Ryûk) 735bd66d4d
Remove unused output arguments. 2023-12-18 07:48:27 +01:00
Johannes Pfeifer c3268c0279
Move various functions from main matlab folder to subfolders 2023-12-14 18:29:04 +01:00
Stéphane Adjemian (Ryûk) edaf938582
Add --log option to dcontrib command. 2023-11-30 21:55:35 +01:00
Stéphane Adjemian (Argos) 33f2456acf
Add new option (--method).
Possible values are cumulate (default value) or diff.
2023-10-30 12:09:39 +01:00
Stéphane Adjemian (Argos) 12cca117bc
Change the definition of the default baseline. 2023-10-26 18:30:43 +02:00
Johannes Pfeifer b3ce518433 Further naming consistency improvements 2023-10-25 11:22:50 +02:00
Johannes Pfeifer cbf57b1af6
set_state_space.m: remove unused options_ input argument 2023-10-11 09:30:45 -04:00
Johannes Pfeifer 36a2a41e35
Add function signatures for command line functions 2023-10-11 09:26:05 -04:00
Johannes Pfeifer 3a115d4fcc Remove full oo_ input from likelihood functions 2023-10-02 09:48:34 +02:00
Stéphane Adjemian (Ryûk) de626fb4e8
Add remark.
[skip ci]
2023-09-28 09:01:37 +02:00
Johannes Pfeifer 8da98057b9
Have computation of decision rules and smoother only input and output required arguments instead of full oo_ and M_ 2023-09-25 17:17:34 +02:00
Stéphane Adjemian (Argos) bd0493d135
Add routine for dynamic contributions in semi-structural models. 2023-07-06 22:26:09 +02:00
Stéphane Adjemian (Ryûk) 0d39cab9e1
Add option to print parameter values. 2023-03-04 22:31:54 +01:00
Stéphane Adjemian (Ryûk) c006645c7f
Remove output argument. 2023-03-04 20:10:50 +01:00
Stéphane Adjemian (Ryûk) 656a7bf867
Cosmetic changes. 2023-03-04 18:03:59 +01:00
Stéphane Adjemian (Ryûk) f6a76066f9
Remove warning. 2023-03-04 17:52:50 +01:00
Stéphane Adjemian (Ryûk) 0b9141fdca
Remove and rename routine (print_equations).
Also:

 - rename first input argument,
 - remove second argument (always expand expectations).
2023-03-04 17:49:33 +01:00
Sébastien Villemot 10af04c6d8
Use Unicode copyright symbol (in UTF-8 encoding) in all source files
It is now supported by the MATLAB editor (as of R2022a).

The old ASCII notation is left in some files that we copy as-is from other
sources (e.g. in the contrib/ and m4/ subdirectories).

The particles submodule is not updated at this point, because it is in an
inconsistent state.

[skip ci]
2022-04-13 14:54:25 +02:00
Stéphane Adjemian (Charybdis) 1c953cca01
Moved CLI routines. 2021-12-21 16:22:30 +01:00
Stéphane Adjemian (Charybdis) 4b18aafa9b
Add CLI for evaluate_smoother. 2021-12-21 16:17:29 +01:00
Stéphane Adjemian (Ryûk) 4dd3ee8546
Add CLI for some routines.
- steady,
 - check,
 - evaluate_likelihood,
 - evaluate_posterior_kernel, and
 - evaluate_prior.

*Example*

After running a mod file, on the Matlab's command line:

>> cli.check

EIGENVALUES:
         Modulus             Real        Imaginary

               0                0                0
       1.389e-16        1.389e-16                0
          0.6452           0.6452                0
          0.9707           0.9707                0
           1.038            1.038                0
       1.271e+16        1.271e+16                0
        2.33e+17         2.33e+17                0

There are 3 eigenvalue(s) larger than 1 in modulus
for 3 forward-looking variable(s)

The rank condition is verified.
2021-12-14 14:45:57 +01:00
Johannes Pfeifer f7a232061a
Remove unused options_-output
Prevents accidentally changing something
2021-06-22 18:17:11 +02:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Sébastien Villemot 43ed7b2b69
Merge remote-tracking branch 'community/master' into enterprise 2020-03-27 16:28:41 +01:00
Johannes Pfeifer 16f65a2f33 prior.m: fix missing function input
Prevents crashes in "prior moments"
2020-03-08 09:00:33 +01:00
Dóra Kocsis 716b18989d Factorize interpret_resol_info into print_info. Closes: Dynare/dynare#1308 2019-12-09 17:02:15 +01:00
Sébastien Villemot cbb59fe6f8
Merge remote-tracking branch 'community/master' into enterprise 2019-09-26 16:54:27 +02:00
Johannes Pfeifer 5db86aaf7f Use global instead of local variable 2018-12-18 12:44:08 +01:00
Johannes Pfeifer 6460a3a1e5
Document prior moments(distribution) option 2018-12-15 19:23:06 +01:00
Johannes Pfeifer 68d3852cbf
Correctly update covariance matrix of exogenous shocks during prior simulation 2018-12-15 19:23:06 +01:00
Johannes Pfeifer fec7455555
Make prior.m function account for endogenous prior restrictions 2018-12-15 18:44:53 +01:00
Stéphane Adjemian (Scylla) 949a6211cd Added new command estimate.
Allows the estimation of single equation by OLS.
2017-07-28 17:49:15 +02:00
Stéphane Adjemian (Charybdis) be61de1367 Account for negative steady state in case of log-linearization. 2017-06-08 11:59:02 +02:00
Stéphane Adjemian (Charybdis) 1bf81c9f5a Fixed copyright notices. 2017-05-18 18:36:38 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis) 83bc67f0c0 Display informative message when the model cannot be solved at the prior mode. 2016-10-07 12:30:47 +02:00
Stéphane Adjemian (Hermes) e536621b95 Changed help message returned by prior CLI command
Describes option introduced in 5e398559f4
2016-09-14 18:04:01 +02:00
Stéphane Adjemian (Hermes) 5e398559f4 Added option to CLI prior command.
>> prior moments(distribution)

Returns the implied prior mean and standard deviation of the asymptotic
expectation and variance of all the endogenous variables.

The draws of the empirical implied prior distribution for these
asymptotic moments are saved under:

M_.dname/prior/draws/M_.fname_endogenous_variables_prior_draws.mat

and can be used to compute other moments or plot implied prior
densities.
2016-09-14 17:41:01 +02:00
Stéphane Adjemian (Hermes) 65ae97d37d Fixed bug.
For uniform priors use the prior mean when computing the prior
moments (prior mode is not defined).
2016-06-16 11:59:47 +02:00
Stéphane Adjemian (Hermes) 789f21257e Avoid side effects on globals (prior CLI and write_latex_prior_table commands). 2016-06-16 11:57:16 +02:00
Stéphane Adjemian (Hermes) 2c074d7cd2 Check that a prior is defined in prior CLI command
Behaviour consistent with the logic introduced in commit
64d01a806e.
2016-06-16 11:16:23 +02:00
Johannes Pfeifer 0c00e28799 Remove objective_function_penalty_base 2016-06-15 00:30:28 +02:00
Johannes Pfeifer 38d293b864 Replace globals in disp_th_moments.m by function arguments 2015-10-12 20:42:03 +02:00
Michel Juillard f464760c45 Revert "remove global objective_function_penalty_base"
This reverts commit cf858c7fcb.
2015-10-09 14:23:31 +02:00
Michel Juillard cf858c7fcb remove global objective_function_penalty_base 2015-10-08 20:57:00 +02:00
Stéphane Adjemian (Charybdis) b8eb0ff72d Added online help to prior command (cli). 2015-05-09 22:36:19 +02:00
Stéphane Adjemian (Charybdis) 73cdaa3091 Replaced get_prior_info routine by prior routine.
This new routine gives the possibility to obtain a description of the
prior from the command line.

>> prior table

will display a table with the prior mean, prior mode, prior std, prior
bounds and prior HPD interval.

>> prior plot

will plot the prior densities.

>> prior optimize

will trigger the maximization of the prior density and display the
results (often, because of BK conditions or other issues, Dynare is even
not able to get the prior mode).

>> prior moments

will display the moments of the endogenous variables at the prior mode.

>> prior simulate

will run a Monte-Carlo, by sampling from the prior and discarding vector
of parameters such that the steady state does not exist or the BK
conditions are not met, and return an estimate of the effective prior
mass.
2015-02-27 17:12:04 +01:00