You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One way to resolve the dispatching issue including #25, and simplify the code in dispatching simulate_formula is by requiring the user to wrap LHS in something like Dynamic() which will set a minimal lasttoggle attribute and a class (e.g., c("lasttoggle_network","network")) so that simulate_formula.network() can go straight to ergm's version and simulate_formula.lasttoggle_network() would intercept only LT networks. (Right now, NetSeries() serves this function for conditional simulation, and ergm.multi makes heavy use of it with Layer() and Networks().
summary(nw~Form(~edges),...) # Error: nw is not known to contain previous time step information.
summary(NetSeries(nwlist)~Form(~edges),...) # Summary of transition statistics
summary(Dynamic(nw)~Form(~edges),...) # Works, assuming whatever the default lasttoggle structure is.
Dynamic() could also take time= and lasttoggle= argument and set them on the network object.
This is a bit of a last-minute change, but since it will simplify the code overall, it might be worth pushing through.
One way to resolve the dispatching issue including #25, and simplify the code in dispatching
simulate_formula
is by requiring the user to wrap LHS in something likeDynamic()
which will set a minimallasttoggle
attribute and a class (e.g.,c("lasttoggle_network","network")
) so thatsimulate_formula.network()
can go straight toergm
's version andsimulate_formula.lasttoggle_network()
would intercept only LT networks. (Right now,NetSeries()
serves this function for conditional simulation, andergm.multi
makes heavy use of it withLayer()
andNetworks()
.For example,
and also
Dynamic()
could also taketime=
andlasttoggle=
argument and set them on the network object.This is a bit of a last-minute change, but since it will simplify the code overall, it might be worth pushing through.
@chad-klumb , @martinamorris , @sgoodreau , @smjenness , what do you think? Also, any ideas about better names than
Dynamic
?The text was updated successfully, but these errors were encountered: