Beta {MBAnalysis}R Documentation

Regression coefficients of MBPLS or MBWCov models

Description

Computes regression coefficients from MBPLS or MBWCov.

Usage

Beta(res, ncomp = res$call$ncomp)

Arguments

res

An object resulting from MBPLS or MBWCov.

ncomp

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

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.MBPLS predict.MBWCov

Examples

# With MBPLS

data(ham)
X=ham$X
block=ham$block
Y=ham$Y
res.mbpls <- MBPLS(X, Y, block, name.block = names(block))
Beta(res.mbpls)

# With MBWCov

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


[Package MBAnalysis version 2.0.2 Index]