Beta | R Documentation |
Computes regression coefficients from MBPLS
or MBWCov
.
Beta(res, ncomp = res$call$ncomp)
res |
An object resulting from |
ncomp |
The number of components to be considered in the model. By default, all components computed in |
A matrix of regression coefficients where each row corresponds to a variable in X and each column corresponds to a variable in Y.
predict.MBPLS
predict.MBWCov
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.