From dd67a81e57c6e3c82bbbe0bfc953cc6128c16918 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan.bastani@ens.fr> Date: Fri, 9 Mar 2012 11:32:19 +0100 Subject: [PATCH] estimation: place parameter priors in their own substructure --- matlab/global_initialization.m | 8 ++++---- preprocessor/ComputingTasks.cc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/matlab/global_initialization.m b/matlab/global_initialization.m index 82292557e..f9dac2fe6 100644 --- a/matlab/global_initialization.m +++ b/matlab/global_initialization.m @@ -11,7 +11,7 @@ function global_initialization() % SPECIAL REQUIREMENTS % none -% Copyright (C) 2003-2011 Dynare Team +% Copyright (C) 2003-2012 Dynare Team % % This file is part of Dynare. % @@ -237,9 +237,9 @@ options_.ramsey_policy = 0; options_.timeless = 0; % estimation -estimation_info.prior = struct('name', {}, 'shape', {}, 'mean', {}, ... - 'mode', {}, 'stdev', {}, 'date1', {}, ... - 'date2', {}, 'shift', {}, 'variance', {}); +estimation_info.parameters.prior = struct('name', {}, 'shape', {}, 'mean', {}, ... + 'mode', {}, 'stdev', {}, 'date1', {}, ... + 'date2', {}, 'shift', {}, 'variance', {}); estimation_info.structural_innovation.prior = struct('name', {}, 'shape', {}, 'mean', {}, ... 'mode', {}, 'stdev', {}, 'date1', {}, ... 'date2', {}, 'shift', {}, 'variance', {}); diff --git a/preprocessor/ComputingTasks.cc b/preprocessor/ComputingTasks.cc index 525d8070f..4a0ddcc67 100644 --- a/preprocessor/ComputingTasks.cc +++ b/preprocessor/ComputingTasks.cc @@ -1757,7 +1757,7 @@ PriorStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolidatio void PriorStatement::writeOutput(ostream &output, const string &basename) const { - string lhs_field = ".prior"; + string lhs_field = ".parameters.prior"; writePriorIndex(output, lhs_field); output << "estimation_info" << lhs_field << "_index(prior_indx) = {'" << name << "'};" << endl -- GitLab