Dear All,

I have a panel monthly dataset (id and month), from 2001 - 2018, and I need 10 year (120 months) continuous obs to run regression.

Is there a way to find out which 10-year period has the most matching obs from 2001 - 2018?

For example, if there are 200 id that has 120 continuous monthly data from 2003 - 2012, and 300 id that has 120 continuous monthly data from 2004 - 2013. Then I will choose 2004 - 2013 as my regression period.

Thanks in advance.