CCA bug? #506
Replies: 4 comments
-
Your VIFs look so large as to indicate that some of your 9 variables are essentially perfectly linearly correlated with one or a linear combination of other variables. This suggests that the rank of your environmental data matrix is much lower than 9. In other words, you don't have 9 independent variables, instead having 3 that are not linear combinations of the others. |
Beta Was this translation helpful? Give feedback.
-
Hi Gavin, thanks so much for reply. Indeed, these variables present a high correlation. However, it sounds very strange to me, because when I analyze the last 4 variables [,6:9], or intermediate variables, [, 3:8], the CCA continues using only the first 3 variables. And yet, when I use other statistical programs, all variables are plotted on the graph. However, I understand your comment. And again, thank you very much for the help. |
Beta Was this translation helpful? Give feedback.
-
What was the exact command you used? The one in your example ( |
Beta Was this translation helpful? Give feedback.
-
We have absolutely no information to answer your questions. The VIFs are high-ish, but I expect you to get
Aliasing means that some variables are copies of other variables or linear combinations of other variables. This will also be reflected in printed output which gives you to the ranks of constrained and residual unconstrained components. In case of aliasing, the constrained rank is lower than the number of columns in your model matrix. That rank also gives you the number of axes calculated, and it is the number of independent dimensions you can have in your data. |
Beta Was this translation helpful? Give feedback.
-
Hi, recently I've been working on a canonical correspondence analysis (CCA) and I'm fixing a bug.
In my matrix of environmental variables, I have 9 columns in total.
when I apply the cca(x,y) function, it only analyzes the first 3 variables.
I tried using some adaptations like cca(x, [,4:9]), cca(x, [,5:9]), thus limiting which columns it would use to perform the analysis. And yet only the first 3 variables are read.... Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions