information_content_contin {eHDPrep}R Documentation

Calculate Information Content (Continuous Variable)

Description

Calculates information content of a continuous (numeric) vector in bits (default) or natural units. Missing values are omitted from the calculation.

Usage

information_content_contin(x, unit = c("bits"))

Arguments

x

Input vector

unit

Unit to measure entropy. Either "bits" (default) of "nats".

Value

Information content of input variable

Examples

data(example_data)
information_content_contin(example_data$tumoursize)

[Package eHDPrep version 1.3.3 Index]