Finally, since we aren’t actually interested in seeing the regressions at this point, there is a more direct way to proceed. The calculator function Rsq(matrix,variable) computes the R2 in the regression of the variable on the variables in the matrix, which is exactly what we need. Thus,