Description Usage Arguments Details Value Author(s) References

Calculate Shannon Index of phenotypic diversity given a list of binary alleles.

1 | ```
shannon(x)
``` |

`x` |
A list of binary values or alleles. |

The Shannon index of phenotypic diversity, S, derived from the Shannon-Weaver index (Shannon, 1948):

*S=sum(p(i)log2(p(i)))*

where *p_{i}* is the frequency of the band presence at the ith marker within the population. This index gives more
weight to the presence than to the absence of bands. This has no real biological support, although it might account for the occurrence of homoplasic absences of bands (Bonin et al., 2007)

The value of the Shannon Index of phenotypic diversity

Andres Perez-Figueroa ([email protected])

Bonin, A., Ehrich, D. and Manel S. 2007. Statistical analysis of amplified fragment length polymorphism data: a toolbox for molecular ecologists and evolucionists. *Molecular Ecology* 16, 3737-3758.

Shannon, C. E. 1948. A mathematical theory of comunication. *Bell System Technical Journal* 27, 379-423.

msap documentation built on May 2, 2019, 6:52 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.