Source: https://academic.oup.com/biostatistics/article-pdf/3/3/421/870212/030421.pdf