We developed a generative model for key epidemiological events in COVID-19 patients and derived explicit formulae to correct for selection bias. We find that several early analyses of the COVID-19 pandemic were severely biased due to sample selection.