Ferwerda, J., J. Hainmueller, and C. J. Hazlett. “Kernel-Based Regularized Least Squares in R (KRLS) and Stata (krls)”. Journal of Statistical Software, vol. 79, no. 3, July 2017, pp. 1-26, doi:10.18637/jss.v079.i03.