Skip to contents

Indirect Effect Centrality

Usage

IndirectCentral(phi, delta_t)

Arguments

phi

Numeric matrix. The drift matrix (\(\boldsymbol{\Phi}\)). phi should have row and column names pertaining to the variables in the system.

delta_t

Vector of positive numbers. Time interval (\(\Delta t\)).

Author

Ivan Jacob Agaloos Pesigan

Examples

phi <- matrix(
  data = c(
    -0.357, 0.771, -0.450,
    0.0, -0.511, 0.729,
    0, 0, -0.693
  ),
  nrow = 3
)
colnames(phi) <- rownames(phi) <- c("x", "m", "y")

# Specific time interval ----------------------------------------------------
IndirectCentral(
  phi = phi,
  delta_t = 1
)
#> 
#> Indirect Effect Centrality
#> 
#>      interval x      m y
#> [1,]        1 0 0.1674 0

# Range of time intervals ---------------------------------------------------
indirect_central <- IndirectCentral(
  phi = phi,
  delta_t = 1:30
)
plot(indirect_central)


# Methods -------------------------------------------------------------------
# IndirectCentral has a number of methods including
# print, summary, and plot
indirect_central <- IndirectCentral(
  phi = phi,
  delta_t = 1:5
)
print(indirect_central)
#> 
#> Indirect Effect Centrality
#> 
#>      interval x      m y
#> [1,]        1 0 0.1674 0
#> [2,]        2 0 0.4008 0
#> [3,]        3 0 0.5423 0
#> [4,]        4 0 0.5823 0
#> [5,]        5 0 0.5521 0
summary(indirect_central)
#>      interval x      m y
#> [1,]        1 0 0.1674 0
#> [2,]        2 0 0.4008 0
#> [3,]        3 0 0.5423 0
#> [4,]        4 0 0.5823 0
#> [5,]        5 0 0.5521 0
plot(indirect_central)