candisc: Visualizing Generalized Canonical Discriminant and Canonical Correlation Analysis

Functions for computing and visualizing generalized canonical discriminant analyses and canonical correlation analysis for a multivariate linear model. Traditional canonical discriminant analysis is restricted to a one-way 'MANOVA' design and is equivalent to canonical correlation analysis between a set of quantitative response variables and a set of dummy variables coded from the factor variable. The 'candisc' package generalizes this to higher-way 'MANOVA' designs for all factors in a multivariate linear model, computing canonical scores and vectors for each term. The graphic functions provide low-rank (1D, 2D, 3D) visualizations of terms in an 'mlm' via the 'plot.candisc' and 'heplot.candisc' methods. Related plots are now provided for canonical correlation analysis when all predictors are quantitative.

Version: 0.9.0
Depends: R (≥ 3.5.0), heplots (≥ 0.8-6)
Imports: car, graphics, stats
Suggests: rgl, carData, corrplot, knitr, rmarkdown, MASS, rpart, rpart.plot
Published: 2024-05-06
DOI: 10.32614/CRAN.package.candisc
Author: Michael Friendly ORCID iD [aut, cre], John Fox ORCID iD [aut]
Maintainer: Michael Friendly <friendly at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Language: en-US
Citation: candisc citation info
Materials: NEWS
In views: Psychometrics
CRAN checks: candisc results


Reference manual: candisc.pdf
Vignettes: Diabetes data: heplots and candisc examples


Package source: candisc_0.9.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): candisc_0.9.0.tgz, r-oldrel (arm64): candisc_0.9.0.tgz, r-release (x86_64): candisc_0.9.0.tgz, r-oldrel (x86_64): candisc_0.9.0.tgz
Old sources: candisc archive

Reverse dependencies:

Reverse imports: MorphoTools2, MultivariateAnalysis, smacof, SurveyCC
Reverse suggests: Guerry, heplots, KnowBR


Please use the canonical form to link to this page.