Create a moving average for a period before or after each time point for a given variable
Useful links