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

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

## Arguments

weitrix A weitrix object. Calculate for rows ("row") (default) or columns ("col")? Order of the Hill numbers.

## Value

A numeric vector of effective numbers of observations.

## Examples

weitrix_weights(simwei)
#>   1 2 3 4 5
#> 1 3 3 6 0 5
#> 2 3 3 2 3 2
#> 3 1 2 3 1 1
#> 4 4 2 2 4 2
#> 5 3 2 4 2 3
#> 6 4 5 5 2 3
#> 7 3 4 1 7 0
weitrix_hill(simwei, what="row", order=0)
#> 1 2 3 4 5 6 7
#> 4 5 5 5 5 5 4 weitrix_hill(simwei, what="row", order=1)
#>        1        2        3        4        5        6        7
#> 3.817967 4.909124 4.455660 4.710651 4.826383 4.754478 3.355356 weitrix_hill(simwei, what="row", order=2)
#>        1        2        3        4        5        6        7
#> 3.658228 4.828571 4.000000 4.454545 4.666667 4.569620 3.000000
weitrix_hill(simwei, what="col", order=0)
#> 1 2 3 4 5
#> 7 7 7 6 6 weitrix_hill(simwei, what="col", order=1)
#>        1        2        3        4        5
#> 6.610319 6.588565 6.130410 5.034340 5.389071 weitrix_hill(simwei, what="col", order=2)
#>        1        2        3        4        5
#> 6.391304 6.211268 5.568421 4.349398 4.923077