model.matrix.ols: A fix for the 'model.matrix'

Description Usage Arguments Value

View source: R/rms_SandwichAddon.R

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

1
2
## S3 method for class 'ols'
model.matrix(object, ...)

Arguments

object

A Model

...

Parameters passed on

Value

matrix


Greg documentation built on July 1, 2020, 6:59 p.m.