MBWCov {MBAnalysis} | R Documentation |
Multiblock Weighted Covariate analysis (MB-WCov)
Description
MB-WCov analysis applied to a set of quantitative blocks of variables.
Usage
MBWCov(
X,
Y,
block,
name.block = NULL,
ncomp = NULL,
scale = TRUE,
scale.block = TRUE,
scale.Y = TRUE,
threshold = 1e-08
)
Arguments
X |
Dataset obtained by horizontally merging all the predictor blocks of variables. |
Y |
Response block of variables. |
block |
Vector indicating the number of variables in each predictor block. |
name.block |
Names of the predictor blocks of variables (NULL by default). |
ncomp |
Number of dimensions to compute. By default (NULL), all the global components are extracted. |
scale |
Logical, if TRUE (by default) the variables in X are scaled to unit variance (all variables in X are centered anyway). |
scale.block |
Logical, if TRUE (by default) each predictor block of variables is divided by the square root of its inertia (Frobenius norm). |
scale.Y |
Logical, if TRUE (by default) then variables in Y are scaled to unit variance (all variables in Y are centered anyway). |
threshold |
Convergence threshold |
Value
optimalcrit |
Numeric vector of the optimal value of the criterion (sum of squared saliences) obtained for each dimension. |
saliences |
Matrix of the specific weights of each predictor block on the global components, for each dimension. |
T.g |
Matrix of normed global components. |
Scor.g |
Matrix of global components (scores of individuals). |
W.g |
Matrix of global weights (normed) associated with deflated X. |
Load.g |
Matrix of global loadings. |
Proj.g |
Matrix of global projection (to compute scores from pretreated X). |
explained.X |
Matrix of percentages of inertia explained in each predictor block. |
cumexplained |
Matrix giving the percentages, and cumulative percentages, of total inertia of X and Y blocks explained by the global components. |
Y |
A list containing un-normed Y components (U), normed Y weights (W.Y) and Y loadings (Load.Y) |
Block |
A list containing block components (T.b) and block weights (W.b) |
References
E. Tchandao Mangamana, R. Glèlè Kakaï, E.M. Qannari (2021). A general strategy for setting up supervised methods of multiblock data analysis. Chemometrics and Intelligent Laboratory Systems, 217, 104388.
See Also
Examples
data(ham)
X=ham$X
block=ham$block
Y=ham$Y
res.mbwcov <- MBWCov(X, Y, block, name.block = names(block))
summary(res.mbwcov)
plot(res.mbwcov)