Create a simulated input and output of detect_coordinated_groups function.
simulate_data(
n_users_coord = 5,
n_users_noncoord = 4,
n_objects = 5,
min_repetition = 3,
time_window = 10
)
a list with two data frames: a data frame
with the columns required by the function detect_
coordinated_groups (object_id
, id_user
, content_id
, timestamp_share
)
and the output table of the same
detect_coordinated_groups function and columns:
object_id
, id_user
, id_user_y
,
content_id
, content_id_y
, time_delta
.
the desired number of coordinated users.
the desired number of non-coordinated users.
the desired number of objects.
the minimum number of repeated coordinated action to define two user as coordinated.
the time window of coordination.
This function generates a simulated dataset with fixed numbers for coordinated users, uncoordinated users, and shared objects. You can set minimum repetition and time window and the coordinated users will "act" randomly within these restrictions.