Debian Codegraph @

tests/estimation/system_prior_restriction/Gali_2015_prior_restrictions.m

raw
1 function log_prior_val=Gali_2015_prior_restrictions(M_, dr, endo_steady_state, exo_steady_state, exo_det_steady_state, options_, dataset_, dataset_info);
2 % function prior_val=Gali_2015_prior_restrictions(M_, dr, endo_steady_state, exo_steady_state, exo_det_steady_state, options_, dataset_, dataset_info);
3 % Example of a _prior_restrictions-file automatically called during
4 % estimation
5 % It imposes a prior of the slope of the New Keynesian Phillips Curve of
6 % 0.03. As the slope is a composite of other parameters with independent
7 % priors, a separate function is required to do this.
8
9 % Copyright © 2021-2023 Dynare Team
10 %
11 % This file is part of Dynare.
12 %
13 % Dynare is free software: you can redistribute it and/or modify
14 % it under the terms of the GNU General Public License as published by
15 % the Free Software Foundation, either version 3 of the License, or
16 % (at your option) any later version.
17 %
18 % Dynare is distributed in the hope that it will be useful,
19 % but WITHOUT ANY WARRANTY; without even the implied warranty of
20 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 % GNU General Public License for more details.
22 %
23 % You should have received a copy of the GNU General Public License
24 % along with Dynare. If not, see <https://www.gnu.org/licenses/>.
25
26
27 % read out parameters to access them with their name
28 NumberOfParameters = M_.param_nbr;
29 for ii = 1:NumberOfParameters
30 paramname = M_.param_names{ii};
31 eval([ paramname ' = M_.params(' int2str(ii) ');']);
32 end
33
34 Omega=(1-alppha)/(1-alppha+alppha*epsilon);
35 lambda=(1-theta)*(1-betta*theta)/theta*Omega; %defined on page 61
36 kappa=lambda*(siggma+(varphi+alppha)/(1-alppha)); %defined on page 63
37
38 prior_mean=0.03;
39 prior_std=0.02;
40 log_prior_val=log(normpdf(kappa,prior_mean,prior_std));