Methods
Registered patients in the MIMIC-IV database 16 years or older and admitted to the ICU due to CAP were included. Multivariate analysis, targeted maximum likelihood estimation (TMLE) to simulate a randomised controlled trial, and survival analyses were conducted to test the effect of macrolide-based treatment on mortality six-month (6 m) and twelve-month (12 m) after hospital admission. A sensitivity analysis was performed excluding patients with 