Summarizing an Epidemic
epidata_summary.Rd
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).
Value
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
id
column in the"epidata"
object). Set of initially infected individuals.- neverInfected
factor (with the same levels as the
id
column in the"epidata"
object). Set of never infected individuals, i.e. individuals, which were neither initially infected nor infected during the course of the epidemic.- 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
id
s of the individuals.- byID
data frame with time points of infection and optionally removal and re-susceptibility (depending on the
type
of the epidemic) ordered byid
. If an event was not observed, the corresponding entry is missing.- counters
data frame containing all events (S, I and R) ordered by time. The columns are
time
,type
(of event), correspondingid
and the three countersnSusceptible
,nInfectious
andnRemoved
. The first row additionally shows the counters at the beginning of the epidemic, where thetype
andid
column contain missing values.
See also
as.epidata
for generating objects of class "epidata"
.