Learn R Programming

KRLS (version 1.7-1)

Kernel-Based Regularized Least Squares

Description

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, ).

Copy Link

Version

Install

install.packages('KRLS')

Monthly Downloads

342

Version

1.7-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Jens Hainmueller

Last Published

July 6th, 2026

Functions in KRLS (1.7-1)

gausskernel

Gaussian Kernel Distance Computation
get_landmarks

Extract the landmark coordinates from a Nystrom KRLS fit
looloss

Loss Function for Leave One Out Error
solveforc

Solve for Choice Coefficients in KRLS
predict.krls

Predict method for Kernel-based Regularized Least Squares (KRLS) Model Fits
lambdasearch

Leave-one-out optimization to find \(\lambda\)
summary.krls

Summary method for Kernel-based Regularized Least Squares (KRLS) Model Fits
plot.krls

Plot method for Kernel-based Regularized Least Squares (KRLS) Model Fits
krls

Kernel-based Regularized Least Squares (KRLS)
fdskrls

Compute first differences with KRLS
b_maxvarK

Gaussian kernel bandwidth by maximum off-diagonal var(K)