relen: Compute Relative Entropy

Description Usage Arguments Value Author(s) References Examples

Description

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))

Usage

1
relen(x)

Arguments

x

A factor with k levels.

Value

The output will be between 0 and one whereas 0 means minimum variation (all units are in one category).

Author(s)

Soeren Braehmer

References

Eid, M., Gollwitzer, M. & Schmitt, M. (2013). Statistik und Forschungsmethoden (3 korr.Auflage) Weinheim: Beltz. p105ff

Examples

1
2
relen(iris$Species)
  

relen documentation built on May 2, 2019, 3:04 a.m.