File Exchange

image thumbnail

R2 calculator

version 1.0.0.0 (1012 Bytes) by Joris Meurs
Function for direct calculation of the coefficient of determination of two vectors

21 Downloads

Updated 28 Mar 2016

View License

Filname: 'rsquare.m'. This file can be used for directly calculating
the coefficient of determination (R2) of a dataset.
Two input arguments: 'X' and 'Y'
One output argument: 'R2'

X: Vector of x-parameter
Y: Vector of y-paramter
R2: Coefficient of determination

Input syntax: rsquare(X,Y)

Developed by Joris Meurs BASc (2016)

Cite As

Joris Meurs (2020). R2 calculator (https://www.mathworks.com/matlabcentral/fileexchange/56194-r2-calculator), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

I was trying to follow instructions to get rsquared in matlab and couldn't figure it out. This worked perfectly & checked with the data that we did in excel

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux