Source: https://www.stata.com/bookstore/pdf/g_text.pdf