Hill.sd: Hill.sd

Description Usage Arguments Author(s) References Examples

View source: R/EntropEst.r

Description

Returns the estimated asymptotic standard deviation for the Z estimator of Hill's diversity numbe. Note that this is also the asymptotic standard deviation of the plug-in estimator. See Zhang and Grabchak (2014a) for details.

Usage

1
Hill.sd(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 Hill's deversity numbe. 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

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

EntropyEstimation documentation built on May 29, 2017, 9:08 a.m.