coef.mvdareg: Extract Information From a plsFit Model

coef.mvdaregR Documentation

Extract Information From a plsFit Model

Description

Functions to extract information from mvdalab objects.

Usage

## S3 method for class 'mvdareg'
coef(object, ncomp = object$ncomp, type = c("coefficients",
    "loadings", "weights", "y.loadings"), conf = .95, ...)

Arguments

object

an mvdareg object, i.e. a plsFit.

ncomp

the number of components to include in the model (see below).

type

specify model parameters to return.

conf

for a bootstrapped model, the confidence level to use.

...

additional arguments. Currently ignored.

Details

These are usually called through their generic functions coef and residuals, respectively. coef.mvdareg is used to extract the regression coefficients, loadings, or weights of a PLS model.

If comps is missing (or is NULL), all parameter estimates are returned.

Value

coefficients

a named vector, or matrix, of coefficients.

loadings

a named vector, or matrix, of loadings.

weights

a named vector, or matrix, of weights.

y.loadings

a named vector, or matrix, of y.loadings.

Author(s)

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

See Also

coef, coefficients.boots, coefficients, loadings, loadings.boots, weights, weight.boots

Examples

data(Penta)
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               ncomp = 2, validation = "loo")
coef(mod1, type = "coefficients")

mvdalab documentation built on Oct. 6, 2022, 1:05 a.m.