Skip to content
Snippets Groups Projects
Verified Commit e4c50fc5 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

add qoq/yoy/aoa to shock decomposition

parent 35a0c554
No related branches found
No related tags found
No related merge requests found
...@@ -250,6 +250,25 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -250,6 +250,25 @@ handles.pushbuttonClose = uicontrol( ...
'Units', 'normalized', ... 'Units', 'normalized', ...
'Position', [spc+dwidth*1.6 top-num*dheight dwidth dheight/1.5], ... 'Position', [spc+dwidth*1.6 top-num*dheight dwidth dheight/1.5], ...
'FontWeight', 'normal'); 'FontWeight', 'normal');
num = num + 1;
uicontrol( ...
'Parent', handles.uipanelResults, ...
'Tag', 'text8', ...
'Style', 'text', ...
'Units', 'normalized', ...
'Position', [spc*3 top-num*dheight dwidth*1.5 dheight/2], ...
'String', 'type:', ...
'HorizontalAlignment', 'left');
handles.type = uicontrol( ...
'Parent', handles.uipanelResults, ...
'Tag', 'type', ...
'Style', 'popupmenu', ...
'Units', 'normalized', ...
'Position', [spc*3+dwidth*1.5 top-num*dheight dwidth*2 dheight/2], ...
'String', {'qoq','yoy','aoa'}, ...
'Value', 1);
end end
function pushbuttonShockDecomposition_Callback(hObject, ~) function pushbuttonShockDecomposition_Callback(hObject, ~)
...@@ -280,6 +299,7 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -280,6 +299,7 @@ handles.pushbuttonClose = uicontrol( ...
options_.presample = str2double(handles.PresamplePeriod.String); options_.presample = str2double(handles.PresamplePeriod.String);
options_.nodisplay = 0; options_.nodisplay = 0;
options_.plot_priors = 0; options_.plot_priors = 0;
options_.type = handles.type.String;
gui_tools.project_log_entry('Running shock decomposition','...'); gui_tools.project_log_entry('Running shock decomposition','...');
[jObj, guiObj] = gui_tools.create_animated_screen('Running shock decomposition, please wait...', tabId); [jObj, guiObj] = gui_tools.create_animated_screen('Running shock decomposition, please wait...', tabId);
var_list_ = handles.endoTable.Data([handles.endoTable.Data{:,1}], 2); var_list_ = handles.endoTable.Data([handles.endoTable.Data{:,1}], 2);
...@@ -373,6 +393,7 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -373,6 +393,7 @@ handles.pushbuttonClose = uicontrol( ...
handles.lastPeriodQuarter.Value = handles.lastPeriodQuarterDefault; handles.lastPeriodQuarter.Value = handles.lastPeriodQuarterDefault;
handles.lastPeriodYear.Value = handles.lastPeriodYearDefault; handles.lastPeriodYear.Value = handles.lastPeriodYearDefault;
handles.useShockGrouping.Value = 0; handles.useShockGrouping.Value = 0;
handles.type.Value = 1;
end end
function close_tab(~, ~, hTab) function close_tab(~, ~, hTab)
......
...@@ -228,6 +228,25 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -228,6 +228,25 @@ handles.pushbuttonClose = uicontrol( ...
'Position', [spc top-num*dheight 1-spc*4 dheight/2], ... 'Position', [spc top-num*dheight 1-spc*4 dheight/2], ...
'String', 'init_state (condition on smoothed states in period 1)',... 'String', 'init_state (condition on smoothed states in period 1)',...
'FontWeight', 'bold'); 'FontWeight', 'bold');
num = num + 1;
uicontrol( ...
'Parent', handles.uipanelResults, ...
'Tag', 'text8', ...
'Style', 'text', ...
'Units', 'normalized', ...
'Position', [spc*3 top-num*dheight dwidth*1.5 dheight/2], ...
'String', 'type:', ...
'HorizontalAlignment', 'left');
handles.type = uicontrol( ...
'Parent', handles.uipanelResults, ...
'Tag', 'type', ...
'Style', 'popupmenu', ...
'Units', 'normalized', ...
'Position', [spc*3+dwidth*1.5 top-num*dheight dwidth*2 dheight/2], ...
'String', {'qoq','yoy','aoa'}, ...
'Value', 1);
end end
function pushbuttonShockDecomposition_Callback(hObject, ~) function pushbuttonShockDecomposition_Callback(hObject, ~)
...@@ -254,6 +273,7 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -254,6 +273,7 @@ handles.pushbuttonClose = uicontrol( ...
options_.datafile = project_info.data_file; options_.datafile = project_info.data_file;
options_.nodisplay = 0; options_.nodisplay = 0;
options_.plot_priors = 0; options_.plot_priors = 0;
options_.type = handles.type.String;
gui_tools.project_log_entry('Running shock decomposition', '...'); gui_tools.project_log_entry('Running shock decomposition', '...');
[jObj, guiObj] = gui_tools.create_animated_screen('Running shock decomposition, please wait...', tabId); [jObj, guiObj] = gui_tools.create_animated_screen('Running shock decomposition, please wait...', tabId);
var_list_ = handles.endoTable.Data([handles.endoTable.Data{:,1}], 2); var_list_ = handles.endoTable.Data([handles.endoTable.Data{:,1}], 2);
...@@ -349,6 +369,7 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -349,6 +369,7 @@ handles.pushbuttonClose = uicontrol( ...
handles.lastPeriodYear.Value = handles.lastPeriodYearDefault; handles.lastPeriodYear.Value = handles.lastPeriodYearDefault;
handles.useShockGrouping.Value = 0; handles.useShockGrouping.Value = 0;
handles.useInitState.Value = 0; handles.useInitState.Value = 0;
handles.type.Value = 1;
end end
function close_tab(~, ~, hTab) function close_tab(~, ~, hTab)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment