sp.assoc(matr)detailsN
Number of species.
S
Number of plots occupied by certain species.
n
total number of species for each plot.
Tj
mean species number for all the plots.
t
Variance of species relative frequency:
sigma^{2}{T}= sum{i}=1^{s}P{i}(1-P{i}).
Variance of species number:
S^{2}{T}=({1}{N})sum{j=1}^{N}(T{j}-t)^{2}.
Species reative frequency
P{i}={n{i}}{N}.
Variance ratio:
If VR > 1 Positively associated,
If VR < 1 Negative associated
VR = {S{T}^{2}}/{sigma{T}^{2}}
W: used in comparison with chi square with n degrees of freedom.
W = VR * Nsp.pair for association between each pair of species.data(testdata)
spmatrix <- data2mat(testdata)
sp.assoc(spmatrix)Run the code above in your browser using DataLab