te_cont: Continuous Transfer Entropy

Description Usage Arguments Details References Examples

Description

Continuous Transfer Entropy

Usage

1
te_cont(X, Y, p = 1, q = 1, k = 3, normalize = FALSE)

Arguments

X

Integer vector, first time series.

Y

Integer vector, the second time series.

p

Integer, the lag parameter to use for the first vector, (p = 1 by default).

q

Integer the lag parameter to use for the first vector, (q = 1 by default).

k

Integer argument, the number of neighbors.

normalize

Logical argument for the option of normalizing value of TE (transfer entropy) (FALSE by default). This normalization is different from the discrete case, because, here the term H (X(t)| X(t-1), ..., X(t-p)) may be negative. Consequently, we use another technique, we divide TE by H0 - H (X(t)| X(t-1), ..., X(t-p), Yt-1), ..., Y(t-q)), where H0 is the max entropy (of uniform distribution).

Details

Computes the continuous Transfer Entropy from the second time series to the first one using the Kraskov estimation

References

\insertRef

kraskov2004estimatingNlinTS

Examples

1
2
3
4
5
6
library (timeSeries)
library (NlinTS)
#load data
data = LPP2005REC
te = te_cont (data[,1], data[,2], 1, 1, 3)
print (te)

Example output

Loading required package: Rcpp
Loading required package: timeDate
[1] 1.646321

NlinTS documentation built on Feb. 2, 2021, 9:07 a.m.