model.matrix.mvdalab: 'model.matrix' creates a design (or model) matrix.

Description Usage Arguments Details Value Author(s) Examples

Description

This function returns the model.matrix of an mvdareg object.

Usage

1
2
## S3 method for class 'mvdareg'
model.matrix(object, ...)

Arguments

object

an mvdareg object

...

additional arguments. Currently ignored.

Details

"model.matrix.mvdareg" is used to returns the model.matrix of an mvdareg object.

Value

The design matrix for a PLS model with the specified formula and data.

Author(s)

Nelson Lee Afanador ([email protected])

Examples

1
2
3
4
data(Penta)
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], 
               ncomp = 2, validation = "loo")
model.matrix(mod1)

mvdalab documentation built on Oct. 4, 2017, 5:06 p.m.