Learn R Programming

mvdalab (version 1.7)

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

Description

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

Usage

# S3 method for mvdareg
model.matrix(object, ...)

Value

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

Arguments

object

an mvdareg object

...

additional arguments. Currently ignored.

Author

Nelson Lee Afanador (nelson.afanador@mvdalab.com)

Details

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

Examples

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

Run the code above in your browser using DataLab