Source: https://www.stata.com/manuals13/gsm12.pdf