Learn R Programming

MonoPoly (version 0.2-8)

model.matrix.monpol: Construct Design Matrices

Description

model.matrix creates a design (or model) matrix for monpol objects.

Usage

## S3 method for class 'monpol':
model.matrix(object, scale = c("original", "fitted"), ...)

Arguments

object
A monpol object.
scale
Create design matrix on the original scale of the data or on the scale used during fitting.
...
Additional optionals arguments. At present no optional arguments are used.

Value

  • Design matrix created from the model object object.

Details

This is the model.matrix method for objects inheriting from class "monpol".