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