KRLS: Kernel-Based Regularized Least Squares

Implements Kernel-based Regularized Least Squares (KRLS), a machine learning method to fit multidimensional functions y = f(x) for regression and classification problems without relying on linearity or additivity assumptions. KRLS finds the best fitting function by minimizing the squared loss of a Tikhonov regularization problem, using Gaussian kernels as radial basis functions. For further details see Hainmueller and Hazlett (2014, <doi:10.1093/pan/mpt019>).

Getting started

Package details

AuthorJens Hainmueller [aut, cre], Chad Hazlett [aut]
MaintainerJens Hainmueller <jhain@stanford.edu>
LicenseGPL (>= 2)
Version1.1-0
URL https://web.stanford.edu/~jhain/ https://github.com/j-hai/KRLS
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("KRLS")

Try the KRLS package in your browser

Any scripts or data that you put into this service are public.

KRLS documentation built on April 30, 2026, 9:08 a.m.