A malaria serosurvey of 200 people aged 1 to 50. For each person we know their age, whether they sleep under a bed net, and whether their blood has antibodies to malaria (seropositive), a sign that they have been infected at some point.
Drag the marker on any line, or type a value. The other two follow.
log is the natural log, the same as log() in R.
The 200 people are now split into two groups: 100 who don't sleep under a bed net (blue dots) and 100 who do (green rings). Each group has its own curve.
This is logistic regression: glm() with family = binomial fits a straight line on the log-odds scale, so every estimate below is on the log-odds scale.
seropos is 1 for seropositive and 0 for seronegative. net is 1 for people who sleep under a bed net and 0 for people who don't.