model.matrix.ols: A fix for the model.matrix
Description
The model.matrix.lm()
that the ols()
falls back upon
"forgets" the intercept value and behaves unreliable in
the vcovHC()
functions. I've therefore created this sub-function
to generate the actual model.matrix()
by just accessing the formula.
Usage
# S3 method for ols
model.matrix(object, ...)
Arguments
- object
A Model
- ...
Parameters passed on