model.matrix {mvdalab} | R Documentation |
model.matrix
creates a design (or model) matrix.This function returns the model.matrix
of an mvdareg
object.
## S3 method for class 'mvdareg'
model.matrix(object, ...)
object |
an |
... |
additional arguments. Currently ignored. |
"model.matrix.mvdareg"
is used to returns the model.matrix
of an mvdareg
object.
The design matrix for a PLS
model with the specified formula and data.
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
data(Penta)
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
ncomp = 2, validation = "loo")
model.matrix(mod1)