Real, or Big?

Look at the outbreak data, then test whether two group means differ and measure by how much. You'll use R.

Assumes: mean, standard deviation, the standard error of one mean, t-scores and p-values, and pressing Run on R code. In R you'll change one short piece of code at a time.

1. What's in the outbreak data?

A mid-sized city (about 100,000 residents) is having a winter outbreak of Mycoplasma pneumoniae (“walking pneumonia”), a bacterial respiratory infection. The city's health department has collected two small data sets, one row per person:

  • fever.csv: diagnosis (MP = Mycoplasma confirmed, No = tested negative for Mycoplasma) and the highest fever since symptoms began, in °F. Patients were picked at random from people who visited clinics with a fever during the outbreak.
  • WBC.csv: diagnosis and white blood cell count (cells per microliter of blood). Residents were picked at random from those tested at the department's community screening during the outbreak. Normal is roughly 4,500–11,000 cells per microliter; counts that are too high or too low are both dangerous.

Press Run. R reads both files, splits each measurement into the two diagnosis groups, and prints each group's count (number of patients), mean and SD, with a histogram of each group.

Read the table

In the fever_MP row, the mean is 102.04 °F and the sd is 1.28 °F. What does the 1.28 describe?

How far a typical Mycoplasma patient's fever is from 102.04 °F, the Mycoplasma group's mean.
How far 102.04 °F is likely to be from the mean fever of all Mycoplasma patients in the city who visit a clinic with a fever.
How much higher Mycoplasma patients' fevers are than fevers of people without Mycoplasma.
Assumptions

Left out: the conditions for inference, one-sided tests, confidence intervals for a difference, and testing the outbreak data (the in-class investigation).