Learn R Programming

CooRTweet (version 1.3)

simulate_data: simulate_data

Description

Create a simulated input and output of detect_coordinated_groups function.

Usage

simulate_data(
  n_users_coord = 5,
  n_users_noncoord = 4,
  n_objects = 5,
  min_repetition = 3,
  time_window = 10
)

Value

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.

Arguments

n_users_coord

the desired number of coordinated users.

n_users_noncoord

the desired number of non-coordinated users.

n_objects

the desired number of objects.

min_repetition

the minimum number of repeated coordinated action to define two user as coordinated.

time_window

the time window of coordination.

Details

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.