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

View source: R/rms_SandwichAddon.R

model.matrix.olsR 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


gforge/Greg documentation built on Feb. 3, 2024, 5:37 a.m.