Skip to content
Prev 2629 / 7420 Next

order of explanatory variables in vegan CCA

Matt & Gav,

I've seen this before, and I think this can be difficult to handle in vegan: The problem is not in vegan, and it is not in R, but it is in LAPACK library. When I last had this problem, I hacked the vegan code and ran svd() within cca/rda with option LINPACK = TRUE. This helped me to get around the problem. 

I think that LAPACK DGESDD error code 1 tries to tell in a cryptic way that the convergence failed. It is surprising to hear that reordering data helped here. Looks like DGESDD failed in pivoting the data when it should have done so. Are the variables very differently scaled? Vegan does not scale explanatory variables in cca/rda/capscale, but you could try if manual scaling helps here. If scaling helps, then we could re-consider scaling of constraints within cca/rda as a safe option. However, that would break at least predict(..., newdata=) and probably something else and cannot be done light-heartedly. 

Cheers, Jari Oksanen
On 23/12/2011, at 21:49 PM, Gavin Simpson wrote: