getlag function

getlag is used to look for the response of cpue to previous catches