Learn R Programming

MBAnalysis (version 2.1.1)

coef.MBPLS: Regression Coefficients of MBPLS

Description

Computes regression coefficients from MBPLS.

Usage

# S3 method for MBPLS
coef(object, ncomp = object$call$ncomp, ...)

Value

A matrix of regression coefficients where each row corresponds to a variable in X and each column corresponds to a variable in Y.

Arguments

object

An object resulting from MBPLS.

ncomp

The number of components to be considered in the model. By default, all components computed in MBPLS or MBWCov are considered.

...

further arguments passed to or from other methods.

See Also

predict.MBPLS

Examples

Run this code
data(ham)
X=ham$X
block=ham$block
Y=ham$Y
res.mbpls <- MBPLS(X, Y, block, name.block = names(block))
coef(res.mbpls)

Run the code above in your browser using DataLab