Description Usage Arguments Details Value References Examples

McIntosh dominance index D

1 | ```
mcintosh_d(x)
``` |

`x` |
A numeric vector of species counts. |

For a vector `x`

of raw species counts, the McIntosh dominance index is
defined as

*D = \frac{N - U}{N - √{N}},*

where *N* is the total
number of counts and *U = √{∑_i x_i^2}*.

This index is appropriate only for raw counts, not transformed counts or proportions.

Equivalent to `mcintosh_d()`

in `skbio.diversity.alpha`

.

The McIntosh dominance index, *0 ≤q D < 1*. The index is undefined
when the total number of counts is 1 or 0, in which case we return
`NaN`

.

McIntosh RP. An index of diversity and the relation of certain concepts to diversity. Ecology. 1967;48:1115-1126.

1 2 | ```
x <- c(15, 6, 4, 0, 3, 0)
mcintosh_d(x)
``` |

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.