vcov_custom
creates the Variance-Covariance matrix of a regression. It
is used instead of the vcov
because the latter doesn't
work with .lm.fit
.
vcov_custom(indep_vars, model_res)
A matrix representing the independent variables.
A numeric vector representing the regression's residuals.
vcov_custom
returns a Variance-Covariance matrix.