infor_magic: Computes several information theory metrics between two...

View source: R/information_theory.R

infor_magicR Documentation

Computes several information theory metrics between two vectors

Description

It retrieves the same as var_rank_info but receiving two vectors. Metrics are: entropy (en), mutual information (mi), information gain (ig) and gain ratio (gr).

Usage

infor_magic(input, target)

Arguments

input

vector to be evaluated against the variable defined in 'target' parameter

target

vector containing the output variable.

Value

Matrix of 1 row and 4 columns, where each column represent the mentioned metrics

Examples


infor_magic(data_golf$outlook, data_golf$play_golf)


funModeling documentation built on May 29, 2024, 3:24 a.m.