From e3ff0bbd3210929b2ba92f5742d5e0ae009419d7 Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel.juillard@mjui.fr>
Date: Wed, 24 Oct 2012 14:05:11 +0200
Subject: [PATCH] ms-sbvar: made option final_year optional is using the entire
 sample

---
 ComputingTasks.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ComputingTasks.cc b/ComputingTasks.cc
index a33433e0..4fe10782 100644
--- a/ComputingTasks.cc
+++ b/ComputingTasks.cc
@@ -982,11 +982,10 @@ MSSBVAREstimationStatement::checkPass(ModFileStructure &mod_file_struct, Warning
 
   if (options_list.num_options.find("ms.create_init") == options_list.num_options.end())
     if (options_list.string_options.find("datafile") == options_list.string_options.end() ||
-        options_list.num_options.find("ms.initial_year") == options_list.num_options.end() ||
-        options_list.num_options.find("ms.final_year") == options_list.num_options.end())
+        options_list.num_options.find("ms.initial_year") == options_list.num_options.end())
       {
         cerr << "ERROR: If you do not pass no_create_init to ms_estimation, "
-             << "you must pass the datafile, initial_year and end_year options." << endl;
+             << "you must pass the datafile and initial_year options." << endl;
         exit(EXIT_FAILURE);
       }
 }
-- 
GitLab