Description Usage Arguments Value Author(s) References Examples
This function computes the relative entropy (H) as an index for qualitative variation of a factor. Any factor can be used as argument. H ist computed as follows: H = (-1/ln(k))*sum(hj*ln(hj))
1 | relen(x)
|
x |
A factor with k levels. |
The output will be between 0 and one whereas 0 means minimum variation (all units are in one category).
Soeren Braehmer
Eid, M., Gollwitzer, M. & Schmitt, M. (2013). Statistik und Forschungsmethoden (3 korr.Auflage) Weinheim: Beltz. p105ff
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.