Package: candisc 0.9.0

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.

Authors:Michael Friendly [aut, cre], John Fox [aut]

candisc_0.9.0.tar.gz
candisc_0.9.0.zip(r-4.5)candisc_0.9.0.zip(r-4.4)candisc_0.9.0.zip(r-4.3)
candisc_0.9.0.tgz(r-4.4-any)candisc_0.9.0.tgz(r-4.3-any)
candisc_0.9.0.tar.gz(r-4.5-noble)candisc_0.9.0.tar.gz(r-4.4-noble)
candisc_0.9.0.tgz(r-4.4-emscripten)candisc_0.9.0.tgz(r-4.3-emscripten)
candisc.pdf |candisc.html
candisc/json (API)
NEWS

# Install 'candisc' in R:
install.packages('candisc', repos = c('https://friendly.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/friendly/candisc/issues

Datasets:
  • Grass - Yields from Nitrogen nutrition of grass species
  • HSB - High School and Beyond Data
  • Wine - Chemical composition of three cultivars of wine
  • Wolves - Wolf skulls

On CRAN:

dimension-reductionmultivariate-linear-modelsvisualization

12 exports 15 stars 4.78 score 83 dependencies 26 dependents 16 mentions 183 scripts 4.8k downloads

Last updated 4 months agofrom:e0bbf1506a. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 04 2024
R-4.5-winNOTESep 04 2024
R-4.5-linuxNOTESep 04 2024
R-4.4-winNOTESep 04 2024
R-4.4-macNOTESep 04 2024
R-4.3-winNOTESep 04 2024
R-4.3-macNOTESep 04 2024

Exports:can_lmcancorcandisccandiscListdataIndexpredictor.namesredundancyscoresvarOrdervecscalevectorsWilks

Dependencies:abindbackportsbase64encbootbroombslibcachemcarcarDataclicolorspacecowplotcpp11DerivdigestdoBydplyrevaluatefansifarverfastmapfontawesomefsgenericsggplot2gluegtableheplotshighrhtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamodelrmunsellnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rappdirsRColorBrewerRcppRcppEigenrglrlangrmarkdownsassscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunyaml

Diabetes data: heplots and candisc examples

Rendered fromdiabetes.Rmdusingknitr::rmarkdownon Sep 04 2024.

Last update: 2024-05-06
Started: 2017-09-17

Readme and manuals

Help Manual

Help pageTopics
Visualizing Generalized Canonical Discriminant and Canonical Correlation Analysiscandisc-package
Transform a Multivariate Linear model mlm to a Canonical Representationcan_lm
Canonical Correlation Analysiscancor cancor.default cancor.formula coef.cancor print.cancor scores scores.cancor summary.cancor
Canonical discriminant analysiscandisc candisc.mlm coef.candisc plot.candisc print.candisc summary.candisc
Canonical discriminant analysescandiscList candiscList.mlm plot.candiscList print.candiscList summary.candiscList
Indices of observations in a model data framedataIndex
Yields from Nitrogen nutrition of grass speciesGrass
Canonical Correlation HE plotsheplot.cancor heplot3d.cancor
Canonical Discriminant HE plotsheplot.candisc heplot3d.candisc
Canonical Discriminant HE plotsheplot.candiscList heplot3d.candiscList
High School and Beyond DataHSB
Canonical Correlation Plotsplot.cancor
Get predictor names from a 'lm'-like modelpredictor.names predictor.names.default
Canonical Redundancy Analysisprint.cancor.redundancy redundancy
Order variables according to canonical structure or other criteriavarOrder varOrder.data.frame varOrder.default varOrder.mlm
Scale vectors to fill the current plotvecscale
Draw Labeled Vectors in 2D or 3Dvectors vectors3d
Wilks Lambda Tests for Canonical CorrelationsWilks Wilks.cancor Wilks.candisc
Chemical composition of three cultivars of wineWine
Wolf skullsWolves