CDA.test | R Documentation |
Performs a significance test for correspondence discriminant analysis. See Details.
CDA.test(X, fact, ncomp = NULL, ...)
X |
a data frame of dependent variables (typically contingency or presence-absence table). |
fact |
factor giving the groups. |
ncomp |
an integer giving the number of components to be used for the test. If |
... |
other arguments to pass to |
CDA consists in two steps: building a correspondence analysis (CA) on X
, then using row coordinates on all CA components as input variables for a linear discriminant analysis. CDA.test
builds the intermediate CA, then uses the first ncomp
components to test for an effect of fact
. If 1 component is used the test is an ANOVA, if more than 1 component are used the test is a MANOVA.
An ANOVA or MANOVA table.
Maxime HERVE <maxime.herve@univ-rennes1.fr>
discrimin.coa
, summary.manova
require(ade4)
data(perthi02)
CDA.test(perthi02$tab,perthi02$cla)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.