# \donttest{
nw <- network_initialize(n = 100)
est <- netest(nw, formation = ~edges, target.stats = 50,
coef.diss = dissolution_coefs(~offset(edges), duration = 10),
verbose = FALSE)
dx <- netdx(est, nsims = 2, nsteps = 50, keep.tedgelist = TRUE,
verbose = FALSE)
# Cumulative degree over the full simulation
cd <- get_degree_dist(dx, type = "cumulative")
head(cd)
# Mean cumulative degree per simulation
tapply(cd$degree * cd$prop, cd$sim, sum)
# Momentary degree over the last 25 steps
get_degree_dist(dx, type = "momentary", window = c(25, 50))
# }
Run the code above in your browser using DataLab