model.matrix.ocm: Model Matrix

Description Usage Arguments Value Author(s)

View source: R/ocm.methods.R

Description

model.matrix.ocm is the ordinalCont specific method for the generic function model.matrix, which extracts the model matrix from objects of class ocm.

Usage

1
2
## S3 method for class 'ocm'
model.matrix(object, random.terms = TRUE, ...)

Arguments

object

an object of class ocm, usually, a result of a call to ocm.

random.terms

a logical indicating if random terms have to be included in the terms object. Defaults to TRUE.

...

further arguments passed to or from other methods.

Value

A design (or model) matrix with the variables needed to obtain the object x, e.g., by expanding factors to a set of dummy variables and expanding interactions similarly.

Author(s)

Maurizio Manuguerra, Gillian Heller


ordinalCont documentation built on Dec. 3, 2020, 1:06 a.m.