Source: https://www.stata.com/manuals/rci.pdf