cascades3D: Spread of cascades of retweet

Description Usage Arguments Details Value Examples

Description

cascades3D Generate cascades of retweets from a initial population of rumors given

Usage

1
2
3
4
cascades3D(N = 200, R = 10, betadistrib = rep(1, 200), utility = seq(0,
  1, length.out = 10), time = 2, captl = -1, IC = 50, summary = T,
  Nmax = NULL, lambda_c = 0, lambda_r = 0, dtime = 0, stime = -1,
  memory = T, log = T)

Arguments

N

total number of agents

R

initial number of rumors

betadistrib

vector of size N with the value of beta for each agents

utility

vector of size R, with the value of intrinsic utility for each rumors

time

number of time that the agents will check their timeline (length of the simulation)

captl

maximum messages that agents can acess to

IC

initial number of cascades

summary

if TRUE, return a data.frame with summary statistics about the cascade, else return a list of lists with a list of all cascades, a list of all rumors, a list of the results, and much more

Nmax

if NULL or Nmax == 1, N agents will have the opportunity to retweet at each time step, ifNmax > 1, Nmax randomly sampled agent will have the possibility to retweet, if Nmax < 1, Nmax represnet the proportion of agents that will be able to retweet

lambda_c

rate of apparition of new cascades

lambda_r

rate of apparition of new rumors

dtime

maximum number of timestep during which a cascades can survives. if =< 0 cascades are kept during all the simulation.

stime

the oldest tweet (in timestep) that an agent can access from an active cascade (if stime = 1 the agents can only access retweet or tweet done during the previous time step. If -1 there is no limit.

log

print the time step and some information if TRUE, nothing if FALSE

Details

main model of the package

Value

depends on the value of the BOOLEAN summary

Examples

1
2
3
4
simplerun=cascades3D()
par(mfrow=c(1,2))
plotCCFD(simplerun$size,main="Cascade Size")
plotCCFD(simplerun$depth,main="Cascade Depth")

simoncarrignon/twitter-spread documentation built on May 23, 2019, 5:04 a.m.