Skip to content
Prev 2039 / 7420 Next

variance explained for PCoA axes

On 4/04/11 19:24 PM, "Mario Beolco" <mario.beolco at gmail.com> wrote:

            
Mario,

If you ask, you'll get it: If you call cmdscale with argument eig = TRUE or
x.ret = TRUE or add = TRUE, the output will contain item GOF (= "goodness of
fit") which is as close to the R2 as you can get in PCoA. However, you must
very carefully read the documentation (?cmdscale) and check the version of R
you use: the definition of GOF changes in R 2.13.0 (now in beta), and if I
remember correctly, it also changed during R 2.12.x (but my memory can fail
here: GOF was fixed last October, but I'm not quite sure that these fixes
were ported to the 2.12.x releases). Moreover, at some stages (2.11.x and
earlier) the calculation of GOF didn't follow the ?cmdscale documentation. A
bit messy, but R 2.13.0 at least has a fixed GOF, and wcmdscale in vegan has
followed main R -- sometimes it followed R ahead of R. Just ask for GOF, and
you'll get it.

Cheers, Jari Oksanen