Practical Propensity Score Methods Using R
  • Home
  • About the Author
  • Contact
  • Overview of Propensity Score Analysis
  • Propensity Score Estimation
  • Propensity Score Weighting
  • Propensity Score Stratification
  • Propensity Score Matching
  • Propensity Score Methods for Multiple Treatments
  • Propensity Score Methods for Continuous Treatment Doses
  • Propensity Score Analysis With Structural Equation Models
  • Weighting Methods for Time-Varying Treatments
  • Propensity Score Methods With Multilevel Data
  • Home
  • About the Author
  • Contact
  • Overview of Propensity Score Analysis
  • Propensity Score Estimation
  • Propensity Score Weighting
  • Propensity Score Stratification
  • Propensity Score Matching
  • Propensity Score Methods for Multiple Treatments
  • Propensity Score Methods for Continuous Treatment Doses
  • Propensity Score Analysis With Structural Equation Models
  • Weighting Methods for Time-Varying Treatments
  • Propensity Score Methods With Multilevel Data
Practical Propensity Score Methods Using R

Chapter 5 Propensity Score Matching

The simplest method to perform propensity score matching is one-to-one greedy matching. Even though more modern methods, such as genetic matching and optimal matching will perform better than one-to-one greedy matching if evaluated across  a large number of studies, one-to-one greedy matching is able to obtain adequate covariate  balance in many situations. In the video below, I demonstrate one-to-one greed matching.
Variable ratio greedy matching is a variation of one-to-one greedy matching where the number of matches is determined by the data. For example, some treated cases will receive one match from the control group, while others may receive more than one match. This method results in weights to be used in the analysis to account for the fact that treated cases received different numbers of matches.
In the video below I demonstrate optimal full matching, which uses network flow optimization algorithms to create strata containing at least one treated and one control observations, minimizing the distance between them with respect to propensity scores. One way to think of optimal full matching is that it is a type of stratification where the maximum number of strata is determined from the data by an optimization algorithm. 
In the video below I demonstrate genetic matching, which is matching that is optimized with a genetic algorithm. Genetic algorithm is a class of metaheuristic optimization algorithms based on principles of genetics, such as crossover and mutation. One advantage of matching with a genetic algorithm over other methods is that it can matching using the covariate values themselves instead of the propensity score. Therefore, it allows the researcher to skip the propensity score estimation step. 
R Code for Propensity Score Matching
chapter5_part1__propensity_score_estimation.r
File Size: 5 kb
File Type: r
Download File

chapter5_part2__one_to_one_greedy_matching.r
File Size: 2 kb
File Type: r
Download File

chapter5_part3_variable_ratio_greedy_matching.r
File Size: 2 kb
File Type: r
Download File

chapter5_part4_genetic_matching_with_propensity_scores_plus_covariates.r
File Size: 3 kb
File Type: r
Download File

chapter5_part5_genetic_matching_with_propensity_scores_only.r
File Size: 2 kb
File Type: r
Download File

chapter5_part6_optimal_one_to_one_matching.r
File Size: 2 kb
File Type: r
Download File

chapter5_part7_optimal_full_matching.r
File Size: 2 kb
File Type: r
Download File

Data for Example of Propensity Score Matching
chapter5_data_breastfeeding_example.rdata
File Size: 58 kb
File Type: rdata
Download File

chapter5_data_with_propensity_scores_and_formula.rdata
File Size: 69 kb
File Type: rdata
Download File

 Related research:
Leite, W. L. (2015). Latent growth modeling of longitudinal data with propensity score matched groups In Wei Pan, & Haiyan Bai. Propensity Score Analysis: Fundamentals, Developments, and Extensions, (pp. 191-216.) New York: Guilford.

​
​Leite, W. L., Sandbach, R., Jin, R., MacInnes, J., & Jackman, G. A. (2012). An Evaluation of Latent Growth Models for Propensity Score Matched Groups. Structural Equation Modeling. 19, 437–456. DOI: 10.1080/10705511.2012.687666
Proudly powered by Weebly