Learn R Programming

bivarhr (version 0.1.5)

.get_stat: Extract TE statistic from RTransferEntropy result

Description

Helper to extract a single transfer-entropy-like statistic from a coefficient table. It looks for columns named "Eff. TE" or "TE" (in that order) and falls back to the first column if neither is present.

Usage

.get_stat(obj)

Value

A numeric scalar with the extracted statistic (first row of the chosen column), or NA_real_ if extraction fails.

Arguments

obj

An object produced by RTransferEntropy (or similar) for which coef(obj) returns a matrix.