Learn R Programming

SpeedReader (version 0.9.1)

ACMI_contribution: Calculate Average Conditional Mutual Information (ACMI) contribution of each vocabulary term in a sparse DTM.

Description

Generates a vector of contributions to ACMI for each vocabulary term in a DTM, based on a contingency table generated by the contingency_table() function.

Usage

ACMI_contribution(joint_dist)

Arguments

joint_dist

A matrix of class "simple_triplet_matrix" generated by the contingency_table() function. Matching pairs of metadata combinations must be sequential rows.

Value

A vector recording the ACMI contribution of each variable.