Skip to contents

This function acts as a wrapper to identify the sliding window size that yields the highest (peak) ground diversity/entropy for a given dataset.

Usage

ena.gd.window(data, codeNames, conversation_cols, max_window = 20)

Arguments

data

A data.frame or data.table containing the conversation data.

codeNames

A character vector of column names representing the binary codes.

conversation_cols

A character vector of column names that define unique conversations.

max_window

An integer specifying the maximum window size to evaluate. Default is 20.

Value

An integer representing the window size that maximizes ground entropy.

Examples

if (FALSE) { # \dontrun{
peak_w <- ena.gd.window(data = my_data,
                        codeNames = c("CodeA", "CodeB"),
                        conversation_cols = "ConversationID",
                        max_window = 15)
} # }