coef.MBWCov {MBAnalysis}R Documentation

Regression coefficients of MBWCov models

Description

Computes regression coefficients from MBWCov.

Usage

## S3 method for class 'MBWCov'
coef(object, ncomp = object$call$ncomp, ...)

Arguments

object

An object resulting from MBWCov.

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.

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

predict.MBWCov

Examples

data(ham)
X=ham$X
block=ham$block
Y=ham$Y
res.mbwcov <- MBWCov(X, Y, block, name.block = names(block))
coef(res.mbwcov)


[Package MBAnalysis version 2.1.0 Index]