Clinical Epidemiology (May 2024)

A Principled Approach to Characterize and Analyze Partially Observed Confounder Data from Electronic Health Records

  • Weberpals J,
  • Raman SR,
  • Shaw PA,
  • Lee H,
  • Russo M,
  • Hammill BG,
  • Toh S,
  • Connolly JG,
  • Dandreo KJ,
  • Tian F,
  • Liu W,
  • Li J,
  • Hernández-Muñoz JJ,
  • Glynn RJ,
  • Desai RJ

Journal volume & issue
Vol. Volume 16
pp. 329 – 343

Abstract

Read online

Janick Weberpals,1 Sudha R Raman,2 Pamela A Shaw,3 Hana Lee,4 Massimiliano Russo,1 Bradley G Hammill,2 Sengwee Toh,5 John G Connolly,5 Kimberly J Dandreo,6 Fang Tian,7 Wei Liu,7 Jie Li,7 José J Hernández-Muñoz,7 Robert J Glynn,1 Rishi J Desai1 1Division of Pharmacoepidemiology and Pharmacoeconomics, Department of Medicine, Brigham and Women’s Hospital, Harvard Medical School, Boston, MA, USA; 2Department of Population Health Sciences, Duke University School of Medicine, Durham, NC, USA; 3Biostatistics Division, Kaiser Permanente Washington Health Research Institute, Seattle, WA, USA; 4Office of Biostatistics, Center for Drug Evaluation and Research, US Food and Drug Administration, Silver Spring, MD, USA; 5Department of Population Medicine, Harvard Medical School and Harvard Pilgrim Health Care Institute, Boston, MA, USA; 6Department of Population Medicine, Harvard Pilgrim Health Care Institute, Boston, MA, USA; 7Office of Surveillance and Epidemiology, Center for Drug Evaluation and Research, US Food and Drug Administration, Silver Spring, MD, USACorrespondence: Janick Weberpals, Instructor in Medicine, Division of Pharmacoepidemiology and Pharmacoeconomics, Department of Medicine, Brigham and Women’s Hospital, Harvard Medical School, 1620 Tremont Street, Suite 3030-R, Boston, MA, 02120, USA, Tel +1 617-278-0932, Fax +1 617-232-8602, Email [email protected]: Partially observed confounder data pose challenges to the statistical analysis of electronic health records (EHR) and systematic assessments of potentially underlying missingness mechanisms are lacking. We aimed to provide a principled approach to empirically characterize missing data processes and investigate performance of analytic methods.Methods: Three empirical sub-cohorts of diabetic SGLT2 or DPP4-inhibitor initiators with complete information on HbA1c, BMI and smoking as confounders of interest (COI) formed the basis of data simulation under a plasmode framework. A true null treatment effect, including the COI in the outcome generation model, and four missingness mechanisms for the COI were simulated: completely at random (MCAR), at random (MAR), and two not at random (MNAR) mechanisms, where missingness was dependent on an unmeasured confounder and on the value of the COI itself. We evaluated the ability of three groups of diagnostics to differentiate between mechanisms: 1)-differences in characteristics between patients with or without the observed COI (using averaged standardized mean differences [ASMD]), 2)-predictive ability of the missingness indicator based on observed covariates, and 3)-association of the missingness indicator with the outcome. We then compared analytic methods including “complete case”, inverse probability weighting, single and multiple imputation in their ability to recover true treatment effects.Results: The diagnostics successfully identified characteristic patterns of simulated missingness mechanisms. For MAR, but not MCAR, the patient characteristics showed substantial differences (median ASMD 0.20 vs 0.05) and consequently, discrimination of the prediction models for missingness was also higher (0.59 vs 0.50). For MNAR, but not MAR or MCAR, missingness was significantly associated with the outcome even in models adjusting for other observed covariates. Comparing analytic methods, multiple imputation using a random forest algorithm resulted in the lowest root-mean-squared-error.Conclusion: Principled diagnostics provided reliable insights into missingness mechanisms. When assumptions allow, multiple imputation with nonparametric models could help reduce bias.Keywords: electronic health records, missing data, diagnostics, imputation, analytics

Keywords