bsflu {pomp} | R Documentation

## Influenza outbreak in a boarding school

### Description

An outbreak of influenza in an all-boys boarding school.

### Details

Data are recorded from a 1978 flu outbreak in a closed population. The variable ‘B’ refers to boys confined to bed on the corresponding day and ‘C’ to boys in convalescence, i.e., not yet allowed back to class. In total, 763 boys were at risk of infection and, over the course of the outbreak, 512 boys spent between 3 and 7 days away from class (either in bed or convalescent). The index case was a boy who arrived at school from holiday six days before the next case.

### References

Anonymous (1978). Influenza in a boarding school. British Medical Journal 1:587

### See Also

sir_models

Other datasets: `blowflies`, `dacca`, `ebola`, `measles`, `parus`

### Examples

    library(magrittr)
    library(tidyr)
    library(ggplot2)

    bsflu %>%
      gather(variable,value,-date,-day) %>%
      ggplot(aes(x=date,y=value,color=variable))+
      geom_line()+
      labs(y="number of boys",title="boarding school flu outbreak")+
      theme_bw()

[Package pomp version 2.3 Index]