Skip to contents

Estimates the ENA moving-window size from the half-life decay lag of the noise-corrected Frobenius norm of pooled conversation cross-covariance matrices.

Usage

ccd_window(conversations, max_window = 20L, min_overlap = 10L)

Arguments

conversations

A list of numeric code matrices, one per conversation (rows in sequence; all matrices share the same number of columns).

max_window

Maximum lag to evaluate (default 20).

min_overlap

Minimum overlapping rows (N - lag) required for a conversation to contribute at a given lag (default 10).

Value

A list with window_size, peak_lag, and the per-lag curves lag, frob, frob_sq_unbiased, frob_unbiased_signed, and total_weight.