Fixed copyright notices.

time-shift
Stéphane Adjemian (Charybdis) 2017-05-18 18:36:38 +02:00
parent b6634940ff
commit 1bf81c9f5a
403 changed files with 498 additions and 459 deletions

View File

@ -205,7 +205,7 @@ License: permissive
Unlimited permission is granted to everyone to use, copy, modify or Unlimited permission is granted to everyone to use, copy, modify or
distribute this software. distribute this software.
Files: matlab/utilities\graphics\distinguishable_colors.m Files: matlab/utilities/graphics/distinguishable_colors.m
Copyright 2010-2011 by Timothy E. Holy Copyright 2010-2011 by Timothy E. Holy
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
@ -228,7 +228,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
Files: matlab/utilities\graphics\colorspace.m Files: matlab/utilities/graphics/colorspace.m
Pascal Getreuer 2005-2010 Pascal Getreuer 2005-2010
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without

View File

@ -46,7 +46,7 @@ function [dr,aimcode,rts]=dynAIMsolver1(jacobia_,M_,dr)
% %
% GP July 2008 % GP July 2008
% Copyright (C) 2008-2012 Dynare Team % Copyright (C) 2008-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function [DirectoryName, info] = CheckPath(type,dname)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2005-2013 Dynare Team % Copyright (C) 2005-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -16,7 +16,7 @@ function CutSample(M_, options_, estim_params_)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2005-2015 Dynare Team % Copyright (C) 2005-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -16,7 +16,7 @@ function Draws = GetAllPosteriorDraws(column, FirstMhFile, FirstLine, TotalNumbe
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2005-2011 Dynare Team % Copyright (C) 2005-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -13,7 +13,7 @@ function [xparams, logpost] = GetOneDraw(type)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2005-2015 Dynare Team % Copyright (C) 2005-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function [mean,variance] = GetPosteriorMeanVariance(M,drop) function [mean,variance] = GetPosteriorMeanVariance(M,drop)
% Copyright (C) 2012-2016 Dynare Team % Copyright (C) 2012-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function MakeAllFigures(NumberOfPlots,Caption,FigureProperties,Info) function MakeAllFigures(NumberOfPlots,Caption,FigureProperties,Info)
% Copyright (C) 2005-2013 Dynare Team % Copyright (C) 2005-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -21,7 +21,8 @@ function [fval,info,exit_flag,DLIK,Hess,SteadyState,trend_coeff] = TaRB_optimiz
% o SteadyState [double] Vector of doubles, steady state level for the endogenous variables. % o SteadyState [double] Vector of doubles, steady state level for the endogenous variables.
% o trend_coeff [double] Matrix of doubles, coefficients of the deterministic trend in the measurement equation % o trend_coeff [double] Matrix of doubles, coefficients of the deterministic trend in the measurement equation
% %
% Copyright (C) 2015-16 Dynare Team
% Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -14,7 +14,7 @@ function [] = Tracing()
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2010 Dynare Team % Copyright (C) 2010-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,5 +1,22 @@
function title=add_filter_subtitle(title,options_) function title=add_filter_subtitle(title,options_)
% Copyright (C) 2015-2017 Dynare Team
%
% This file is part of Dynare.
%
% Dynare is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Dynare is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if ~options_.hp_filter && ~options_.one_sided_hp_filter && ~options_.bandpass.indicator %do not filter if ~options_.hp_filter && ~options_.one_sided_hp_filter && ~options_.bandpass.indicator %do not filter
%nothing to add here %nothing to add here
elseif ~options_.hp_filter && ~options_.one_sided_hp_filter && options_.bandpass.indicator elseif ~options_.hp_filter && ~options_.one_sided_hp_filter && options_.bandpass.indicator

View File

@ -43,7 +43,7 @@ function [InnovationVariance,AutoregressiveParameters] = autoregressive_process_
% %
% \sigma^2 = \gamma(0)*(1-PHI'*v) % \sigma^2 = \gamma(0)*(1-PHI'*v)
% Copyright (C) 2009 Dynare Team % Copyright (C) 2009-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -11,7 +11,7 @@ function d = bksup0(c,ny,jcf,iyf,icf,periods)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2003-2009 Dynare Team % Copyright (C) 2003-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function d = bksup1(c,ny,jcf,iyf,periods)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2003-2010 Dynare Team % Copyright (C) 2003-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -15,7 +15,7 @@ function d1 = bksupk(ny,fid,jcf,icc1)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2003-2011 Dynare Team % Copyright (C) 2003-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function x = bseastr(s1,s2) function x = bseastr(s1,s2)
% Copyright (C) 2001-2009 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function bvar_density(maxnlags)
% none % none
% Copyright (C) 2003-2007 Christopher Sims % Copyright (C) 2003-2007 Christopher Sims
% Copyright (C) 2007-2016 Dynare Team % Copyright (C) 2007-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -11,7 +11,7 @@ function bvar_irf(nlags,identification)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2007-2016 Dynare Team % Copyright (C) 2007-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -42,7 +42,7 @@ function [ny, nx, posterior, prior, forecast_data] = bvar_toolbox(nlags)
% - bvar_prior_{tau,decay,lambda,mu,omega,flat,train} % - bvar_prior_{tau,decay,lambda,mu,omega,flat,train}
% Copyright (C) 2003-2007 Christopher Sims % Copyright (C) 2003-2007 Christopher Sims
% Copyright (C) 2007-2012 Dynare Team % Copyright (C) 2007-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -31,7 +31,7 @@ function cprod = cartesian_product_of_sets(varargin)
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2011-2012 Dynare Team % Copyright (C) 2011-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -9,7 +9,7 @@ function cellofchar2mfile(fname, c, cname)
% OUTPUTS % OUTPUTS
% None. % None.
% Copyright (C) 2015 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function estim_params=check_for_calibrated_covariances(xparam1,estim_params,M)
% Notes: M is local to this function and not updated when calling % Notes: M is local to this function and not updated when calling
% set_all_parameters % set_all_parameters
% Copyright (C) 2013 Dynare Team % Copyright (C) 2013-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function check_matlab_path(change_path_flag) function check_matlab_path(change_path_flag)
% Copyright (C) 2015-2016 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -17,7 +17,7 @@ function [info,description] = check_posterior_analysis_data(type,M_)
% info = 6; % Ok (nothing to do ;-) % info = 6; % Ok (nothing to do ;-)
% description [string] Message corresponding to info % description [string] Message corresponding to info
% Copyright (C) 2008-2015 Dynare Team % Copyright (C) 2008-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -18,7 +18,7 @@ function [info,description] = check_prior_analysis_data(type,M_)
% description [string] Message corresponding to info % description [string] Message corresponding to info
% Copyright (C) 2009-2015 Dynare Team % Copyright (C) 2009-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -10,7 +10,7 @@ function check_prior_bounds(xparam1,bounds,M_,estim_params_,options_,bayestopt_)
% -options_ [structure] characterizing the options % -options_ [structure] characterizing the options
% -bayestopt_ [structure] characterizing priors % -bayestopt_ [structure] characterizing priors
% Copyright (C) 2013-2014 Dynare Team % Copyright (C) 2013-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -28,16 +28,16 @@ function [R,indef, E, P]=chol_SE(A,pivoting)
% the cost of introduding a permutation. % the cost of introduding a permutation.
% %
% %
% Inputs % INPUTS
% A [n*n] Matrix to be factorized % - A [n*n] Matrix to be factorized
% pivoting [scalar] dummy whether pivoting is used % - pivoting [scalar] dummy whether pivoting is used
% %
% Outputs % OUTPUTS
% R [n*n] originally stored in lower triangular portion of A, including the main diagonal % - R [n*n] originally stored in lower triangular portion of A, including the main diagonal
% %
% E [n*1] Elements added to the diagonal of A % - E [n*1] Elements added to the diagonal of A
% P [n*1] record of how the rows and columns of the matrix were permuted while % - P [n*1] record of how the rows and columns of the matrix were permuted while
% performing the decomposition % performing the decomposition
% %
% REFERENCES: % REFERENCES:
% This implementation is based on % This implementation is based on
@ -51,9 +51,10 @@ function [R,indef, E, P]=chol_SE(A,pivoting)
% %
% %
% Author: Johannes Pfeifer based on Eskow/Schnabel (1991) % Author: Johannes Pfeifer based on Eskow/Schnabel (1991)
%
% Copyright (C) 2015 Johannes Pfeifer % Copyright (C) 2015 Johannes Pfeifer
% Copyright (C) 2015 Dynare Team % Copyright (C) 2015-2017 Dynare Team
%
% This file is part of Dynare. % This file is part of Dynare.
% %
% Dynare is free software: you can redistribute it and/or modify % Dynare is free software: you can redistribute it and/or modify

View File

@ -2,7 +2,7 @@ function clear_persistent_variables(folder, writelistofroutinestobecleared)
% Clear all the functions with persistent variables in directory folder (and subdirectories). % Clear all the functions with persistent variables in directory folder (and subdirectories).
% Copyright (C) 2015 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -11,7 +11,7 @@ function varargout = prior(varargin)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2015-2016 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -8,7 +8,7 @@ function collect_latex_files
% - The packages loaded enable pdflatex to run % - The packages loaded enable pdflatex to run
% - The _dynamic and _static TeX-model files are not included as they are standalone TeX-files % - The _dynamic and _static TeX-model files are not included as they are standalone TeX-files
% Copyright (C) 2015-16 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -15,7 +15,7 @@ function [posterior_mean,posterior_covariance,posterior_mode,posterior_kernel_at
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% None. % None.
% Copyright (C) 2006-2014 Dynare Team % Copyright (C) 2006-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -11,7 +11,7 @@ function moments=compute_model_moments(dr,M_,options_)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2008-2014 Dynare Team % Copyright (C) 2008-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -16,7 +16,7 @@ function oo_ = compute_moments_varendo(type,options_,M_,oo_,var_list_)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2008-2016 Dynare Team % Copyright (C) 2008-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function overallacceptanceratio = compute_overall_acceptance_ratio(MetropolisFolder, ModelName) function overallacceptanceratio = compute_overall_acceptance_ratio(MetropolisFolder, ModelName)
% Copyright (C) 2013 Dynare Team % Copyright (C) 2013-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -16,7 +16,7 @@ function ConditionalVarianceDecomposition = conditional_variance_decomposition(S
% %
% [1] In this version, absence of measurement errors is assumed... % [1] In this version, absence of measurement errors is assumed...
% Copyright (C) 2010-2011 Dynare Team % Copyright (C) 2010-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -23,7 +23,7 @@ function oo_ = ...
% OUTPUTS % OUTPUTS
% oo_ [structure] Dynare structure where the results are saved. % oo_ [structure] Dynare structure where the results are saved.
% Copyright (C) 2009-2016 Dynare Team % Copyright (C) 2009-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -36,7 +36,7 @@ function Ifac = mcmc_ifac(X, Nc)
% consistent covariance matrix estimation", Econometrica, 59(3), p. 817-858 % consistent covariance matrix estimation", Econometrica, 59(3), p. 817-858
% Copyright (C) 2015-16 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -46,7 +46,7 @@ function [raftery_lewis] = raftery_lewis(runs,q,r,s)
% ---------------------------------------------------- % ----------------------------------------------------
% Copyright (C) 2016 Benjamin Born and Johannes Pfeifer % Copyright (C) 2016 Benjamin Born and Johannes Pfeifer
% Copyright (C) 2016 Dynare Team % Copyright (C) 2016-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -13,7 +13,7 @@ function oo_ = convert_dyn_45_to_44(M_, options_, oo_,bayestopt_)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2015-2016 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -2,7 +2,7 @@ function oo_ = correlation_mc_analysis(SampleSize,type,dname,fname,vartan,nvar,v
% This function analyses the (posterior or prior) distribution of the % This function analyses the (posterior or prior) distribution of the
% endogenous variables correlation function. % endogenous variables correlation function.
% Copyright (C) 2008-2015 Dynare Team % Copyright (C) 2008-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -19,7 +19,7 @@ function oo_ = covariance_mc_analysis(NumberOfSimulations,type,dname,fname,varta
% OUTPUTS % OUTPUTS
% oo_ [structure] Dynare structure where the results are saved. % oo_ [structure] Dynare structure where the results are saved.
% Copyright (C) 2008-2015 Dynare Team % Copyright (C) 2008-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -22,7 +22,7 @@ function [x,rc] = csolve(FUN,x,gradfun,crit,itmax,varargin)
% http://sims.princeton.edu/yftp/optimize/mfiles/csolve.m % http://sims.princeton.edu/yftp/optimize/mfiles/csolve.m
% Copyright (C) 1993-2007 Christopher Sims % Copyright (C) 1993-2007 Christopher Sims
% Copyright (C) 2007-2011 Dynare Team % Copyright (C) 2007-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -34,7 +34,7 @@ function [nodes, weights] = cubature_with_gaussian_weight(d,n,method)
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2012-2014 Dynare Team % Copyright (C) 2012-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function dcompare(s1) function dcompare(s1)
% Copyright (C) 2001-2011 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function info = delete_mh_history_files(MetropolisFolder, ModelName) function info = delete_mh_history_files(MetropolisFolder, ModelName)
% Copyright (C) 2013 Dynare Team % Copyright (C) 2013-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function [dr,ys,info]=discretionary_policy_1(oo_,Instruments) function [dr,ys,info]=discretionary_policy_1(oo_,Instruments)
% Copyright (C) 2007-2016 Dynare Team % Copyright (C) 2007-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -8,7 +8,7 @@ function disp_model_summary(M,dr,options)
% dr [matlab structure] Decision rules % dr [matlab structure] Decision rules
% options [matlab structure] Options % options [matlab structure] Options
% %
% Copyright (C) 2001-2016 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function disp_steady_state(M,oo)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2001-2013 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -13,7 +13,7 @@ function display_conditional_variance_decomposition(conditional_decomposition_ar
% OUTPUTS % OUTPUTS
% none % none
% %
% Copyright (C) 2010-2016 Dynare Team % Copyright (C) 2010-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -20,7 +20,7 @@ function oo_=display_estimation_results_table(xparam1,stdh,M_,options_,estim_par
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% None. % None.
% Copyright (C) 2014-2016 Dynare Team % Copyright (C) 2014-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -16,7 +16,7 @@ function []=display_problematic_vars_Jacobian(problemrow,problemcol,M_,x,type,ca
% none. % none.
% %
% Copyright (C) 2014-16 Dynare Team % Copyright (C) 2014-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function [a, b] = beta_specification(mu, sigma2, lb, ub, name) % --*-- Unitary
% - a [double] First hyperparameter of the Beta density. % - a [double] First hyperparameter of the Beta density.
% - b [double] Second hyperparameter of the Beta density. % - b [double] Second hyperparameter of the Beta density.
% Copyright (C) 2015 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -23,7 +23,7 @@ function m = compute_prior_mode(hyperparameters,shape) % --*-- Unitary tests --*
% [3] The uniform distribution has an infinity of modes. In this case the function returns the prior mean. % [3] The uniform distribution has an infinity of modes. In this case the function returns the prior mean.
% [4] For the beta distribution we can have 1, 2 or an infinity of modes. % [4] For the beta distribution we can have 1, 2 or an infinity of modes.
% Copyright (C) 2009-2016 Dynare Team % Copyright (C) 2009-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function [a, b] = gamma_specification(mu, sigma2, lb, name) % --*-- Unitary te
% - a [double] First hyperparameter of the Gamma density (shape). % - a [double] First hyperparameter of the Gamma density (shape).
% - b [double] Second hyperparameter of the Gamma density (scale). % - b [double] Second hyperparameter of the Gamma density (scale).
% Copyright (C) 2015-2016 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -17,7 +17,7 @@ function [mu, parameters] = mode_and_variance_to_mean(m,s2,distribution,lower_bo
% parameters [double] 2*1 vector, parameters of the distribution. % parameters [double] 2*1 vector, parameters of the distribution.
% %
% Copyright (C) 2009 Dynare Team % Copyright (C) 2009-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -24,7 +24,7 @@ function G = rand_inverse_wishart(m, v, H_inv_upper_chol)
% none % none
% %
% Copyright (C) 2003-2009 Dynare Team % Copyright (C) 2003-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -20,7 +20,7 @@ function B = rand_matrix_normal(n, p, M, Omega_lower_chol, Sigma_lower_chol)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% Same notations than: http://en.wikipedia.org/wiki/Matrix_normal_distribution % Same notations than: http://en.wikipedia.org/wiki/Matrix_normal_distribution
% Copyright (C) 2003-2009 Dynare Team % Copyright (C) 2003-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -14,7 +14,7 @@ function draw = rand_multivariate_normal(Mean,Sigma_upper_chol,n)
% %
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% Copyright (C) 2003-2009 Dynare Team % Copyright (C) 2003-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -23,7 +23,7 @@ function draw = rand_multivariate_student(Mean,Sigma_upper_chol,df)
% U~\Chi^2_{\nu} % U~\Chi^2_{\nu}
% The latter is constructed as the sum of \nu standard normals. % The latter is constructed as the sum of \nu standard normals.
% Copyright (C) 2003-2015 Dynare Team % Copyright (C) 2003-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -9,7 +9,7 @@ function [shape, scale] = weibull_specification(mu, sigma2, lb, name) % --*--
% %
% %
% Copyright (C) 2015-2016 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -23,7 +23,7 @@ function [xparam1,estim_params_,xparam1_explicitly_initialized,xparam1_properly_
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% None % None
% Copyright (C) 2013 Dynare Team % Copyright (C) 2013-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -15,7 +15,7 @@ function dsample(s1,s2)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2001-2009 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function y=dy_date(year,period) function y=dy_date(year,period)
% Copyright (C) 2005-2009 Dynare Team % Copyright (C) 2005-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -14,7 +14,7 @@ function [z,zss]=dyn2vec(s1,s2)
% none % none
% %
% Copyright (C) 2001-2009 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -8,7 +8,7 @@ function d = dyn_diag_vech(Vector)
% OUTPUTS % OUTPUTS
% d [double] a n*1 vector, where n solves n*(n+1)/2=m. % d [double] a n*1 vector, where n solves n*(n+1)/2=m.
% Copyright (C) 2010 Dynare Team % Copyright (C) 2010-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,7 +1,7 @@
function dyn_latex_table(M_,options_,title,LaTeXtitle,headers,labels,values,label_width,val_width,val_precis,optional_header) function dyn_latex_table(M_,options_,title,LaTeXtitle,headers,labels,values,label_width,val_width,val_precis,optional_header)
%function dyn_latex_table(M_,options_,title,LaTeXtitle,headers,labels,values,label_width,val_width,val_precis,optional_header) %function dyn_latex_table(M_,options_,title,LaTeXtitle,headers,labels,values,label_width,val_width,val_precis,optional_header)
% Copyright (C) 2015-2016 Dynare Team % Copyright (C) 2015-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -62,7 +62,7 @@ function [dr,info] = dyn_risky_steadystate_solver(ys0,M, ...
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2001-2014 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -32,7 +32,7 @@ function dr = dyn_second_order_solver(jacobia,hessian_mat,dr,M_,threads_ABC,thre
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2001-2015 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -7,7 +7,7 @@ function Matrix = dyn_unvech(Vector)
% OUTPUTS % OUTPUTS
% Matrix [double] a n*n symetric matrix, where n solves n*(n+1)/2=m. % Matrix [double] a n*n symetric matrix, where n solves n*(n+1)/2=m.
% Copyright (C) 2010 Dynare Team % Copyright (C) 2010-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -7,7 +7,7 @@ function Vector = dyn_vech(Matrix)
% OUTPUTS % OUTPUTS
% Vector [double] a n*(n+1)/2 vector. % Vector [double] a n*(n+1)/2 vector.
% Copyright (C) 2010 Dynare Team % Copyright (C) 2010-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function [F,G] = dynare_gradient(fcn,x,epsilon,varargin)
% %
% OUTPUTS % OUTPUTS
% %
% Copyright (C) 2010-2012 Dynare Team % Copyright (C) 2010-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -11,7 +11,7 @@ function dynare_graph_close()
% SPECIAL REQUIREMENT % SPECIAL REQUIREMENT
% none % none
% Copyright (C) 2006-2009 Dynare Team % Copyright (C) 2006-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -13,7 +13,7 @@ function dynatype (s,var_list)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2001-2009 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -11,7 +11,7 @@ function dyntable(options_,title,headers,labels,values,label_width,val_width,val
% val_precis [integer] precision of displayed values % val_precis [integer] precision of displayed values
% %
% %
% Copyright (C) 2002-2016 Dynare Team % Copyright (C) 2002-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -24,7 +24,7 @@ function [lnpriormom] = endogenous_prior(data,Pstar,BayesInfo,H)
% Copyright (C) 2011 Lawrence J. Christiano, Mathias Trabandt and Karl Walentin % Copyright (C) 2011 Lawrence J. Christiano, Mathias Trabandt and Karl Walentin
% Copyright (C) 2013 Dynare Team % Copyright (C) 2013-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,5 +1,22 @@
function e = euler_equation_error(y0,x,innovations,M,options,oo,pfm,nodes,weights) function e = euler_equation_error(y0,x,innovations,M,options,oo,pfm,nodes,weights)
% Copyright (C) 2016-2017 Dynare Team
%
% This file is part of Dynare.
%
% Dynare is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% Dynare is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
dynamic_model = str2func([M.fname '_dynamic']); dynamic_model = str2func([M.fname '_dynamic']);
ep = options.ep; ep = options.ep;
[y1, info_convergence, endogenousvariablespaths] = extended_path_core(ep.periods, ... [y1, info_convergence, endogenousvariablespaths] = extended_path_core(ep.periods, ...

View File

@ -19,7 +19,7 @@ function [ts, DynareResults] = extended_path(initialconditions, samplesize, exog
% %
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% Copyright (C) 2009-2016 Dynare Team % Copyright (C) 2009-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -4,7 +4,7 @@ function [y, info_convergence, endogenousvariablespaths] = extended_path_core(pe
debug,bytecode_flag,order,M,pfm,algo,solve_algo,stack_solve_algo,... debug,bytecode_flag,order,M,pfm,algo,solve_algo,stack_solve_algo,...
olmmcp,options,oo,initialguess) olmmcp,options,oo,initialguess)
% Copyright (C) 2016 Dynare Team % Copyright (C) 2016-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function [info_convergence, endo_simul] = extended_path_homotopy(endo_simul, exo_simul, M, options, oo, pfm, ep, order, algo, method, debug) function [info_convergence, endo_simul] = extended_path_homotopy(endo_simul, exo_simul, M, options, oo, pfm, ep, order, algo, method, debug)
% Copyright (C) 2016 Dynare Team % Copyright (C) 2016-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -19,7 +19,7 @@ function Simulations = extended_path_mc(initialconditions, samplesize, replic, e
% %
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% Copyright (C) 2016 Dynare Team % Copyright (C) 2016-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function pfm = setup_stochastic_perfect_foresight_model_solver(DynareModel,DynareOptions,DynareOutput) function pfm = setup_stochastic_perfect_foresight_model_solver(DynareModel,DynareOptions,DynareOutput)
% Copyright (C) 2013-2015 Dynare Team % Copyright (C) 2013-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function [flag,endo_simul,err] = solve_stochastic_perfect_foresight_model(endo_simul,exo_simul,pfm,nnodes,order) function [flag,endo_simul,err] = solve_stochastic_perfect_foresight_model(endo_simul,exo_simul,pfm,nnodes,order)
% Copyright (C) 2012-2015 Dynare Team % Copyright (C) 2012-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function [flag,endo_simul,err,y] = solve_stochastic_perfect_foresight_model_1(endo_simul,exo_simul,Options,pfm,order,varargin) function [flag,endo_simul,err,y] = solve_stochastic_perfect_foresight_model_1(endo_simul,exo_simul,Options,pfm,order,varargin)
% Copyright (C) 2012-2016 Dynare Team % Copyright (C) 2012-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -17,7 +17,7 @@ function r = ep_residuals(x, y, ix, iy, steadystate, dr, maximum_lag, endo_nbr)
% %
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% Copyright (C) 2010-2014 Dynare Team. % Copyright (C) 2010-2017 Dynare Team.
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function err = evaluate_max_dynamic_residual(model_dynamic, Y, exogenous_variables, params, steady_state, periods, ny, max_lag, lead_lag_incidence) function err = evaluate_max_dynamic_residual(model_dynamic, Y, exogenous_variables, params, steady_state, periods, ny, max_lag, lead_lag_incidence)
% Copyright (C) 2013 Dynare Team % Copyright (C) 2013-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -11,7 +11,7 @@ function planner_objective_value = evaluate_planner_objective(M,options,oo)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2007-2015 Dynare Team % Copyright (C) 2007-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -17,7 +17,7 @@ function lpkern = evaluate_posterior_kernel(parameters,llik)
% [2] This function use persistent variables for the dataset and the description of the missing observations. Consequently, if this function % [2] This function use persistent variables for the dataset and the description of the missing observations. Consequently, if this function
% is called more than once (by changing the value of parameters) the sample *must not* change. % is called more than once (by changing the value of parameters) the sample *must not* change.
% Copyright (C) 2009 Dynare Team % Copyright (C) 2009-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -16,7 +16,7 @@ function [ldens,parameters] = evaluate_prior(parameters)
% REMARKS % REMARKS
% [1] This function cannot evaluate the prior density of a dsge-var model... % [1] This function cannot evaluate the prior density of a dsge-var model...
% Copyright (C) 2009-2012 Dynare Team % Copyright (C) 2009-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -20,7 +20,7 @@ function [residuals,check1,jacob] = evaluate_static_model(ys,exo_ss,params,M,opt
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2001-2016 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -39,7 +39,7 @@ function X = fastgensylv(A, B, C, D, tol,maxit,X0)
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2012 Dynare Team % Copyright (C) 2012-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function y=ff1_(x)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2001-2008 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -15,7 +15,7 @@ function [a,b] = ffill(x,ixc,y)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2001-2009 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -22,7 +22,7 @@ function [yf,int_width,int_width_ME]=forcst(dr,y0,horizon,var_list,M_,oo_,option
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2003-2016 Dynare Team % Copyright (C) 2003-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -12,7 +12,7 @@ function yf=forcst2(y0,horizon,dr,n)
% Outputs: % Outputs:
% - yf [horizon+ykmin_ by endo_nbr by n] array of forecasts % - yf [horizon+ykmin_ by endo_nbr by n] array of forecasts
% %
% Copyright (C) 2008-2016 Dynare Team % Copyright (C) 2008-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -9,7 +9,7 @@ function yf=forcst2a(y0,dr,e)
% Outputs: % Outputs:
% - yf [horizon+maximum_endo_lag,endo_nbr] matrix of forecasts % - yf [horizon+maximum_endo_lag,endo_nbr] matrix of forecasts
% %
% Copyright (C) 2008-2016 Dynare Team % Copyright (C) 2008-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -1,6 +1,6 @@
function ftest (s1,s2) function ftest (s1,s2)
% Copyright (C) 2001-2010 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -31,7 +31,7 @@ function [nodes,weights] = gauss_hermite_weights_and_nodes(n)
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2011-2014 Dynare Team % Copyright (C) 2011-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -40,7 +40,7 @@ function [nodes,weights] = gauss_legendre_weights_and_nodes(n,a,b)
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2012-2014 Dynare Team % Copyright (C) 2012-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -6,7 +6,7 @@ function gcompare(s1,s2)
% saved by the instruction DYNASAVE. The simulation in file1 % saved by the instruction DYNASAVE. The simulation in file1
% is refered to as the base simulation. % is refered to as the base simulation.
% Copyright (C) 2001-2010 Dynare Team % Copyright (C) 2001-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

View File

@ -8,7 +8,7 @@ function irf_shocks_indx=getIrfShocksIndx()
% Outputs: % Outputs:
% irf_shocks_indx: [1 by n_irf_shocks] vector storing the indices % irf_shocks_indx: [1 by n_irf_shocks] vector storing the indices
% %
% Copyright (C) 2011-13 Dynare Team % Copyright (C) 2011-2017 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %

Some files were not shown because too many files have changed in this diff Show More