Learn R Programming

kbal (version 0.1.3)

Kernel Balancing

Description

Provides a weighting approach that employs kernels to make one group have a similar distribution to another group on covariates. This method matches not only means or marginal distributions but also higher-order transformations implied by the choice of kernel. 'kbal' is applicable to both treatment effect estimation and survey reweighting problems. Based on Hazlett, C. (2020) "Kernel Balancing: A flexible non-parametric weighting procedure for estimating causal effects." Statistica Sinica. .

Copy Link

Version

Install

install.packages('kbal')

Monthly Downloads

109

Version

0.1.3

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Borna Bateni

Last Published

July 6th, 2025

Functions in kbal (0.1.3)

lalonde

Data from National Supported Work program and Panel Study in Income Dynamics
kbal

Kernel Balancing
getw

Find Weights using Entropy Balancing.
ebalance_custom

Modified version of ebalance (originally from Jens Hainmueller)
biasbound

Worst-Case Bias Bound due to Incomplete Balance
makeK

Build the Gaussian Kernel Matrix
drop_multicollin

Drop Multicollinear Columns
dimw

Difference in Means and Difference in Weighted Means
b_maxvarK

Maximum Variance of Gaussian Kernel Matrix
getdist

L1 Distance
one_hot

One-Hot Encoding for Categorical Data