Description Usage Arguments Details Author(s) See Also Examples
Performs a principle component analysis with subject to an instrumental grouping structure.
1 |
mat |
An object of class matrix with response vectors in columns and observations per subject in rows. |
group |
A factor allocating the rows of the response matrix into several clusters. |
The main part of the code is taken from functions dudi.pca and bca of package ade4.
Daniel Gerhard
1 2 3 4 5 6 7 8 9 10 | ### see ?coagulation in package SimComp
data("coagulation", package = "SimComp")
### level "S" is the standard, "H" and "B" are novel procedures
coagulation$Group <- relevel(coagulation$Group, ref = "S")
(bcaobj <- mbca(mat=as.matrix(coagulation[,c(2,3,4)]), coagulation$Group))
plot(bcaobj)
bcatest(bcaobj, Klist="Tukey", nperm=999)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.