STAR Protocols (Mar 2024)

Protocol for EHR laboratory data preprocessing and seasonal adjustment using R and RStudio

  • Victorine P. Muse,
  • Søren Brunak

Journal volume & issue
Vol. 5, no. 1
p. 102912

Abstract

Read online

Summary: Seasonality in laboratory healthcare data is associated with possible under- and overdiagnoses of patients in the clinic. Here, we present a protocol to analyze electronic health record data for seasonality patterns and adjust existing reference intervals for these changes using R software. We describe steps for preprocessing population-wide patient laboratory data into a single dataset. We then detail steps for defining strata, normalizing to median, and fitting data to selected functions.For complete details on the use and execution of this protocol, please refer to Muse et al. (2023).1 : Publisher’s note: Undertaking any experimental protocol requires adherence to local institutional guidelines for laboratory safety and ethics.

Keywords