Hill.z: Hill.z

View source: R/EntropEst.r

Hill.zR Documentation

Hill.z

Description

Returns the Z estimator of Hill's diversity number. This is based on raising the Z estimator of Renyi's equivalent entropy to the 1/(r-1) power. When r=1 returns exp(H), where H is the Z estimator of Shannon's entropy. See Zhang and Grabchak (2014a) for details.

Usage

Hill.z(x, r)

Arguments

x

Vector of counts. Must be integer valued. Each entry represents the number of observations of a distinct letter.

r

Order of Renyi's equivalent entropy this index is based on. Must be a strictly positive real number.

Author(s)

Lijuan Cao and Michael Grabchak

References

Z. Zhang and M. Grabchak (2014a). Entropic representation and estimation of diversity indices. http://arxiv.org/abs/1403.3031.

Examples

 x = c(1,3,7,4,8)
 Hill.z(x,2)  
 
 data = rbinom(10,20,.5)
 counts = tabulate(as.factor(data))
 Hill.z(counts,2)

EntropyEstimation documentation built on Sept. 30, 2024, 9:34 a.m.