Description Usage Arguments Details Value Author(s) References See Also Examples
Prints an object created by the
SEIR.simulator
simulation routine.
1 2 3 |
x |
an object of class epidemic, produced from the |
... |
other arguments to be passed to the print routine. |
Prints the epidemic inference object, including the exposure, infectious, and recovery times of each node in the epidemic.
Strictly invoked for side effect.
Chris Groendyke cgroendyke@gmail.com, David Welch david.welch@auckland.ac.nz
Groendyke, C. and Welch, D. 2018. epinet: An R Package to Analyze Epidemics Spread across Contact Networks, Journal of Statistical Software, 83-11.
SEIR.simulator
for simulating an epidemic, summary.epidemic
for the summary method of an epidemic object, and plot.epidemic
for plotting a
visual display of the epidemic.
1 2 3 4 5 6 7 8 9 10 11 12 | # Simulate an epidemic through a network of 30
set.seed(3)
N <- 30
# Build dyadic covariate matrix (X)
# Have a single covariate for overall edge density; this is the Erdos-Renyi model
nodecov <- matrix(1:N, nrow = N)
dcm <- BuildX(nodecov)
# Simulate network and then simulate epidemic over network
examplenet <- SimulateDyadicLinearERGM(N, dyadiccovmat = dcm, eta = -1.8)
exampleepidemic <- SEIR.simulator(examplenet, N = 30,
beta = 0.3, ki = 2, thetai = 5, latencydist = "gamma")
print(exampleepidemic)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.