Wang, T., and E. C. Merkle. “MerDeriv: Derivative Computations for Linear Mixed Effects Models With Application to Robust Standard Errors”. Journal of Statistical Software, Code Snippets, vol. 87, no. 1, Nov. 2018, pp. 1-16, doi:10.18637/jss.v087.c01.