aic.nest: Nestedness of samples using AIC

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Test if two empirical samples are drwan from the same or different communities

Usage

1
    aic.nest(comm1, comm2, base=exp(1))

Arguments

comm1, comm2

lists of abundance data from two empirical samples

base

base of the log used in the calculation of Shannon's diversity

Details

This function tests if two empirical samples are drawn from the same community, based on the AIC scores.

Value

returns two AIC scores, the first assuming the two empirical samples are drawn from the same distribution, the other assuming the two empirical samples are from different distributions

Author(s)

Matthew Vavrek

See Also

simpson

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#for example, two different communities
a<-c(12,4,12,1,4,0,6,5,0,0,0)
b<-c(0,11,4,3,6,7,7,2,23,5,8)

#if the aic score is lower, it is the better model
aic.nest(a,b)

#from the same community
a<-c(5,6,5,6,5,6,5,6,5,2,1,1)
b<-c(2,3,2,3,2,3,2,3,2,1,0,0)
aic.nest(a,b)

fossil documentation built on March 23, 2020, 5:06 p.m.