coef.MBPLS {MBAnalysis} | R Documentation |
Regression coefficients of MBPLS models
Description
Computes regression coefficients from MBPLS
.
Usage
## S3 method for class 'MBPLS'
coef(object, ncomp = object$call$ncomp, ...)
Arguments
object |
An object resulting from |
ncomp |
The number of components to be considered in the model. By default, all components computed in |
... |
further arguments passed to or from other methods. |
Value
A matrix of regression coefficients where each row corresponds to a variable in X and each column corresponds to a variable in Y.
See Also
Examples
data(ham)
X=ham$X
block=ham$block
Y=ham$Y
res.mbpls <- MBPLS(X, Y, block, name.block = names(block))
coef(res.mbpls)
[Package MBAnalysis version 2.1.0 Index]