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 mvr from pls package. It must be cross-validated with jackknife = TRUE

y

the name of the response variable whose coefficients are plotted. If NULL (default), the first response variable is used.

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 FALSE (default), standardized coefficients are computed. If TRUE, raw coefficients are computed.

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

plo_coef

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)

[Package morepls version 0.1 Index]