Dear Matlab community,
I'm evaluating one-variable Spearman rank correlation, simply by invoking:
[rho, pval] = corr(x, y, 'type', 'Spearman');
which works all fine. However, I now thought I'd like to plot my points as a scatter plot, overlaid with the rank correlation best-fit that gives the rho and pval from above. I.e:
and then a line representing the Spearman rank best-fit. However I seem to fail in understanding how to get this line or equation.
It might be a newbie statistics question, but does anyone know how I could get this line?