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, ...)
"epidata"
."summary.epidata"
, i.e. an
object returned by the function summary.epidata
.id
column in the "epidata"
object). Set of initially infected individuals.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.id
s of the individuals.type
of the epidemic) ordered
by id
. If an event was not observed, the corresponding
entry is missing.time
, type
(of event), corresponding id
and the
three counters nSusceptible
, nInfectious
and nRemoved
.
The first row additionally shows the counters at the beginning of the
epidemic, where the type
and id
column contain missing values.as.epidata
for generating objects of class "epidata"
.data("fooepidata")
s <- summary(fooepidata)
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)
Run the code above in your browser using DataLab