Description Usage Arguments Value Source See Also Examples
View source: R/multi_group_measures.R
Entropy is used to measure the the extent to which multiple distributions conform to a baseline.
1 2 3 4 5 6 7 8 9 10 11 12 |
... |
Vectors containing proportions of each group, or a dataframe containing only those vectors. |
population |
A vector of population totals for each row, or weights summing to a total of one. If NA, will assume all populations/weights are equal. Set to 1 to silence warning. If a string, will use the string as the named column of the dataframe provided in ... |
comparison |
A vector of percentages that must equal the length of the
number of vectors or columns in |
entropy_type |
One of:
|
logBase |
Specify the base for the logathirm used in the equation. Natural logarithm by default. |
scale |
Scale entropy scores from 0-1. Setting scale to TRUE ignores the entropy_type (set to "entropy") and summed parameters. |
summed |
If TRUE, will return a single summary statistic. (Or one value per group if specifying
|
na.rm |
logical. Should missing values (including NaN) be removed?
Used only if |
weights |
deprecated, use population. |
sumPercent |
deprecated, will throw error. |
A single value if summed==TRUE, or a vector equaling the length of the inputs. Note that if
entropy_type
== "index", and summed is FALSE, then the returned vector will be entropy index, unweighted by
population
Theil, Henri. 1972. Statistical Decomposition Analysis.
https://en.wikipedia.org/wiki/Generalized_entropy_index
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.