Learn R Programming

relen (version 1.0.1)

relen-package: Compute Relative Entropy

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

Arguments

Details

Package:
relen
Type:
Package
Version:
1.0.1
Date:
2015-11-04
License:
GPL-2
relen(x)

References

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

Examples

Run this code
relen(iris$Species)

Run the code above in your browser using DataLab