#Load the multivariate simulated
#dataset `simTransComms`
data(simTransComms)
#Embed the spp_2 and spp_5 of the third community
embedX <- embed_ts(X = simTransComms$community3[,c("time","spp_2")],
E = 5, tau = 1)
embedY <- embed_ts(X = simTransComms$community3[,c("time","spp_5")],
E = 5, tau = 1)
#Estimate the forward information imbalance
#between spp_2 and spp_5
egII_for <- II(X = embedX[,-1], Y = embedY[,-1],
tau = 1, alpha = 1, k = 5)
#Estimate the reverse information imbalance
#between spp_2 and spp_5
egII_rev <- II(X = embedY[,-1], Y = embedX[,-1],
tau = 1, alpha = 1, k = 5)
Run the code above in your browser using DataLab