Function written by Eleni Christoforidou in MATLAB R2022b.
This function takes as input an [Mx1] vector prediction and an [Mx1] vector target. It returns the mean squared error mse between the prediction and the target vectors, the correlation R and statistical significance p-value from computing Pearson's correlation coefficient, and the range of the data rg used to draw the diagonal of the plot.