A quick and dirty simulation I wrote to estimate the statistical power of the study on hydroxychloroquine as post-exposure prophylaxis that was published in the New England Journal of Medecine (https://www.nejm.org/doi/full/10.1056/NEJMoa2016638) when taking into account measurement error due to the fact that most participants were not tested by PCR.