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