Back to main topic


Compute r-square, which is a measure of what fraction of total variance in the dependent variable may be explained by the model. Formally, R-square is the square of the correlation between the response values and the predicted response values.


For details see source code in:      Dataset.m