Specifies the statistic for an outgoing two-path effect.
Usage
otp(unique = FALSE, scaling = c("none", "std"), consider_type = TRUE)
Arguments
- unique
A logical value indicating whether to sum the minimum of events with third actors (FALSE, default) or the number of third actors that create a new, unique two-path (TRUE). See details for more information.
- scaling
The method for scaling the triad statistic. The default value is "none", which means the statistic is not scaled. Alternatively, you can set it to "std" to request standardization of the raw counts per time point.
- consider_type
A logical value indicating whether to count the two-paths separately for each event type (TRUE, default) or sum across different event types (FALSE).
Details
The outgoing two-path effect describes the propensity of dyads to interact based on the number of past outgoing two-paths between them. By default, the statistic at timepoint t for the dyad (i,j) is computed as the sum of the minimum occurrences of past (i,h) and (h,j) events across all actors h.
When the unique parameter is set to TRUE, a different approach is taken. In this case, the statistic counts the number of actors h that contribute to the creation of a new, distinct two-path between actors i and j.
Additionally, it is possible to specify a scaling method using the scaling parameter.
Please note that the outgoing two-path effect, 'otp', is exclusively defined for directed events.
References
Butts, C. (2008). A relational event framework for social action. Sociological Methodology.
Examples
reh_tie <- remify::remify(history, model = "tie")
effects <- ~ otp()
remstats(reh = reh_tie, tie_effects = effects)
#> Relational Event Network Statistics
#> > Model: tie-oriented
#> > Computation method: per time point
#> > Dimensions: 115 time points x 90 dyads x 2 statistics
#> > Statistics:
#> >> 1: baseline
#> >> 2: otp
reh_actor <- remify::remify(history, model = "actor")
remstats(reh = reh_actor, receiver_effects = effects)
#> Relational Event Network Statistics
#> > Model: actor-oriented
#> > Computation method: per time point
#> > Sender model: empty
#> > Receiver model:
#> >> Dimensions: 115 events x 10 actors x 1 statistics
#> >> Statistics:
#> >>> 1: otp