lm_function: Compute residuals from OLS model
Description
Estimate residuals from OLS model.
Usage
lm_function(y_data, x_data)
Arguments
y_data
A vector for the left hand variable.
x_data
A matrix with right hand variables.
Value
A numeric vector with residuals from OLS regression.