Produces a model matrix using expand.formula()
# S3 method for formula
model.matrix(frml,data,...)
A matix.
A formula.
A data.frame
Additional arguments passed to model.matrix.default()
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/
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().