Replies: 4 comments
-
Your expectation was wrong. In constrained analysis you should expect (at most) as many constrained axes as the number of constraints. The number of constrained axes depends on the rank of constraints (basically: it can be less if constraints are not independent). Variable |
Beta Was this translation helpful? Give feedback.
-
Aha! Thanks! Does this mean that, in the case of the model RDA1: variation explained by day |
Beta Was this translation helpful? Give feedback.
-
No, each axis is a linear combination of the terms in the model. I forget now how exactly you see this, but I think you do it through the > scores(rd_mocking, display = "reg")
RDA1 RDA2
day 0.33649315 -0.1763321
speciesB 0.03418037 -1.0984374
speciesC 0.92333491 -0.3511435
day:speciesB 0.01003758 -0.0228299
day:speciesC 0.03955184 -0.1043876
attr(,"const")
[1] 4.656123 or with the |
Beta Was this translation helpful? Give feedback.
-
Regression coefficients indeed tell how the axes were constructed. However, Cajo ter Braak's recommendation is to use the option that is given in vegan as |
Beta Was this translation helpful? Give feedback.
-
Hi, I am plotting some RDA of morphological data against some experimental treatments in vegan. The morphological data is continous and the explanatory variables are continuous and categorical. I got confused about why the number of RDA axes is usually less than the amount of response variables in the dataset.
From what I understood, the algorithm behind RDA fits first a linear (multiple) regression of every response variable against the explanatory variables, returning a new matrix of expected values. Then, it makes a PCA on this matrix of expected values. The result of this process are the so called RDA axes. Thus, I would expect to have as many RDA axes as response variables are in the dataset. So why I get usually only less than that?
As example, I made this mock data where a matrix of 10 continuous response variables depends linearly on two variables: "day" (which is continuous) and "species" (which is categorical).
If I run an RDA with "day", I get only 1 RDA axis:
If I run an RDA with "species", I get 2 RDA axes:
If I run an RDA with both "day" and "species" I get 5 axes:
Is it that vegan "decides" the number of RDA axes to give in the output based on the amount of variation explained in the model? or am I understanding wrong how RDA is done?
Thanks for all the feedback on vegan!
Beta Was this translation helpful? Give feedback.
All reactions