Related Experiment Video
Updated: Aug 11, 2026

Inverse Probability of Treatment Weighting (Propensity Score) using the Military Health System Data Repository and National Death Index
Published on: January 8, 2020
An Introductory Tutorial on Propensity Score Matching in RStudio Using the National Health Interview Survey
Rakchhya Uprety1, Faith Ogini1, La'Marcus T Wingate2
1Department of Pharmaceutical Sciences, Howard University, Washington DC, USA.
None:
Propensity score matching (PSM) is a statistical method that is used to reduce bias due to confounding from observational studies or studies where randomization is not possible by matching the treatment groups to the control groups based on their propensity scores. A propensity score is a value that gives the probability of each individual subject being assigned to a specific treatment group based on the covariates selected. The aim of this paper is to provide a step-by-step tutorial that demonstrates how to create a propensity-matched cohort using RStudio (Posit PBC, Boston, MA). For this tutorial, we utilize the publicly available 2022 National Health Interview Survey adult dataset. Our focus is on individuals residing in non-metropolitan areas. In our study, the propensity scores represent the probability that a patient uses telehealth, and it is estimated using multiple logistic regression, where telehealth usage is the dependent variable and the predictor variables are age, sex, race, income-to-poverty ratio, education, marital status, insurance status, communication difficulty, and Hispanic ethnicity. This analysis demonstrates how PSM can improve balance in measured covariates and may help reduce bias from observed confounders. Several covariates in the analysis had standardized mean differences (SMDs) greater than 0.1 before matching. However, after PSM, all the covariates achieved SMDs below 0.1, which indicates a better balance at baseline between groups. As this is a pedagogical tutorial, results should not be interpreted as a nationally representative matched analysis.
Related Concept Videos
Introduction To Survival Analysis
The primary goal of survival analysis is to estimate survival time—the time until a...
Introduction to Nonparametric Statistics
One of...
Biostatistics: Overview
Discrete variables are...
Introduction to R
Statistical Methods for Analyzing Epidemiological Data
Statistical Inference Techniques in Hypothesis Testing: Parametric Versus Nonparametric Data
Parametric statistics, as the name suggests, assumes that data follow a specific distribution, often a normal distribution. This assumption enables robust hypothesis testing and estimation. Parametric methods, like the Student's t-test or Goodness-of-fit test, are frequently employed in biostatistics due to their robustness. For instance, comparing...