Learn R Programming

⚠️There's a newer version (0.1.3) of this package.Take me there.

kbal (version 0.1.1)

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.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Borna Bateni

Last Published

October 16th, 2024

Functions in kbal (0.1.1)

one_hot

One-Hot Encoding for Categorical Data
dimw

Difference in Means and Difference in Weighted Means
drop_multicollin

Drop Multicollinear Columns
kbal

Kernel Balancing
getdist

L1 Distance
makeK

Build the Gaussian Kernel Matrix
biasbound

Worst-Case Bias Bound due to Incomplete Balance
getw

Find Weights using Entropy Balancing.
b_maxvarK

Maximum Variance of Gaussian Kernel Matrix
ebalance_custom

Modified version of ebalance (originally from Jens Hainmueller)
lalonde

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