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

View source: R/effective_count.R

weitrix_hillR Documentation

Calculate Hill numbers (effective number of observations) for rows or columns

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

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

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)


pfh/weitrix documentation built on Aug. 29, 2024, 1:46 a.m.