nw <- network.initialize(n = 100, directed = FALSE)
dissolution <- ~offset(edges)
coef.diss <- dissolution.coefs(dissolution, duration=10)
est <- epiNet.est(nw,
formation = ~ edges,
dissolution = ~offset(edges),
target.stats = 25,
coef.diss = coef.diss,
save.stats = FALSE, verbose = FALSE)
nwsims <- epiNet.simNet(est, nsteps = 10, verbose = FALSE)
x <- epiNet.simTrans(nwsims, type = "SI",
i.num = 1, trans.rate = 0.9,
sims.per.nw = 2, verbose = FALSE)
y <- epiNet.simTrans(nwsims, type = "SI",
i.num = 1, trans.rate = 0.9,
sims.per.nw = 3, verbose = FALSE)
z <- merge(x, y)
x$i.num
y$i.num
z$i.num
Run the code above in your browser using DataLab