implements intial version of timecourse stat test (UNTESTED FUNCTION)