AverageAndRegularize function

Average parameter estimates across replicates, and regularize variance estimates