Functions and scripts associated with the book Microdata and MATLAB (Adams, Clarke, Quinn)