Skip to content
Prev 4101 / 7420 Next

vegan RsquareAdj() for lm models

Paolo,

See ?RsquareAdj for the call interface. The default method can be called as RsquareAdj(x, n, m), and in the default method x is the unadjusted correlation, n is the number of observations and m is the number of parameters (degrees of freedom) in the fitted model. Specific methods for univariate lm or for rda (and some others) find these variables in the result object, but then they just call the default method with the found x, n and m. You can build your model on that. It is possible to build a specific function for mlm objects, but nobody has done so in vegan.

You cannot build an rda design without an intercept. It was a conscious design decision to make this impossible without hacking the rda.default code (I even say this in decision-vegan vignette). I am not going to make easy to have non-centred RDA: I care too much about people and i don't want to do evil. If you really *know* that you need non-centred RDA. then you know how to change those lines of code in rda.default. 

Cheers, Jari Oksanen