weitrix_hill {weitrix} | R 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)

[Package weitrix version 1.4.0 Index]