[R-sig-eco] adonis and model selection

Jari Oksanen jari.oksanen at oulu.fi
Thu Aug 5 09:05:59 CEST 2010


On 5/08/10 09:51 AM, "Maarten de Groot" <Maarten.deGroot at nib.si> wrote:

> Dear list,
> 
> I was wondering if there is a possibility to do model selection with the
> method adonis of the package Vegan. If so, could any one explain me
> about it or give me a hint were to look?
> 
Maarten,

Not automatically:

> m <- adonis(dune ~ ., dune.env)
> step(m)
Error in UseMethod("extractAIC") :
  no applicable method for 'extractAIC' applied to an object of class
"adonis"

So there is no extractAIC() function for adonis().

However, update() works and you can do manual model building if you find a
criterion to use:

> update(m, . ~ . - Use)

As usual, contributions are welcome.

Cheers, Jari Oksanen



More information about the R-sig-ecology mailing list