model.matrix.ols {Greg}R Documentation

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 class 'ols'
model.matrix(object, ...)

Arguments

object

A Model

...

Parameters passed on

Value

matrix


[Package Greg version 2.0.2 Index]