Skip to contents

Computes the entropy associated with gating, categorizing the data into 'High' or 'Low' based on whether the gated percentage of a group is above or below the overall mean percentage. This function is useful for analyzing the variability or predictability of gating outcomes across different groups.

Usage

gating_entropy(positive_percentage)

Arguments

positive_percentage

A data frame with at least two columns: 'group' which categorizes the data, and 'gated_percentage' which represents the percentage of some criterion being met (e.g., cells positive for a marker).

Value

A single numeric value representing the entropy, which quantifies the unpredictability associated with the gating classifications across the groups.

Examples

if (FALSE) { # \dontrun{
gating_entropy(data)
} # }