apaOLS.R2.Adjusted(X, Y)
Excel
=apaOLS.R2.Adjusted(X, Y)Result
Returns the R-squared of an OLS regression, adjusted for the number of variables.
Syntax
X: nRows x nCols matrix of X variables. Each column contains one variable.
Y: r x 1 data matrix
Algorithm
n is the number of observations, k the number of variables (including constants).
Remarks
Adjusted with the factor (n − 1)/(n − k).
