match_y1y0_bc {MatchGATE}R Documentation

Imputing Missing Potential Outcomes with Bias-Corrected Matching

Description

Impute missing potential outcomes for each individual with bias-corrected matching.

Usage

match_y1y0_bc(X, A, Y, miu1.hat, miu0.hat, K = 5, method = "euclidean")

Arguments

X

A matrix representing covariates, where each row represents the value of a different covariates for an individual.

A

A vector representing the treatment received by each individual.

Y

A vector representing the observed outcome for each individual.

miu1.hat

The estimated outcome regression function for Y1Y^1.

miu0.hat

The estimated outcome regression function for Y0Y^0.

K

When imputing missing potential outcomes, the average number of similar individuals are taken based on covariates similarity.

method

The distance measure to be used. It is a argument embed in dist function.

Details

Here are the implementation details for the imputation processes. Denote Y^i0\hat{Y}^0_i and Y^i1\hat{Y}^1_i as the imputed potential outcomes for individual ii. For example, if Ai=0A_i = 0, then Y^i0=Yi0\hat{Y}^0_i = Y^0_i. However, for obtaining Y^i1\hat{Y}^1_i, we require to introduce an outcome regression function μ1(X)\mu_1(X) for Y1Y^1. Let μ^1(X)\hat{\mu}_1(X) be the fitted value of μ1(X)\mu_1(X), then Y^i1\hat{Y}^1_i is defined as follows,

Y^i1=1KjJK(i){Yj+μ^1(Xi)μ^1(Xj)},\hat{Y}_i^1 = \frac 1 K \sum_{j\in\mathcal{J}_K(i)}\{Y_j+ \hat{\mu}_1(X_i)-\hat{\mu}_1(X_j)\},

where JK(i)\mathcal{J}_K(i) represents the set of KK matched individuals with Ai=1A_i = 1, that are the closest to the individual ii in terms of covariates similarity, and vice versa.

Value

Returns a matrix of completed matches, where each row is the imputed (Y1,Y0)(Y^1, Y^0) for each individual.

Examples

n = 100
X1 <- runif(n, -0.5,0.5)
X2 <- sample(c(0,1,2), n, TRUE)
X = cbind(X1, X2)
A = sample(c(0,1), n, TRUE)
Y = A * (2*X1) + X1 + X2^2 + rnorm(n)
miu1_hat <- cbind(1,X) %*% as.matrix(lm(Y ~ X, subset = A==1)$coef)
miu0_hat <- cbind(1,X) %*% as.matrix(lm(Y ~ X, subset = A==0)$coef)
match_y1y0_bc(X = X, A = A, Y = Y, miu1.hat = miu1_hat,
              miu0.hat = miu0_hat, K = 5)



[Package MatchGATE version 0.0.10 Index]