Julia translation of John D. Cook's code for running moment statistics and univariate regression