model.matrix.formula {AlgDesign}R Documentation

Builds a model matrix

Description

Produces a model matrix using expand.formula()

Usage

model.matrix.formula(frml,data,...)

Arguments

frml A formula.
data A data.frame
... Additional arguments passed to model.matrix.default()

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().

Value

A matix.

Author(s)

Bob Wheeler rwheeler@echip.com

Please cite this program as follows:

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


[Package AlgDesign version 1.0-9 Index]