View source: R/bind_remstats.R
bind_remstats | R Documentation |
Function to bind any number of remstats objects into one while duplicated statistics in the combined object are removed based on their name.
bind_remstats(...)
... |
Any number of |
statistics
array with the combined statistics, where rows
refer to time points, columns refer to potential relational event (i.e.,
potential edges) in the risk set and slices refer to statistics
library(remstats)
# Load the data
data(history)
data(info)
# Prepare the data
reh <- remify::remify(edgelist = history, model = "actor")
# Obtain two different statistics objects
effects1 <- ~ inertia():receive("extraversion") + otp()
stats1 <- remstats(receiver_effects = effects1, reh = reh, attr_actors = info)
effects2 <- ~ reciprocity()
stats2 <- remstats(receiver_effects = effects2, reh = reh, attr_actors = info)
# Bind the two statistics objects
statsC <- bind_remstats(stats1, stats2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.