added in the calculate_intercept function which returns the intdf (to be used in a script to plot all values for all subjects for a given test)