diff --git a/matlab/CheckPath.m b/matlab/CheckPath.m index edbe9970455182a1c55c732269fd9027ff04a390..34ce0b5ba4f6d640194a3b76304aaf359e44b880 100644 --- a/matlab/CheckPath.m +++ b/matlab/CheckPath.m @@ -11,9 +11,23 @@ function DirectoryName = CheckPath(type) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2005-2007) -% Gnu Public License. + +% Copyright (C) 2005-2007 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/>. global M_ diff --git a/matlab/CutSample.m b/matlab/CutSample.m index 42eff5cf2d7344ffdec93b3da4dd746935b77fec..c5ba1af60526b67f7a15f389bb48ca1118401163 100644 --- a/matlab/CutSample.m +++ b/matlab/CutSample.m @@ -11,9 +11,23 @@ function CutSample() % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2005-2007) -% Gnu Public License. + +% Copyright (C) 2005-2007 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/>. global M_ options_ estim_params_ diff --git a/matlab/DiffuseKalmanSmoother1.m b/matlab/DiffuseKalmanSmoother1.m index 967bdf9cf3b308b8e1e7b65fc0cb2c7ef5f31f12..448437550551030ffbaff303f9ce8887fc73217f 100644 --- a/matlab/DiffuseKalmanSmoother1.m +++ b/matlab/DiffuseKalmanSmoother1.m @@ -26,10 +26,23 @@ function [alphahat,etahat,a, aK] = DiffuseKalmanSmoother1(T,R,Q,Pinf1,Pstar1,Y,t % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2004-2008) -% Gnu Public License. +% Copyright (C) 2004-2008 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/>. % modified by M. Ratto: % new output argument aK (1-step to k-step predictions) diff --git a/matlab/DiffuseKalmanSmoother1_Z.m b/matlab/DiffuseKalmanSmoother1_Z.m index 36095bed183e053f37022adb6193426673c0b77d..f0c880f4031752ce7c98e27ebc6ae410b914db5b 100644 --- a/matlab/DiffuseKalmanSmoother1_Z.m +++ b/matlab/DiffuseKalmanSmoother1_Z.m @@ -33,10 +33,23 @@ function [alphahat,etahat,a,P,aK,PK,d,decomp] = DiffuseKalmanSmoother1_Z(T,Z,R,Q % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2004-2008) -% Gnu Public License. +% Copyright (C) 2004-2008 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/>. % modified by M. Ratto: % new output argument aK (1-step to k-step predictions) diff --git a/matlab/DiffuseLikelihood1.m b/matlab/DiffuseLikelihood1.m index ec37644a8e4a1b785606358c02bd4b8403812fd3..88d4a82d0cd2dc07dfcab24646211a7049ae4424 100644 --- a/matlab/DiffuseLikelihood1.m +++ b/matlab/DiffuseLikelihood1.m @@ -21,11 +21,23 @@ function [LIK, lik] = DiffuseLikelihood1(T,R,Q,Pinf,Pstar,Y,trend,start) % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2004-2008) -% Gnu Public License. - +% Copyright (C) 2004-2008 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/>. % M. Ratto added lik in output diff --git a/matlab/DiffuseLikelihood1_Z.m b/matlab/DiffuseLikelihood1_Z.m index 525a07428bef3fe9b5b9bd6126677a9673becb30..5f90ba5a97d46082232da4ca44b8f128891a833e 100644 --- a/matlab/DiffuseLikelihood1_Z.m +++ b/matlab/DiffuseLikelihood1_Z.m @@ -21,11 +21,23 @@ function [LIK, lik] = DiffuseLikelihood1_Z(T,Z,R,Q,Pinf,Pstar,Y,start) % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2004-2008) -% Gnu Public License. - +% Copyright (C) 2004-2008 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/>. % M. Ratto added lik in output diff --git a/matlab/DiffuseLikelihood3.m b/matlab/DiffuseLikelihood3.m index e4d59a3dbec83e6def91fe57cdd9a80423602ea8..7b5da3a95440b469587105ba89daa3c52cda5090 100644 --- a/matlab/DiffuseLikelihood3.m +++ b/matlab/DiffuseLikelihood3.m @@ -23,11 +23,23 @@ function [LIK, lik] = DiffuseLikelihood3(T,R,Q,Pinf,Pstar,Y,trend,start)%//Z,T,R % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2004-2008) -% Gnu Public License. - +% Copyright (C) 2004-2008 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/>. % M. Ratto added lik in output [October 2005] % changes by M. Ratto [April 2005] diff --git a/matlab/DiffuseLikelihood3_Z.m b/matlab/DiffuseLikelihood3_Z.m index 7cfd629ce91739ea5ee2ce3e5550944ae07291e8..46f09c210c8f25d18f9d81e39d653cf9e1b473fd 100644 --- a/matlab/DiffuseLikelihood3_Z.m +++ b/matlab/DiffuseLikelihood3_Z.m @@ -23,11 +23,23 @@ function [LIK, lik] = DiffuseLikelihood3_Z(T,Z,R,Q,Pinf,Pstar,Y,start) % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2004-2008) -% Gnu Public License. - +% Copyright (C) 2004-2008 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/>. % M. Ratto added lik in output [October 2005] % changes by M. Ratto [April 2005] diff --git a/matlab/DiffuseLikelihoodH1.m b/matlab/DiffuseLikelihoodH1.m index 58d0174b5d5e5c43c88214437ecdd67409897131..1b7bb51fa688f8e3d84561885c936be0caf75a84 100644 --- a/matlab/DiffuseLikelihoodH1.m +++ b/matlab/DiffuseLikelihoodH1.m @@ -22,12 +22,23 @@ function [LIK, lik] = DiffuseLikelihoodH1(T,R,Q,H,Pinf,Pstar,Y,trend,start) % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2005-2008) -% Gnu Public License. - - +% Copyright (C) 2005-2008 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/>. % M. Ratto added lik in output diff --git a/matlab/DiffuseLikelihoodH1_Z.m b/matlab/DiffuseLikelihoodH1_Z.m index 160a91710de278dffda9a9724fbb5df452a5c517..847ce823a89b885912d477022187a78f1867e42a 100644 --- a/matlab/DiffuseLikelihoodH1_Z.m +++ b/matlab/DiffuseLikelihoodH1_Z.m @@ -23,11 +23,23 @@ function [LIK, lik] = DiffuseLikelihood1_Z(T,Z,R,Q,Pinf,Pstar,Y,start) % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2004-2008) -% Gnu Public License. - +% Copyright (C) 2004-2008 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/>. % M. Ratto added lik in output diff --git a/matlab/DiffuseLikelihoodH3.m b/matlab/DiffuseLikelihoodH3.m index 11f000320dbbf3f4b14e5f4b0a6b511f05a14fc4..090ccc30313f51b39fba342a06671a78ef7a8f53 100644 --- a/matlab/DiffuseLikelihoodH3.m +++ b/matlab/DiffuseLikelihoodH3.m @@ -24,11 +24,23 @@ function [LIK, lik] = DiffuseLikelihoodH3(T,R,Q,H,Pinf,Pstar,Y,trend,start) % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2005-2008) -% Gnu Public License. - +% Copyright (C) 2005-2008 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/>. % M. Ratto added lik in output [October 2005] % changes by M. Ratto diff --git a/matlab/DiffuseLikelihoodH3_Z.m b/matlab/DiffuseLikelihoodH3_Z.m index d595daf55f61770ed7a0d3d25ba575d303dc44ad..9f642941448733fa044c8709e0c5936087609821 100644 --- a/matlab/DiffuseLikelihoodH3_Z.m +++ b/matlab/DiffuseLikelihoodH3_Z.m @@ -24,11 +24,23 @@ function [LIK, lik] = DiffuseLikelihoodH3_Z(T,Z,R,Q,H,Pinf,Pstar,Y,start) % See "Filtering and Smoothing of State Vector for Diffuse State Space % Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series % Analysis, vol. 24(1), pp. 85-98). -% -% part of DYNARE, copyright Dynare Team (2004-2008) -% Gnu Public License. - +% Copyright (C) 2004-2008 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/>. % M. Ratto added lik in output [October 2005] % changes by M. Ratto [April 2005] diff --git a/matlab/DsgeVarLikelihood.m b/matlab/DsgeVarLikelihood.m index a524938461b05f654eb2c10d371e7dc13c3fa12c..bff61250a5b1c6d97783606cba7ec88322c45130 100644 --- a/matlab/DsgeVarLikelihood.m +++ b/matlab/DsgeVarLikelihood.m @@ -17,9 +17,24 @@ function [fval,cost_flag,info,PHI,SIGMAu,iXX,prior] = DsgeVarLikelihood(xparam1, % % SPECIAL REQUIREMENTS % None. -% -% part of DYNARE, copyright Dynare Team (2006-2008) -% Gnu Public License. + +% Copyright (C) 2006-2008 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/>. + global bayestopt_ estim_params_ M_ options_ nvx = estim_params_.nvx; diff --git a/matlab/GetAllPosteriorDraws.m b/matlab/GetAllPosteriorDraws.m index d85a914ebdad42fec90912599bdcddb21b6e449d..4d0f27ead3353fb9fcc696df8fa9ac063ec040ec 100644 --- a/matlab/GetAllPosteriorDraws.m +++ b/matlab/GetAllPosteriorDraws.m @@ -15,9 +15,23 @@ function Draws = GetAllPosteriorDraws(column,FirstMhFile,FirstLine,TotalNumberOf % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2005-2008) -% Gnu Public License. + +% Copyright (C) 2005-2008 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/>. global M_ options_ diff --git a/matlab/GetOneDraw.m b/matlab/GetOneDraw.m index 36c33b9e953f74a1a44232aba57c1e6bbaeb63d7..199dd0892316d37fd06d89b2e54bafa793a4623d 100644 --- a/matlab/GetOneDraw.m +++ b/matlab/GetOneDraw.m @@ -13,9 +13,23 @@ function [xparams, logpost] = GetOneDraw(type) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2005-2008) -% Gnu Public License. + +% Copyright (C) 2005-2008 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/>. switch type case 'posterior' diff --git a/matlab/PlotPosteriorDistributions.m b/matlab/PlotPosteriorDistributions.m index 5bd5c27bbd8c98214ec9e3ead7d2b5cdeb7ae621..a7f68ad9d22d2c1fdd870378d48b714e6eed1d7c 100644 --- a/matlab/PlotPosteriorDistributions.m +++ b/matlab/PlotPosteriorDistributions.m @@ -11,9 +11,23 @@ function PlotPosteriorDistributions() % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2005-2008) -% Gnu Public License. + +% Copyright (C) 2005-2008 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/>. global estim_params_ M_ options_ bayestopt_ oo_ diff --git a/matlab/PosteriorFilterSmootherAndForecast.m b/matlab/PosteriorFilterSmootherAndForecast.m index 512fc1992045529a804c309ddaaff27ac791ffa2..8815b5799892895a48f216bede63b53cbcb5130b 100644 --- a/matlab/PosteriorFilterSmootherAndForecast.m +++ b/matlab/PosteriorFilterSmootherAndForecast.m @@ -15,11 +15,23 @@ function PosteriorFilterSmootherAndForecast(Y,gend, type) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2005-2008) -% Gnu Public License. - +% Copyright (C) 2005-2008 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/>. global options_ estim_params_ oo_ M_ bayestopt_ diff --git a/matlab/ReshapeMatFiles.m b/matlab/ReshapeMatFiles.m index d5f0f9ccb7f0005a0220cca94ef63c424004275f..de33a7ac9c56c81bebd78606801a00fd017a94b4 100644 --- a/matlab/ReshapeMatFiles.m +++ b/matlab/ReshapeMatFiles.m @@ -1,5 +1,4 @@ function ReshapeMatFiles(type, type2) - % function ReshapeMatFiles(type, type2) % Reshapes and sorts (along the mcmc simulations) the mat files generated by DYNARE. % 4D-arrays are splitted along the first dimension. @@ -25,11 +24,24 @@ function ReshapeMatFiles(type, type2) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2007) -% Gnu Public License. - +% Copyright (C) 2003-2007 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/>. + global M_ options_ if nargin==1, diff --git a/matlab/check.m b/matlab/check.m index ccb087530571a0368c0ee9c8ba3d3cccc1aacad3..deb569d0b463258e268fdafa270891045146cb49 100644 --- a/matlab/check.m +++ b/matlab/check.m @@ -12,10 +12,23 @@ function result = check % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2001-2007) -% Gnu Public License. +% Copyright (C) 2001-2007 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/>. global M_ options_ oo_ global it_ diff --git a/matlab/compute_model_moments.m b/matlab/compute_model_moments.m index c8b551bd9de1ad4b89d9c30eba486a3c8b18e136..5b09d82de8146c27a929e4f4abba76cb4670154f 100644 --- a/matlab/compute_model_moments.m +++ b/matlab/compute_model_moments.m @@ -10,8 +10,22 @@ function moments=compute_model_moments(dr,M_,options,_) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2008) -% Gnu Public License. + +% Copyright (C) 2008 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/>. moments = th_autocovariances(dr,options_.varlist,M_,options_); diff --git a/matlab/datatomfile.m b/matlab/datatomfile.m index 34af50e8f1978f5cb4db14a461ff8c49fae25275..e968896abf9982ffc01426344a489f7d859dc7e9 100644 --- a/matlab/datatomfile.m +++ b/matlab/datatomfile.m @@ -13,10 +13,23 @@ function datatomfile (s,var_list) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2001-2007) -% Gnu Public License. +% Copyright (C) 2001-2007 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/>. global M_ oo_ diff --git a/matlab/dynare_estimation.m b/matlab/dynare_estimation.m index 57c04554dbd3240aa06fbf6a4531e865c3d24c30..b80722f0997aeb70068d643208ad19d3d4072473 100644 --- a/matlab/dynare_estimation.m +++ b/matlab/dynare_estimation.m @@ -10,10 +10,23 @@ function dynare_estimation(var_list_) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2007) -% Gnu Public License. +% Copyright (C) 2003-2007 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/>. global M_ options_ oo_ estim_params_ global bayestopt_ diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m index 33b76b345ce58b669305185ee8b6e12c7da7b49b..7f4ea2e2b1ebf3409afa2477e2c2f5f4932a5967 100644 --- a/matlab/dynare_estimation_init.m +++ b/matlab/dynare_estimation_init.m @@ -13,10 +13,23 @@ function [data,rawdata]=dynare_estimation_init(var_list_, igsa) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2007) -% Gnu Public License. +% Copyright (C) 2003-2007 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/>. global M_ options_ oo_ estim_params_ global bayestopt_ dsge_prior_weight diff --git a/matlab/dynare_graph.m b/matlab/dynare_graph.m index bd671a4f7065d8256065f3e6a1d727a85b9bd400..450e26b0d22d7b595737a30fc6e1fce12178837a 100644 --- a/matlab/dynare_graph.m +++ b/matlab/dynare_graph.m @@ -1,5 +1,4 @@ function dynare_graph(y,tit,x) - % function dynare_graph(y,tit,x) % graphs % @@ -12,9 +11,23 @@ function dynare_graph(y,tit,x) % % SPECIAL REQUIREMENT % none -% -% part of DYNARE, copyright Dynare Team (2006-2008) -% Gnu Public License. + +% Copyright (C) 2006-2008 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/>. global dyn_graph diff --git a/matlab/dynare_graph_init.m b/matlab/dynare_graph_init.m index 0906203fbc644e68775337268562d358c870b912..eb272fd7e643ab6660604ece01d3159873e5e5e7 100644 --- a/matlab/dynare_graph_init.m +++ b/matlab/dynare_graph_init.m @@ -1,5 +1,4 @@ function dynare_graph_init(figure_name,nplot,line_types,line_width) - % function dynare_graph_init(figure_name,colors) % initializes set of graphs % @@ -12,9 +11,23 @@ function dynare_graph_init(figure_name,nplot,line_types,line_width) % % SPECIAL REQUIREMENT % none -% -% part of DYNARE, copyright Dynare Team (2006-2008) -% Gnu Public License. + +% Copyright (C) 2006-2008 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/>. global dyn_graph options_ diff --git a/matlab/dynare_resolve.m b/matlab/dynare_resolve.m index abd9586d1edc09a84e158f3fbcc2751732bb7e94..af6a5c7bd1b83517a71054988540a405f42f3b85 100644 --- a/matlab/dynare_resolve.m +++ b/matlab/dynare_resolve.m @@ -24,10 +24,23 @@ function [A,B,ys,info] = dynare_resolve(iv,ic,aux) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2007) -% Gnu Public License. +% Copyright (C) 2003-2007 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/>. global oo_ M_ diff --git a/matlab/dynare_version.m b/matlab/dynare_version.m index 376d21e437b7f630b45e0ad9c5df6ec67c10d882..e6990d3b9966411580e16d3bd11852b07ca37bef 100644 --- a/matlab/dynare_version.m +++ b/matlab/dynare_version.m @@ -11,8 +11,22 @@ function dynare_version % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2001-2008) -% Gnu Public License. + +% Copyright (C) 2001-2008 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/>. return '4-Prerelease' diff --git a/matlab/forcst_unc.m b/matlab/forcst_unc.m index ec49fca84e91c2f103f9d671e22b9c918c77adcf..417cb0c7d01a586ce57f67dd090f911ac436d9c8 100644 --- a/matlab/forcst_unc.m +++ b/matlab/forcst_unc.m @@ -1,5 +1,4 @@ function forcst_unc(y0,var_list) - % function [mean,intval1,intval2]=forcst_unc(y0,var_list) % computes forecasts with parameter uncertainty % @@ -15,9 +14,23 @@ function forcst_unc(y0,var_list) % % SPECIAL REQUIREMENTS % None. -% -% part of DYNARE, copyright Dynare Team (2006-2008) -% Gnu Public License. + +% Copyright (C) 2006-2008 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/>. global M_ options_ oo_ estim_params_ bayestopt_ diff --git a/matlab/forecast.m b/matlab/forecast.m index 2daf0f02d6a53ce794290b4e1947a1418ed0032d..65c7003e624966feacd36ac19eea36013da76a3b 100644 --- a/matlab/forecast.m +++ b/matlab/forecast.m @@ -16,10 +16,24 @@ function info = forecast(var_list,task) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2008) -% Gnu Public License. - + +% Copyright (C) 2003-2008 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/>. + global options_ dr_ oo_ M_ info = 0; diff --git a/matlab/get_moments_size.m b/matlab/get_moments_size.m index eae42c5ca460ea71ae17fcd05ddb2bf230ba2c0a..d65fc063f7bdba9ec0807d82cca4c9efd03e7052 100644 --- a/matlab/get_moments_size.m +++ b/matlab/get_moments_size.m @@ -10,9 +10,23 @@ function s=get_moments_size(options) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2008) -% Gnu Public License. + +% Copyright (C) 2008 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/>. global M_ diff --git a/matlab/get_variance_of_endogenous_variables.m b/matlab/get_variance_of_endogenous_variables.m index cafc99ee2f01256112ba5463a07a16876cacffa1..7d509aaa2279b9bf6793031a8162e6cf0430d6a0 100644 --- a/matlab/get_variance_of_endogenous_variables.m +++ b/matlab/get_variance_of_endogenous_variables.m @@ -14,9 +14,23 @@ function [vx1,i_ns] = get_variance_of_endogenous_variables(dr,i_var) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2008) -% Gnu Public License. + +% Copyright (C) 2003-2008 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/>. global M_ options_ diff --git a/matlab/gmhmaxlik.m b/matlab/gmhmaxlik.m index 190426a5b40426aae4ca0548637eee81994e6c70..6891aea347902f24cdf22e3ea8a8419a31bfaef5 100644 --- a/matlab/gmhmaxlik.m +++ b/matlab/gmhmaxlik.m @@ -58,10 +58,23 @@ function [PostMod,PostVar,Scale,PostMean] = ... % % SPECIAL REQUIREMENTS % None. -% -% part of DYNARE, copyright Dynare Team (2006-2008) -% Gnu Public License. +% Copyright (C) 2006-2008 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/>. global bayestopt_ estim_params_ options_ global dsge_prior_weight % Needed if a BVAR-DSGE model is estimated. diff --git a/matlab/hessian.m b/matlab/hessian.m index 9f79e4db8e5ad78de2c8ece3d16dd11e4edb98d6..ea579ad98ec5ce691b3aac7e74a27199abf760f4 100644 --- a/matlab/hessian.m +++ b/matlab/hessian.m @@ -17,10 +17,23 @@ function hessian_mat = hessian(func,x,varargin) % SPECIAL REQUIREMENTS % none % -% -% part of DYNARE, copyright Dynare Team (2001-2007) -% Gnu Public License. +% Copyright (C) 2001-2007 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/>. global options_ func = str2func(func); diff --git a/matlab/hessian_sparse.m b/matlab/hessian_sparse.m index 66bb4ebd214a7aea3da91bfed40de56377b7471e..3dc667f0d915111973f56925b0bf12984f4549f3 100644 --- a/matlab/hessian_sparse.m +++ b/matlab/hessian_sparse.m @@ -1,4 +1,4 @@ - +function hessian_mat = hessian_sparse(func,x,varargin) % function hessian_mat = hessian_sparse(func,x,varargin) % Computes second order partial derivatives % used the 7 points formula @@ -16,13 +16,25 @@ % % SPECIAL REQUIREMENTS % none -% -% -% part of DYNARE, copyright Dynare Team (2001-2007) -% Gnu Public License. + +% Copyright (C) 2001-2007 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/>. %% computes second order partial derivatives % uses Abramowitz and Stegun (1965) formulas 25.3.24 and 25.3.27 p. 884 -function hessian_mat = hessian_sparse(func,x,varargin) global options_func = str2func(func);n=size(x,1); %h1=max(abs(x),options_.gstep*ones(n,1))*eps^(1/3);h1=max(abs(x),sqrt(options_.gstep)*ones(n,1))*eps^(1/6);h_1=h1;xh1=x+h1;h1=xh1-x;xh1=x-h_1;h_1=x-xh1;xh1=x;f0=feval(func,x,varargin{:});nf = size(f0,1);f1=zeros(nf,n);f_1=f1;for i=1:n xh1(i)=x(i)+h1(i); f1(:,i)=feval(func,xh1,varargin{:}); xh1(i)=x(i)-h_1(i); f_1(:,i)=feval(func,xh1,varargin{:}); xh1(i)=x(i); i=i+1;endxh_1=xh1;hessian_mat = spalloc(nf,n*n,3*nf*n);for i=1:n if i > 1 k=[i:n:n*(i-1)]; hessian_mat(:,(i-1)*n+1:(i-1)*n+i-1)=hessian_mat(:,k); end hessian_mat(:,(i-1)*n+i)=sparse((f1(:,i)+f_1(:,i)-2*f0)./(h1(i)*h_1(i))); temp=f1+f_1-f0*ones(1,n); for j=i+1:n xh1(i)=x(i)+h1(i); xh1(j)=x(j)+h_1(j); xh_1(i)=x(i)-h1(i); xh_1(j)=x(j)-h_1(j); hessian_mat(:,(i-1)*n+j)=sparse(-(-feval(func,xh1,varargin{:})-feval(func,xh_1,varargin{:})+temp(:,i)+temp(:,j))./(2*h1(i)*h_1(j))); xh1(i)=x(i); xh1(j)=x(j); xh_1(i)=x(i); xh_1(j)=x(j); j=j+1; end i=i+1;end% 10/03/02 MJ used the 7 points formula \ No newline at end of file diff --git a/matlab/homotopy1.m b/matlab/homotopy1.m index fe26bb9b15e1af78e90c1390cb4b7ec87b855caa..bc6472c5cf0045ebb2bba90ec92892ae5f5b93ea 100644 --- a/matlab/homotopy1.m +++ b/matlab/homotopy1.m @@ -22,9 +22,23 @@ function homotopy1(values, step_nbr) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2008) -% Gnu Public License. + +% Copyright (C) 2008 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/>. global M_ oo_ options_ diff --git a/matlab/homotopy3.m b/matlab/homotopy3.m index d94b55c9c1faa722ec2dfecd14d97177bf4f7c4f..dda3dfb289507dee82522b257d4ad9cca26e7263 100644 --- a/matlab/homotopy3.m +++ b/matlab/homotopy3.m @@ -24,9 +24,24 @@ function homotopy3(values, step_nbr) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2008) -% Gnu Public License. + +% Copyright (C) 2008 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/>. + global M_ oo_ options_ tol = 1e-8; diff --git a/matlab/metropolis_draw.m b/matlab/metropolis_draw.m index 05ea726b58ea93411885af9f113834c2de855a89..1fd32dded6fab0e194a798018143037017f528aa 100644 --- a/matlab/metropolis_draw.m +++ b/matlab/metropolis_draw.m @@ -1,5 +1,4 @@ function [xparams, logpost]=metropolis_draw(init) - % function [xparams, logpost]=metropolis_draw(init) % Builds draws from metropolis % @@ -12,12 +11,23 @@ function [xparams, logpost]=metropolis_draw(init) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2007) -% Gnu Public License. - - +% Copyright (C) 2003-2007 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/>. global options_ estim_params_ M_ persistent mh_nblck NumberOfDraws fname FirstLine FirstMhFile MAX_nruns diff --git a/matlab/mult_elimination.m b/matlab/mult_elimination.m index f4d3fcd194602e09ef8f212b958e5fbeb052fd50..c9e20d8677041f13c51b4b892d16760a14a3e39d 100644 --- a/matlab/mult_elimination.m +++ b/matlab/mult_elimination.m @@ -1,5 +1,4 @@ function dr=mult_elimination(void) - % function mult_elimination() % replaces Lagrange multipliers in Ramsey policy by lagged value of state % and shock variables @@ -12,10 +11,24 @@ function dr=mult_elimination(void) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2008) -% Gnu Public License. - + +% Copyright (C) 2003-2008 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/>. + global M_ options_ oo_ dr = oo_.dr; diff --git a/matlab/my_ordeig.m b/matlab/my_ordeig.m index fe8cddc70712e3ae38425fb4db54d1e43352f3aa..be9c515e296aef18b815cd0cff99a56d0502c080 100644 --- a/matlab/my_ordeig.m +++ b/matlab/my_ordeig.m @@ -10,9 +10,23 @@ function eigs = my_ordeig(t) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2008) -% Gnu Public License. + +% Copyright (C) 2003-2008 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/>. n = size(t,2); eigs = zeros(n,1); diff --git a/matlab/print_info.m b/matlab/print_info.m index 9018f49a3d32af0790ee57161dab4868ee75f56c..2c2b2b9cd650f3b19ccb3b98e7ebd5e5e014d7e5 100644 --- a/matlab/print_info.m +++ b/matlab/print_info.m @@ -18,10 +18,23 @@ function print_info(info) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2005-2007) -% Gnu Public License. +% Copyright (C) 2005-2007 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/>. global options_ diff --git a/matlab/prior_analysis.m b/matlab/prior_analysis.m index 350c4c3deac53082e24e433a41cb6b045c6d54de..e60ab66236a3a9e9c0b785faaf5665d52de9483a 100644 --- a/matlab/prior_analysis.m +++ b/matlab/prior_analysis.m @@ -13,8 +13,23 @@ function prior_analysis(var_list) % SPECIAL REQUIREMENTS % none. % -% part of DYNARE, copyright Dynare Team (2006-2008) -% Gnu Public License. + +% Copyright (C) 2006-2008 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/>. global M_ options_ oo_ estim_params_ bayestopt_ diff --git a/matlab/prior_posterior_statistics.m b/matlab/prior_posterior_statistics.m index fefa1abfdeb4918628abb44f8e354c536030105d..a8d71729ffdd846ec9fe07488c61b784accc193e 100644 --- a/matlab/prior_posterior_statistics.m +++ b/matlab/prior_posterior_statistics.m @@ -15,11 +15,23 @@ function prior_posterior_statistics(type,Y,gend) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2005-2008) -% Gnu Public License. - +% Copyright (C) 2005-2008 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/>. global options_ estim_params_ oo_ M_ bayestopt_ diff --git a/matlab/qr2.m b/matlab/qr2.m index 82cb5a82a2ef4d2bda3168d7d93247641f8b2fb7..714da06c43999585a1895f80c48f0b2949555596 100644 --- a/matlab/qr2.m +++ b/matlab/qr2.m @@ -16,9 +16,24 @@ function [Q,R] = qr2(X) % % SPECIAL REQUIREMENTS % None. -% -% part of DYNARE, copyright Dynare Team (2006-2008) -% Gnu Public License. + +% Copyright (C) 2006-2008 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/>. + [Q,R] = qr(X); indx = find(diag(R)<0); if ~isempty(indx) diff --git a/matlab/ramsey_dynamic.m b/matlab/ramsey_dynamic.m index 269d5621696e1ba210114889aa61603f45e0b65e..5dcb3df17f392538c9493458266c61f460f55421 100644 --- a/matlab/ramsey_dynamic.m +++ b/matlab/ramsey_dynamic.m @@ -13,10 +13,23 @@ function [J,M_] = ramsey_dynamic(ys,lbar,M_,options_,oo_,it_) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2008) -% Gnu Public License. +% Copyright (C) 2003-2008 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/>. % retrieving model parameters endo_nbr = M_.endo_nbr; diff --git a/matlab/ramsey_static.m b/matlab/ramsey_static.m index 3b821cd2284ec4ea82f203021f6e5eb9b023c21b..5a02f723f6a54a9f97f866e89efadcd8faf68787 100644 --- a/matlab/ramsey_static.m +++ b/matlab/ramsey_static.m @@ -13,9 +13,23 @@ function [resids, rJ,mult] = ramsey_static(x,M_,options_,oo_,it_) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2007) -% Gnu Public License. + +% Copyright (C) 2003-2007 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/>. % recovering usefull fields diff --git a/matlab/read_data_.m b/matlab/read_data_.m index 266445fa7ae03b21c01c15ac02a9d3c52c26c043..137df4c9643d2b7af0f3c41489bc83d16f3f0a1b 100644 --- a/matlab/read_data_.m +++ b/matlab/read_data_.m @@ -1,5 +1,4 @@ function read_data_ - % function read_data_ % reads endogenous and exogenous variables from a text file % Used by datafile option in simulate @@ -12,9 +11,23 @@ function read_data_ % % SPECIAL REQUIREMENT % none -% -% part of DYNARE, copyright Dynare Team (2007-2008) -% Gnu Public License. + +% Copyright (C) 2007-2008 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/>. global options_ M_ oo_; dname= options_.datafile; diff --git a/matlab/read_variables.m b/matlab/read_variables.m index 8cafb92a308672ab22a478d47766c2f01582e17c..070c8ec945a1b3030bd72b27bcc6827dc610806a 100644 --- a/matlab/read_variables.m +++ b/matlab/read_variables.m @@ -16,10 +16,23 @@ function dyn_data_01=read_variables(file_name_01,var_names_01,dyn_data_01,xls_sh % SPECIAL REQUIREMENTS % all local variables have complicated names in order to avoid name % conflicts with possible user variable names -% -% part of DYNARE, copyright Dynare Team (2005-2007) -% Gnu Public License. +% Copyright (C) 2005-2007 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/>. dyn_size_01 = size(dyn_data_01,1); var_size_01 = size(var_names_01,1); diff --git a/matlab/save_results.m b/matlab/save_results.m index 473bc16e4b4c5ce2e0b3a802c6f6b6c2a52fa820..e2f4a584c6edf1a78fa9465640de28662d48d526 100644 --- a/matlab/save_results.m +++ b/matlab/save_results.m @@ -13,9 +13,23 @@ function save_results(x,s_name,names) % % SPECIAL REQUIREMENT % none -% -% part of DYNARE, copyright Dynare Team (2006-2008) -% Gnu Public License. + +% Copyright (C) 2006-2008 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/>. global oo_ diff --git a/matlab/set_all_parameters.m b/matlab/set_all_parameters.m index 7e67ca26a4db4883b401b099061db5eeb1778394..b57ce7780836af74d0505d703085b63e02c00a92 100644 --- a/matlab/set_all_parameters.m +++ b/matlab/set_all_parameters.m @@ -11,9 +11,23 @@ function set_all_parameters(xparam1) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2008) -% Gnu Public License. + +% Copyright (C) 2003-2008 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/>. global estim_params_ M_ diff --git a/matlab/set_parameters.m b/matlab/set_parameters.m index b87c8a09d639ca162b8adfb501f83156a369382e..d66c236d5513909115f9558d4270d7bb9961e1d9 100644 --- a/matlab/set_parameters.m +++ b/matlab/set_parameters.m @@ -13,9 +13,23 @@ function set_parameters(xparam1) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2008) -% Gnu Public License. + +% Copyright (C) 2003-2008 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/>. global estim_params_ M_ diff --git a/matlab/th_autocovariances.m b/matlab/th_autocovariances.m index 86a9c5d7e36354704f636e9ee1aa7bb5f00bddab..a5c3bdc896692812fa3a750c63e8066300766202 100644 --- a/matlab/th_autocovariances.m +++ b/matlab/th_autocovariances.m @@ -15,9 +15,23 @@ function [Gamma_y,ivar]=th_autocovariances(dr,ivar,M_,options_) % % SPECIAL REQUIREMENTS % Theoretical HP filtering is available as an option -% -% part of DYNARE, copyright Dynare Team (2001-2008) -% Gnu Public License. + +% Copyright (C) 2001-2008 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/>. exo_names_orig_ord = M_.exo_names_orig_ord; if exist('OCTAVE_VERSION') diff --git a/matlab/transition_matrix.m b/matlab/transition_matrix.m index d3fee2dab4a2bdd5a664da35299dcf3d8afcdb11..2a2895ffcbc68ba7c325bf1b7bcab87f20285723 100644 --- a/matlab/transition_matrix.m +++ b/matlab/transition_matrix.m @@ -12,10 +12,23 @@ function [A,B] = transition_matrix(dr) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2003-2007) -% Gnu Public License. +% Copyright (C) 2003-2007 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/>. global M_ exo_nbr = M_.exo_nbr; diff --git a/matlab/uniform_specification.m b/matlab/uniform_specification.m index b857b6bbef7560e07ff2048b2ad8c5732234c593..9d09b7bd5f0c20f662aa39d8afb312a01715f38a 100644 --- a/matlab/uniform_specification.m +++ b/matlab/uniform_specification.m @@ -17,10 +17,23 @@ function [m,s,p1,p2] = uniform_specification(m,s,p3,p4) % % SPECIAL REQUIREMENTS % none -% -% part of DYNARE, copyright Dynare Team (2004-2008) -% Gnu Public License. +% Copyright (C) 2004-2008 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 ~(isnan(p3) | isnan(p4)) p1 = p3; diff --git a/matlab/var_sample_moments.m b/matlab/var_sample_moments.m index e5abe6ab630058a58aa6775d6d9d7a2e0c6e5cb1..98872db916f0a94b2524029879669b7df281268b 100644 --- a/matlab/var_sample_moments.m +++ b/matlab/var_sample_moments.m @@ -50,9 +50,23 @@ function [YtY,XtY,YtX,XtX,Y,X] = ... % % SPECIAL REQUIREMENTS % None. -% -% part of DYNARE, copyright Dynare Team (2007) -% Gnu Public License. + +% Copyright (C) 2007 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/>. X = []; Y = [];