get_coef {morepls} | R Documentation |
Standardized and raw coefficients
Description
Computes the standardized and raw coefficients of a PLS regression, with p-values and confidence intervals from a jackknife procedure.
Usage
get_coef(object, y = NULL, ncomp = NULL,
ci = 0.95, raw = FALSE)
Arguments
object |
an object of class |
y |
the name of the response variable whose coefficients are plotted. If |
ncomp |
the number of components to use for computing coefficients |
ci |
the confidence level of the confidence interval. Default is 0.95. |
raw |
logical. If |
Value
A data frame with coefficients, standard deviation, t-values, p-values and confidence intervals.
Author(s)
Nicolas Robette
References
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.
Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.
See Also
Examples
library(pls)
data(yarn)
pls <- mvr(density ~ NIR,
ncomp = 5,
data = yarn,
validation = "CV",
method = "oscorespls",
jackknife = TRUE)
res <- get_coef(pls)
head(res)