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

Share:

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 (nelson.afanador@mvdalab.com)

Examples

1
2
3
4
5
6
data(Penta)
## Number of bootstraps set to 500 to demonstrate flexibility
## Use a minimum of 1000 (default) for results that support bootstraping
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], 
               ncomp = 2, validation = "oob", boots = 500)
model.matrix(mod1)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.