Skip to content
Prev 3004 / 7420 Next

Testing difference between diversity indices with vegan::oecosimu

On Thu, Apr 26, 2012 at 12:17 AM, Kay Cichini <kay.cichini at gmail.com> wrote:
Dear Kay,

I am not sure about any possible pitfalls with your approach, but I
have tested the same data using the randomisation functions of the
"rich" library, and found that neither the Simpson diversity nor the
simple species richness differ significantly among the defined groups.

Here are the results following your example:

library(rich)

# prepare data
one <- as.data.frame(dune[gr == "1", ])
two <- as.data.frame(dune[gr == "2", ])

data <- list(one, two)

# compare cumulative species richness
c2cv(com1=data[[1]],com2=data[[2]],nrandom=1999)
#$res
#
#cv1                  27.0000
#cv2                  28.0000
#cv1-cv2              -1.0000
#p                     0.4220 # N.S.
#quantile 0.025       -4.0000
#quantile 0.975        4.0000
#randomized cv1-cv2    0.0225
#nrandom            1999.0000

# compare the Simpson diversity
simp.one <- diversity(dune[gr == "1", ], "simp")
simp.two <- diversity(dune[gr == "2", ], "simp")
c2m(pop1=simp.one,pop2=simp.two,nrandom=1999,verbose=FALSE)
#done.
#$res
#
#mv1                 8.630e-01
#mv2                 8.773e-01
#mv1-mv2            -1.439e-02
#p                   2.440e-01 # N.S.
#quantile 0.025     -3.456e-02
#quantile 0.975      3.351e-02
#randomized mv1-mv2  3.899e-04
#nrandom             1.999e+03
#########################

The possible pitfalls might be hidden under the different results ;-)

Cheers,
Ivailo