
Functions to extract information from mvdalab
objects.
# S3 method for mvdareg
coef(object, ncomp = object$ncomp, type = c("coefficients",
"loadings", "weights", "y.loadings"), conf = .95, ...)
a named vector, or matrix, of coefficients.
a named vector, or matrix, of loadings.
a named vector, or matrix, of weights.
a named vector, or matrix, of y.loadings.
an mvdareg object, i.e. a plsFit
.
the number of components to include in the model (see below).
specify model parameters to return.
for a bootstrapped model, the confidence level to use.
additional arguments. Currently ignored.
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
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.
coef
, coefficients.boots
, coefficients
,
loadings
, loadings.boots
, weights
,
weight.boots
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