simHM function

It runs the chosen hybrid model.

It runs the chosen hybrid model.

simHM is generic function that calls a method to run the simulation base on object's class

simHM(x, network, sim.number, num.cores = "max", fill.time)

Arguments

  • x: of a specific class of model.
  • network: a data.frame with variables that describe the donor node, the receiver node, the time when each connection between donor to the receiver happened and the number of individual or weight of these connection.
  • sim.number: Number of repetitions.The default value is 1
  • num.cores: number of threads/cores that the simulation will use. the default value is num.cores = 'max', the Algorithm will use all threads/cores available.
  • fill.time: It indicates whether to return all dates or just the dates when nodes get connected.

Returns

A data.frame with the number of individuals through time per node, per state and per simulation.

References

.

See Also

GillespieSSA .

  • Maintainer: Fernando S. Marques
  • License: GPL (>= 2)
  • Last published: 2020-06-26