BCCVLII-156 Implement R scripts for functional response modelling