weitrix_hill.Rd
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)
weitrix | A weitrix object. |
---|---|
what | Calculate for rows ("row") (default) or columns ("col")? |
order | Order of the Hill numbers. |
A numeric vector of effective numbers of observations.
#> 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 0weitrix_hill(simwei, what="row", order=0)#> 1 2 3 4 5 6 7 #> 4 5 5 5 5 5 4weitrix_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.355356weitrix_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.000000weitrix_hill(simwei, what="col", order=0)#> 1 2 3 4 5 #> 7 7 7 6 6weitrix_hill(simwei, what="col", order=1)#> 1 2 3 4 5 #> 6.610319 6.588565 6.130410 5.034340 5.389071weitrix_hill(simwei, what="col", order=2)#> 1 2 3 4 5 #> 6.391304 6.211268 5.568421 4.349398 4.923077