Pairwise analysis for longitudinal fMRI studies