Commit Graph

45 Commits (6adf1c26392d737dc31844aa3add0441e040f4a8)

Author SHA1 Message Date
Marco Ratto 03f93c5329 bug fix with steady state when plotting the expand of groups of shocks 2022-11-15 23:10:38 +01:00
Sébastien Villemot 10af04c6d8
Use Unicode copyright symbol (in UTF-8 encoding) in all source files
It is now supported by the MATLAB editor (as of R2022a).

The old ASCII notation is left in some files that we copy as-is from other
sources (e.g. in the contrib/ and m4/ subdirectories).

The particles submodule is not updated at this point, because it is in an
inconsistent state.

[skip ci]
2022-04-13 14:54:25 +02:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Marco Ratto f8b8ec6c18 fixes around init2shocks in plotting utilities 2021-02-13 19:04:01 +01:00
Stéphane Adjemian (Charybdis) b3e8dbe018
Do not rely on internal representation of @dates, use methods instead...
... Or add a new method if one is missing.
2021-01-15 20:44:09 +01:00
Sébastien Villemot 49dc997073
Global reindentation of MATLAB code (excluding submodules)
Also convert to Unix end-of-lines, and remove trailing whitespaces.
2019-12-20 16:30:27 +01:00
Marco Ratto 31c29d08c9 provisions for making shock decompositions for epilogue variables.
In case the epilogue formula is non-linear, the non additive non-linear term is distributed proportionally to the size of the individual shock contribution.
It is triggered by new option with_epilogue, applicable to commands:
1) shock_decomposition, realtime_shock_decomposition,
where preprocessor should trigger
options_.shock_decomp.with_epilogue=true;
2) initial_condition_decomposition
where preprocessor should trigger
options_.initial_condition_decomp.with_epilogue=true;
2019-12-19 22:19:39 +01:00
Marco Ratto 65d72866c3 provisions for squeeze when oo_ is output argument of plot_shock_decomposition.
Also trap with error situation when new computations are triggered after having squeezed results in oo_.
2019-12-15 16:53:43 +01:00
Marco Ratto 44eae1300d trap plot_end_date larger than actual length of smoother 2019-12-15 15:40:10 +01:00
Marco Ratto eb73cf4273 implement provisions for options_.no_graph.plot_shock_decomposition 2019-12-15 15:40:10 +01:00
Marco Ratto 71fa8cac9f fixed bug with steady state of annualized variables requiring auxiliary while doing expand 2019-12-15 15:40:10 +01:00
Marco Ratto ac511ca756 bug fix for computing shock decomp for auxiliary variable with groups 2019-12-15 15:40:10 +01:00
Marco Ratto c8c473cc60 provisions for changing the preprocessor call to plot_shock_decoposition with one output argument 2019-12-15 15:40:10 +01:00
Marco Ratto 8b9d7490e3 plot_shock_decomposition stores info of plotted variables. This can be optionally used by squeeze_shock_decomp to store in oo_ only variables plotted so far. Users can optionally define the list of vars to sotre in squeezed oo_ for shock decomps. Also allow aoa plots for lists of input variables. fixed error in wrong field name var_type of q2a. fixed aoa call, storing the wrong decomp data for interactive mode. 2019-12-15 15:40:10 +01:00
Marco Ratto 35b63e87d6 properly handle labelling, grouping and expand under init2shocks option 2019-12-12 16:45:57 +01:00
Marco Ratto 06c2b49897 provisions for init2shocks: initial conditions are added to its correspondiong shock for shock decompositions, while they are removed in initial condition decompositions. 2019-12-12 15:21:47 +01:00
Marco Ratto 5fe495852e Intregrate full list of options to initial_condition_decompositions, including defaults.
Adapt figure names when initial conditions are ploteed instead of shocks
2019-12-05 16:50:18 +01:00
Marco Ratto 79bdde79e0 implement new options flip and diff for plotting decompositions 2019-12-05 13:20:12 +01:00
Houtan Bastani fd61c049f9
remove unused return variable 2019-04-25 17:37:38 +02:00
Marco Ratto a798889fe1 fix crashes of the expand interactive mode of shock decomp plots, requiring to store and use more info on the plot itself (manual cherry-pick from 2914805e0803165eb324081483b6e85e288c3ce0) 2019-01-17 11:37:41 +01:00
Stéphane Adjemian (Charybdis) f4867d30b1 Cosmetic changes and fixed cell/chararray issues. 2018-01-10 17:14:59 +01:00
Marco Ratto f4b25efc5a bug fix with initial_date for conditional shock decomposition 2018-01-10 15:12:39 +01:00
Marco Ratto a63bc5b7f0 fixed bugs with dating of AOA decompositions 2018-01-10 15:12:39 +01:00
Stéphane Adjemian (Scylla) 7be8f10e0e Use cells of strings instead of char arrays. 2018-01-09 22:30:01 +01:00
Johannes Pfeifer 3bac10a97d Fix bug in use_shock_groups and colormap
Option was not written to correct subfield of options_-structure. Related to 7cd56e9687
2017-07-07 12:38:20 +02:00
Johannes Pfeifer 7cd56e9687 Get rid of unused and superseded options_.colormap and make sure options_.plot_shock_decomp.colormap is set 2017-05-23 13:20:47 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis) 88e1701289 Removed useless commas and semicolons. 2017-05-16 13:24:46 +02:00
Johannes Pfeifer c373ed3897 Make sure varlists are correctly updated after removal of doubly defined variables via varlist_indices.m
Otherwise the mapping between i_var and varlist does not match anymore (results in e.g. wrong display of IRFs)
2017-05-14 11:03:05 +02:00
Houtan Bastani ae921f6bf1 Merge remote-tracking branch 'rattoma/shock_decomp' 2017-03-24 16:20:47 +01:00
Houtan Bastani b3ecc8c003 preprocessor: add plot_shock_decomposition command. closes #1406 2017-03-24 12:11:36 +01:00
Houtan Bastani c467c92d29 shock_decomposition: move fig_names to fig_name (fixing typo) 2017-03-24 10:34:59 +01:00
Marco Ratto 780c1f5216 provide userdata with info on actual varlist used 2017-03-22 22:37:59 +01:00
Marco Ratto ce6f76713d cosmetic change 2017-03-17 12:41:59 +01:00
Marco Ratto 7a6b4f3464 extra option about choosing the time periods for which to plot decompositions 2017-03-17 12:41:59 +01:00
Marco Ratto 1920fb0bfe fixed timing bugs in annualized shock decomposition 2017-03-17 12:41:59 +01:00
Marco Ratto 9005054c6f optional output argument for plot_shock_decomposition.m + several fixes to annualized computations and plots. 2017-03-17 12:41:59 +01:00
Marco Ratto bfe6d04bf2 - Added the possibility to compute annualized variables and associated decompositions out of quarterly ones, without blowing up variable definitions
- Fixed call to plot realtime conditional shock decomposition
2017-03-17 12:41:59 +01:00
Marco Ratto a7ae355e8f Fixed dating issues in some plot shock decomps 2017-03-17 12:41:59 +01:00
Marco Ratto f87e240b30 Some better diversification of fig names and captions 2017-03-17 12:41:59 +01:00
Marco Ratto 3fdf7be6e8 - removed useless internal option fig_mode
- better captions/figure nsmes
- moved plots to graphs subdir
- fixed latex issuea [label and caption].
2017-03-17 12:41:59 +01:00
Marco Ratto 4ff586247e bug fix in Others group label 2017-03-17 12:41:59 +01:00
Marco Ratto 94297b71cc bug fixes around plot_shock_decomposition.m utilities 2017-03-17 12:41:59 +01:00
Marco Ratto e3c825f01a fixed header 2017-03-17 12:41:59 +01:00
Marco Ratto 7733484912 New utility plot_shock_decomposition.m
new graph_decomp_detail.m for detailed plots of shock contributions
new expand_group.m for optional uimenu operation in case of grouped shocks.
2017-03-17 12:41:59 +01:00