Learn R Programming

AlgDesign (version 1.2.1.1)

model.matrix.formula: Builds a model matrix

Description

Produces a model matrix using expand.formula()

Usage

# S3 method for formula
model.matrix(frml,data,...)

Value

A matix.

Arguments

frml

A formula.

data

A data.frame

...

Additional arguments passed to model.matrix.default()

Author

Bob Wheeler bwheelerg@gmail.com

Please cite this program as follows:

Wheeler, R.E. (2004). model.matrix.formula. AlgDesign. The R project for statistical computing https://www.r-project.org/

Details

This is a method function signaled by a formula as the first argument. It causes the formula to be translated by expand.formula() before calling model.matrix.default().