Computationally efficient methods for fitting mixed models to electronic health records data. (28th August 2018)