epidata_summary | R Documentation |
The summary
method for class
"epidata"
gives an overview of the epidemic. Its
print
method shows the type of the epidemic, the time range, the
total number of individuals, the initially and never infected individuals and
the size of the epidemic. An excerpt of the returned counters
data
frame is also printed (see the Value section below).
## S3 method for class 'epidata'
summary(object, ...)
## S3 method for class 'summary.epidata'
print(x, ...)
object |
an object inheriting from class |
x |
an object inheriting from class |
... |
unused (argument of the generic). |
A list with the following components:
type |
character string. Compartmental type of the epidemic, i.e. one of "SIR", "SI", "SIS" or "SIRS". |
size |
integer. Size of the epidemic, i.e. the number of initially susceptible individuals, which became infected during the course of the epidemic. |
initiallyInfected |
factor (with the same levels as the |
neverInfected |
factor (with the same levels as the |
coordinates |
numeric matrix of individual coordinates with as many rows as there are
individuals and one column for each spatial dimension. The row names of
the matrix are the |
byID |
data frame with time points of infection and optionally removal and
re-susceptibility (depending on the |
counters |
data frame containing all events (S, I and R) ordered by time. The columns
are |
Sebastian Meyer
as.epidata
for generating objects of class "epidata"
.
data("hagelloch")
s <- summary(hagelloch)
s # uses the print method for summary.epidata
names(s) # components of the list 's'
# positions of the individuals
plot(s$coordinates)
# events by id
head(s$byID)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.