TilburgNetworkGroup / remify

Processing and Transforming Relational Event History Data
https://tilburgnetworkgroup.github.io/remify/
Other
4 stars 1 forks source link

Allow multiple time intervals for each risk set modification (omit_dyad) #28

Open jupepis opened 1 year ago

jupepis commented 1 year ago

Inremify 2.0.0 (assuming that we only have 1 modification of the riskset), omit_dyad[[1]]$time can only assume two values, that are c(start_time,stop_time) and describe the time interval during which the dyads defined in omit_dyad[[1]]$dyad have to be omitted from the risk set.

We want to improve omit_dyadby allowing it to exclude the same set of dyads (in 'dyad') from multiple time intervals defined in 'time'. This means that, omit_dyad[[1]]$time becomes a matrix with as many rows as the number of time windows in which to remove omit_dyad[[1]]$dyad from the risk set.

This change will improve processing time and efficiency on memory usage.