Code accompanying SPSS2MPlusDemo post on williammurrah.com