-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CEM with replacement? #77
Comments
Coarsened exact matching is a method of stratification. That means that the entire dataset is carved up based on the coarsened covariates. Any stratum without both a treated and control unit is discarded, leaving strata that have both treated and control units with the same value of the coarsened covariates. No pairing is done. It doesn't make sense to talk about replacement because no units are "used up" and need to be replaced. They are simply assigned to the stratum they fall in. This is the default use of
This is how coarsened exact matching is implemented in An optional second step is to perform matching within the strata, which you can do by setting It doesn't make sense to talk about coarsened exact matching with replacement because the purpose of the second stage matching is to prune units from the strata, not to create optimally matched pairs (which is the purpose of nearest neighbor matching). This is why You can do nearest neighbor matching with replacement with strata of the coarsened variables by creating the coarsened version of the variables yourself and supplying them to the
This would run nearest neighbor propensity score matching with replacement within strata of coarsened versions of |
Thank you so much for the detailed explanation. One more question about 1 to 1 matching. In CEM, |
With Using |
Got you. How does |
The default is to do propensity score matching. The covariates are included in a logistic regression of the treatment on the covariates and the predicted values are used as the propensity scores. The difference between two units' propensity scores is the distance between the units. So covariates don't feature in nearest neighbor matching, since only the propensity score is used. The fact that a covariate is categorical has no bearing on how it used; it is simply a covariate in the logistic regression model for the propensity score, and logistic regression handles categorical covariates as all regression models do. Propensity score matching is agnostic to the covariates used in the propensity score. Categorical variables can be supplied to the |
Thanks. Also, in |
The |
Is it possible to use CEM with sampling with replacement? I am aware that there is no argument
replace
whenmethod = cem
is used. I am also aware that settingk2k = TRUE
means using nearest neighbor matching without replacement will take place within each stratum. Is it possible to use with replacement here? Also, what doesk2k = FALSE
mean?The text was updated successfully, but these errors were encountered: