From 209f1b4a7c21ebb73f2038bbbd0bbdbcf9f9ff3c Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 6 Oct 2016 14:20:04 +0200
Subject: [PATCH] Allow first_obs and nobs as options of shock_decomposition

---
 doc/dynare.texi             | 6 ++++++
 preprocessor/DynareBison.yy | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/doc/dynare.texi b/doc/dynare.texi
index 23ddc0de2..67a7bd1a6 100644
--- a/doc/dynare.texi
+++ b/doc/dynare.texi
@@ -6829,6 +6829,12 @@ Metropolis has been run, @code{mle_mode} if MLE has been run.
 @xref{datafile}. Useful when computing the shock decomposition on a
 calibrated model.
 
+@item first_obs = @var{INTEGER}
+@xref{first_obs}.
+
+@item nobs = @var{INTEGER}
+@xref{nobs}.
+
 @item use_shock_groups [= @var{SHOCK_GROUPS_NAME}]
 @anchor{use_shock_groups}. Uses groups of shocks instead of individual shocks in
 the decomposition. Groups of shocks are defined in @xref{shock_groups} block.
diff --git a/preprocessor/DynareBison.yy b/preprocessor/DynareBison.yy
index fcd4def98..2f103831a 100644
--- a/preprocessor/DynareBison.yy
+++ b/preprocessor/DynareBison.yy
@@ -2477,6 +2477,8 @@ shock_decomposition_option : o_parameter_set
                            | o_use_shock_groups
                            | o_colormap
                            | o_shock_decomposition_nograph
+                           | o_first_obs
+                           | o_nobs
                            ;
 
 homotopy_setup: HOMOTOPY_SETUP ';' homotopy_list END ';'
-- 
GitLab