analysis code for rate remapping data