CDA.test: Significance test for CDA

View source: R/CDA.test.R

CDA.testR Documentation

Significance test for CDA

Description

Performs a significance test for correspondence discriminant analysis. See Details.

Usage

CDA.test(X, fact, ncomp = NULL, ...)

Arguments

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 NULL nlevels(fact)-1 are used. See Details.

...

other arguments to pass to summary.manova. See Details.

Details

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.

Value

An ANOVA or MANOVA table.

Author(s)

Maxime HERVE <maxime.herve@univ-rennes1.fr>

See Also

discrimin.coa, summary.manova

Examples

require(ade4)
data(perthi02)

CDA.test(perthi02$tab,perthi02$cla)

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.