| coef.mvdareg | R Documentation |
Functions to extract information from mvdalab objects.
## S3 method for class 'mvdareg'
coef(object, ncomp = object$ncomp, type = c("coefficients",
"loadings", "weights", "y.loadings"), conf = .95, ...)
object |
an mvdareg object, i.e. a |
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. |
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.
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. |
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.