Learn R Programming

mdatools (version 0.7.0)

getRegcoeffs.pls: Regression coefficients for PLS model'

Description

Returns a matrix with regression coefficients for the PLS model which can be applied to a data directly

Usage

"getRegcoeffs"(obj, ncomp = NULL, ...)

Arguments

obj
a PLS model (object of class pls)
ncomp
number of components to return the coefficients for
...
other parameters

Value

A matrix (n of predictors x n of responses) with regression coefficients.

Details

The method recalculates the regression coefficients found by the PLS algorithm taking into account centering and scaling of predictors and responses, so the matrix with coefficients can be applied directly to original data (yp = Xb).

If number of components is not specified, the optimal number, selected by user or identified by a model will be used.