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

9.44 score 15 stars 7 packages 200 scripts 4.4k downloads 16 mentions 12 exports 84 dependencies

Last updated 7 months agofrom:e0bbf1506a. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 03 2024
R-4.5-winOKNov 03 2024
R-4.5-linuxOKNov 03 2024
R-4.4-winNOTENov 03 2024
R-4.4-macNOTENov 03 2024
R-4.3-winNOTENov 03 2024
R-4.3-macNOTENov 03 2024

Exports:can_lmcancorcandisccandiscListdataIndexpredictor.namesredundancyscoresvarOrdervecscalevectorsWilks

Dependencies:abindbackportsbase64encbootbroombslibcachemcarcarDataclicolorspacecowplotcpp11DerivdigestdoBydplyrevaluatefansifarverfastmapfontawesomeFormulafsgenericsggplot2gluegtableheplotshighrhtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamodelrmunsellnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rappdirsRColorBrewerRcppRcppEigenrglrlangrmarkdownsassscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunyaml

Diabetes data: heplots and candisc examples

Rendered fromdiabetes.Rmdusingknitr::rmarkdownon Nov 03 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