match_y1y0 {MatchGATE} | R Documentation |
Imputing Missing Potential Outcomes with Matching
Description
Impute missing potential outcomes for each individual with matching.
Usage
match_y1y0(X, A, Y, 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. |
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
|
Details
Here are the implementation details for the imputation processes.
Denote and
as the imputed potential
outcomes for individual
. Without loss of generality, if
, then
, and
is the average of outcomes for the K units that are the most
similar to the individual
, i.e.,
where represents the set of
matched individuals
with
, that are the closest to the individual
in terms of
covariates similarity, and vice versa.
Value
Returns a matrix of completed matches, where each row is the imputed
for each individual.
Examples
n <- 100
p <- 2
X <- matrix(rnorm(n*p), ncol = p)
A <- sample(c(0,1), n, TRUE)
Y <- A * (2*X[,1]) + X[,2]^2 + rnorm(n)
match_y1y0(X = X, A = A, Y = Y, K =5)