# Obtain simulated data
sim.data <- sim.dynEGA
if (FALSE) {
# Dynamic EGA individual and population structures
dyn1 <- dynEGA.ind.pop(
data = sim.dynEGA[,-26], n.embed = 5, tau = 1,
delta = 1, id = 25, use.derivatives = 1,
model = "glasso", ncores = 2, corr = "pearson"
)
# Empirical Ergodicity Information Index
eii1 <- ergoInfo(dynEGA.object = dyn1, use = "unweighted")
# Bootstrap Test for Ergodicity Information Index
testing.ergoinfo <- boot.ergoInfo(
dynEGA.object = dyn1, EII = eii1,
ncores = 2, use = "unweighted"
)
# Plot result
plot(testing.ergoinfo)
# Example using `dynEGA`
dyn2 <- dynEGA(
data = sim.dynEGA, n.embed = 5, tau = 1,
delta = 1, use.derivatives = 1, ncores = 2,
level = c("individual", "population")
)
# Empirical Ergodicity Information Index
eii2 <- ergoInfo(dynEGA.object = dyn2, use = "unweighted")
# Bootstrap Test for Ergodicity Information Index
testing.ergoinfo2 <- boot.ergoInfo(
dynEGA.object = dyn2, EII = eii2,
ncores = 2
)
# Plot result
plot(testing.ergoinfo2)}
Run the code above in your browser using DataLab