Source: https://www.math.univ-toulouse.fr/~besse/Wikistat/pdf/st-tutor4-sas-macros.pdf