Learn R Programming

mvdalab (version 1.4)

coef.mvdareg: Extract Information From a plsFit Model

Description

Functions to extract information from mvdalab objects.

Usage

# S3 method for 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.

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.

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.

See Also

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

Examples

Run this code
# NOT RUN {
data(Penta)
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               ncomp = 2, validation = "loo")
coef(mod1, type = "coefficients")
# }

Run the code above in your browser using DataLab