bsflu | R Documentation |
An outbreak of influenza in an all-boys boarding school.
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.
1978
compartmental models
More data sets provided with pomp:
blowflies
,
childhood_disease_data
,
dacca()
,
ebola
,
parus
if (require(tidyr) && require(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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.