This function uses a lm.rrpp
fit to produce the
data and the groups to use in lda
or
qda
.There are two general purposes of this
function that are challenging when using lda
, directly.
First, this function finds the inherent groups in the lm.rrpp
fit, based on factor levels. Second,
this function find pseudodata - rather than the observed data -
that involve either or both a principal component projection
with appropriate (or user-prescribed) dimensions and a transformation.
The principal component projection incorporates GLS
mean-centering, where appropriate. Transformation involves holding
non-grouping model terms constant. This is accomplished by using
the fitted values from the lm.rrpp
fit and the residuals
of a lm.rrpp
fit with grouping factors, alone. When,
the lm.rrpp
fit contains only grouping factors, this
function produces raw data projected on principal components.
Regardless of variables input, data are projected onto PCs. The
purpose of this function is to predict
group association, and working in PC space facilitates this objective.
This is a new function and not all limits and scenarios have been
tested before its release. Please report
any issues or limitations or strange results to the maintainer.
Notes for RRPP 0.5.0 and subsequent versions
Prior to version 0.5.0, the function, classify
, was
available. This function has been deprecated.
It mimicked lda
with added features that are
largely retained with prep.lda
. However,
prep.lda
facilitates the much more diverse options available
with lda
.