epidemic_test function

Test for an epidemic period in data