apaOLS.Residuals(X, Y)
Excel
=apaOLS.Residuals(X, Y)Result
Returns the residuals of an OLS regression. If there is more than one Y variable, returns the results for all Y_i with the same X.
Syntax
X: nRows x nCols matrix of X variables. Each column contains one variable.
Y: nRows x nCols matrix of the Y variables. If there is more than one Y variable, gives results for all Y_i with the same X.
Remarks
The calculations do not assume an intercept. To model a constant, add a column of ones to the X matrix.
