weitrix_hill: Calculate Hill numbers (effective number of observations) for...

Description Usage Arguments Value Examples

View source: R/effective_count.R

Description

Effective numbers of observations. order=0 produces count of non-zero weights. order=1 produces exp(entropy). order=2 produces the inverse Simpson index.

Usage

1
weitrix_hill(weitrix, what = c("row", "col"), order = 2)

Arguments

weitrix

A weitrix object.

what

Calculate for rows ("row") (default) or columns ("col")?

order

Order of the Hill numbers.

Value

A numeric vector of effective numbers of observations.

Examples

1
2
3
4
5
6
7
8
9
weitrix_weights(simwei)

weitrix_hill(simwei, what="row", order=0)
weitrix_hill(simwei, what="row", order=1)
weitrix_hill(simwei, what="row", order=2)

weitrix_hill(simwei, what="col", order=0)
weitrix_hill(simwei, what="col", order=1)
weitrix_hill(simwei, what="col", order=2)

weitrix documentation built on Nov. 8, 2020, 8:10 p.m.