View source: R/QC_info_theory.R
information_content_discrete | R Documentation |
Calculates information content of a discrete (categorical or ordinal) vector in bits (default) or natural units. Missing values are omitted from the calculation.
information_content_discrete(x, unit = c("bits"))
x |
Input vector |
unit |
Unit to measure entropy. Either "bits" (default) or "nats". |
Information content of input variable
data(example_data)
information_content_discrete(example_data$marital_status)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.