Learn R Programming

RTransferEntropy (version 0.2.21)

coef.transfer_entropy: Extract the Coefficient Matrix from a transfer_entropy

Description

Extract the Coefficient Matrix from a transfer_entropy

Usage

# S3 method for transfer_entropy
coef(object, ...)

Value

a Matrix containing the coefficients

Arguments

object

a transfer_entropy

...

additional arguments, currently not in use

Examples

Run this code
set.seed(1234567890)
n <- 500
x <- rep(0, n + 1)
y <- rep(0, n + 1)

for (i in seq(n)) {
  x[i + 1] <- 0.2 * x[i] + rnorm(1, 0, 2)
  y[i + 1] <- x[i] + rnorm(1, 0, 2)
}

x <- x[-1]
y <- y[-1]

te_result <- transfer_entropy(x, y, nboot = 100)
coef(te_result)

Run the code above in your browser using DataLab