
Between Group Comparison (BGC)
BGC(Data, Group, numc = NULL, ncomp = NULL, Scale = FALSE, graph = FALSE)
a numeric matrix or data frame
a vector of factors associated with group structure
number of components assocaited with PCA on each group
number of components, if NULL number of components is equal to 2
scaling variables, by defalt is FALSE. By default data are centered within groups
should loading and component be plotted
list with the following results:
Original data
Concatenated centered data
Group centered data
Group as a factor vector
Matrix of common loadings
The specific variances of groups
Percentages of total variance recovered associated with each dimension
W. J. Krzanowski (1979). Between-groups comparison of principal components, Journal of the American Statistical Association, 74, 703-707.
A. Eslami, E. M. Qannari, A. Kohler and S. Bougeard (2013). General overview of methods of analysis of multi-group datasets, Revue des Nouvelles Technologies de l'Information, 25, 108-123.
A. Eslami, E. M. Qannari, A. Kohler and S. Bougeard (2013). Analyses factorielles de donnees structurees en groupes d'individus, Journal de la Societe Francaise de Statistique, 154(3), 44-57.
mgPCA
, FCPCA
, DCCSWA
,
DSTATIS
, DGPA
, summarize
,
TBWvariance
, loadingsplot
,
scoreplot
, iris
# NOT RUN {
Data = iris[,-5]
Group = iris[,5]
res.BGC = BGC(Data, Group, graph=TRUE)
loadingsplot(res.BGC, axes=c(1,2))
scoreplot(res.BGC, axes=c(1,2))
# }
Run the code above in your browser using DataLab