Skip to contents

Summary of an incidence object

Usage

# S3 method for incidence2
summary(object, ...)

Arguments

object

An 'incidence' object.

...

Not used.

Value

object (invisibly).

Examples

data.table::setDTthreads(2)
data(ebola_sim_clean, package = "outbreaks")
dat <- ebola_sim_clean$linelist
inci <- incidence(dat, "date_of_onset", groups = c("gender", "hospital"))
summary(inci)
#> From:          2014-04-07
#> To:            2015-04-30
#> Groups:        gender, hospital
#> 
#> Total observations:
#> # A data frame: 12 × 4
#>    gender hospital                                     count_variable count
#>    <fct>  <fct>                                        <chr>          <int>
#>  1 f      Military Hospital                            date_of_onset    439
#>  2 m      Connaught Hospital                           date_of_onset    848
#>  3 f      other                                        date_of_onset    437
#>  4 m      other                                        date_of_onset    439
#>  5 f      NA                                           date_of_onset    739
#>  6 f      Princess Christian Maternity Hospital (PCMH) date_of_onset    220
#>  7 f      Rokupa Hospital                              date_of_onset    210
#>  8 f      Connaught Hospital                           date_of_onset    889
#>  9 m      Rokupa Hospital                              date_of_onset    241
#> 10 m      Military Hospital                            date_of_onset    450
#> 11 m      Princess Christian Maternity Hospital (PCMH) date_of_onset    200
#> 12 m      NA                                           date_of_onset    717