A General Statistical Analysis for fMRI Data