Skip to content

simonster/CrossDecomposition.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrossDecomposition

Build Status

Introduction

This package implements canonical correlation in Julia. Someday it will also implement partial least squares. (If you'd like to contribute, please let me know!)

Usage

To perform canonical correlation analysis between matrices X and Y:

using CrossDecomposition
cc = canoncor(X, Y)

cc is a CanonicalCorrelation object that implements the following methods:

  • coef(cc) returns the canonical coefficients (loadings) of X and Y as a tuple of two matrices. The coefficients are scaled so that the scores have identity covariance.
  • cor(cc) returns the vector of canonical correlations.
  • scores(cc) returns the canonical variables (component scores) of X and Y as a tuple of two matrices.

About

Canonical correlation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages