I have a panel dataset which is evenly balanced but when I run xtset (or ttset) command to set region and time (year). I get a message that the panel has gaps. Listing the id and time shows that there isn't a gap so I'm not quite sure how to override this message so I can run a ITSA analysis. Please advise, I've never had this happen before?!?
Code:
input long region int year 1 2006 1 2007 1 2008 1 2009 1 2010 1 2011 1 2012 1 2013 1 2014 1 2015 1 2016 2 2006 2 2007 2 2008 2 2009 2 2010 2 2011 2 2012 2 2013 2 2014 2 2015 2 2016 3 2006 3 2007 3 2008 3 2009 3 2010 3 2011 3 2012 3 2013 3 2014 3 2015 3 2016 4 2006 4 2007 4 2008 4 2009 4 2010 4 2011 4 2012 4 2013 4 2014 4 2015 4 2016 5 2006 5 2007 5 2008 5 2009 5 2010 5 2011 5 2012 5 2013 5 2014 5 2015 5 2016 7 2006 7 2007 7 2008 7 2009 7 2010 7 2011 7 2012 7 2013 7 2014 7 2015 7 2016 8 2006 8 2007 8 2008 8 2009 8 2010 8 2011 8 2012 8 2013 8 2014 8 2015 8 2016 9 2006 9 2007 9 2008 9 2010 9 2011 9 2012 9 2013 9 2014 9 2015 9 2016 10 2006 10 2007 10 2008 10 2009 10 2010 10 2011 10 2012 10 2013 10 2014 10 2015 10 2016 11 2006 11 2007 end label values region region2 label def region2 1 "Chubu", modify label def region2 2 "Chugoku", modify label def region2 3 "Fukushima", modify label def region2 4 "Hokkaido", modify label def region2 5 "Iwate", modify label def region2 7 "Kansai", modify label def region2 8 "Kyushu_Okinawa", modify label def region2 9 "Miyagi", modify label def region2 10 "Northern_Kanto_Koshin", modify label def region2 11 "Shikoku", modify
Code:
xtset region year panel variable: region (unbalanced) time variable: year, 2006 to 2016, but with a gap delta: 1 unit
0 Response to XTSET and TTSET Error Message
Post a Comment