CVA.Rd
This function appends the biplot
object with elements resulting from performing CVA.
an object of class biplot
obtained from preceding function biplot()
.
a vector of the same length as the number of rows in the data matrix with the class indicator for the samples.
the dimension of the biplot. Only values 1
, 2
and 3
are accepted, with default 2
.
the vector indicating which eigenvectors (canonical variates) should be plotted in the biplot, with default 1:dim.biplot
.
a character string indicating which type of CVA to perform. One of "weighted
" (default) for a weighted CVA to be performed (The centring matrix will be a diagonal matrix with the class sizes (\(\mathbf{C} = \mathbf{N}\)), "unweightedCent
" for unweighted CVA to be performed (The centring matrix is the usual centring matrix (\(\mathbf{C} = \mathbf{I}_{G} - G^{-1}\mathbf{1}_{G}\mathbf{1}_{G}'\))) or "unweightedI
" for unweighted CVA to be performed while retaining the weighted centroid (The centring matrix is an indicator matrix (\(\mathbf{C} = \mathbf{I}_{G}\))).
a logical value indicating whether to plot the class means on the biplot.
a character string indicating which method to use to construct additional dimension(s) if the dimension of the canonical space is smaller than dim.biplot
. One of "sample.opt
" (default) for maximising the sample predictivity of the individual samples in the biplot or "Bhattacharyya.dist
" which is based on the decomposition of the Bhattacharyya distance into a component for the sample means and a component for the dissimilarity between the sample covariance matrices.
Object of class CVA with the following elements:
the matrix of the centered and scaled numeric variables.
the data frame of the categorical variables.
the original data.
the vector of category levels for the class variable. This is to be used for colour
, pch
and cex
specifications.
the vector of observations that have been removed.
a logical value indicating whether \(\mathbf{X}\) is centered.
a logical value indicating whether \(\mathbf{X}\) is scaled.
the vector of means for each numerical variable.
the vector of standard deviations for each numerical variable.
the number of observations.
the number of variables.
the vector of category levels for the grouping variable. This is to be used for colour
, pch
and cex
specifications.
the descriptive names to be used for group labels.
the number of groups.
the title of the biplot rendered.
the matrix for transformation to the canonical space.
the inverse of \(\mathbf{L}\).
the vector of eigenvalues of the two-sided eigenvalue problem.
the matrix with each row containing the details of the points to be plotted (i.e. coordinates).
one unit in the positive direction of each biplot axis.
the indicator matrix defining membership of the classes.
the matrix of the class means.
the matrix of the class mean coordinates that are plotted in the biplot.
the vector indicating which canonical variates are plotted in the biplot.
the centring matrix based on different choices of weighting described in arguments.
the between class sums of squares and cross products matrix.
the within class sums of squares and cross products matrix.
the matrix used for prediction from the canonical space (the inverse of \(\mathbf{M}=\mathbf{LV})\).
the first r dimensions of the solution to be plotted.
the matrix with the class sizes on the diagonal.
the matrix with the eigenvalues of \(\mathbf{W}^{-1/2}\mathbf{BW}^{-1/2}\) on the diagonal.
a logical value indicating whether the class means should be plotted in the biplot.
the dimension of the biplot.
the method used to construct additional dimension(s).