Canonical correlation analysis - remove canonical variates from data X

1 Ansicht (letzte 30 Tage)
Knut Skaug
Knut Skaug am 19 Jul. 2022
Hello,
I'm working through canonical correlation analysis and would like to understand whether/how this apply for removing sources from the data input X.
Following this matlab example: (https://se.mathworks.com/help/stats/canoncorr.html)
load carbig;
data = [Displacement Horsepower Weight Acceleration MPG];
nans = sum(isnan(data),2) > 0;
X = data(~nans,1:3);
Y = data(~nans,4:5);
[A,B,r,U,V] = canoncorr(X,Y);
Is it possible to project our the first sources in U from the data matrix X? I am used to doing this with pca - project out sources - but have not understood how to do it with canoncorr, or if it is possible.
Usually from my reduced rank data X, U will have less canonical components than X there are columns in X.
Any help is appreciated.

Antworten (0)

Kategorien

Mehr zu Analysis of Variance and Covariance finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by