Hi!!
I have no experience with this program, and I would appreciate if someone could help me here.
I’m trying to run the following command:
result.rcca ← rcc(Y, X, ncomp = 2, method = ‘shrinkage’)
Error: unequal number of rows in ‘X’ and ‘Y’.
My X and Y indeed have different number of rows. Is there any way I can resolve this without deleting some rows?
Thank you in advance for all your help! I really appreciate it!
Best,
Manu
Hi @manuramalho ,
Unfortunately it is a requirement of the algorithm that the two input datasets have an equal number of rows (though they can have different numbers of columns). (r)CCA is used for datasets that are measured on the same samples in order to determine whether these datasets agree.
More specifically, the correlation between the canonical variates of each dataframe is maximised by this procedure. In order to properly calculate these correlations, the variates must be of the same length (ie. the same number of samples).
Hope this helps a bit.
Cheers,
Max.