Rank: 353028 based on 0 downloads (last 30 days) and 0 file submitted
photo

Oliver

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Oliver
Updated File Comments Rating
27 Aug 2012 R-square: The coefficient of determination RSQUARE is a simple routine for computing R-square (coefficient of determination). Author: Jered Wells

Hi,

is there a difference between this function and using the square of the Matlab function corr(x,y)

since
x = 0:0.1:10;
y = 2.*x + 1 + randn(size(x));
p = polyfit(x,y,1);
f = polyval(p,x);
[r2 rmse] = rsquare(y,f);

and corr(x',y')^2

gives the same result for r2.

Contact us