I have a set of data with dates from April 2016 to February 2018. I need to evaluate the mean of the values in all of the complete twelve month periods in the data e.g. for Apr 16 to Mar 17 and then for May 16 to Apr 17 and so on up to Mar 17 - Feb 18. (I also have to calculate the median of those sets)
What's the best way to do it?