bootstrapped response and correlation functions in R