# Evaluating hypothetical interventions effects on hospital-acquired infection outcomes with stacked probability visualization: R Shiny apps based on a multistate modelling approach

**Authors:** Jean-Pierre Gnimatin, Marlon Grodd, Susanne Weber, Derek Hazard, Martin Wolkewitz

PMC · DOI: 10.1371/journal.pone.0343837 · PLOS One · 2026-03-16

## TL;DR

This paper introduces two interactive R Shiny apps to simulate and visualize the effects of hospital interventions on infection outcomes.

## Contribution

The novel contribution is the development of HAISim and StaViC, tools that use multistate modeling to evaluate hypothetical interventions in hospital settings.

## Key findings

- HAISim simulates the impact of improved treatment and infection prevention on outcomes like lives saved and patient days reduced.
- StaViC enables comparison of interventions through stacked probability visualization of patient health states.
- The tools combine methodological rigor with practical usability for hospital decision-making.

## Abstract

Hospital-acquired infections (HAIs), contribute to increased morbidity, prolonged hospital stays, and higher healthcare costs. Evaluating intervention effects in dynamic clinical settings requires advanced modeling techniques. This study presents HAISim and StaViC, two interactive R Shiny apps designed to support decision-making in Infection Prevention and Control.

A six-state extended illness–death multistate model was built with a time-constant transition hazard assumption. The multistate model maps patient trajectories involving healthcare-associated infections as an intermediate event, and mortality and discharge as absorbing events in order to describe the time-dependent dynamics within hospitals. Using two settings, we simulated the implementation of hypothetical treatments by modifying hazard rates: Setting 1 (improved treatment intervention only) and Setting 2 (combined enhanced treatment and infection prevention). These were used to create the interactive and user-friendly R Shiny Apps HAISim (HAIs Interventions Simulator) and StaViC (Stacked probAbility Visualization & Comparison). The Shiny Apps use inputs from literature or user data, such as transition-specific hazard rates and intervention-related parameters.

HAISim models the effects of hypothetically improved treatment and infection prevention on outcomes such as the number of lives saved and the number of patient days decreased by simulating a hypothetical scenario based on actual clinical data. StaViC makes it possible to compare potential interventions and their impacts before and after implementation by visualizing the stacked probabilities of patients across various health conditions.

These tools bridge methodological rigor and practical implementation, offering hospitals a flexible framework to prioritize cost-effective IPC strategies.

## Full-text entities

- **Diseases:** ENHANCED TREATMENT (MESH:C564835), Death (MESH:D003643), pneumonia (MESH:D011014), IMPROVED INFECTION PREVENTION (MESH:D007239), LRTIs (MESH:D012141), VAP (MESH:D053717), Acquired infection (MESH:D017714), BSIs (MESH:D018805), UTI (MESH:D014552), accidents (MESH:D000081084), COVID (MESH:D000086382), HAI (MESH:D003428)
- **Species:** Homo sapiens (human, species) [taxon 9606]
- **Cell lines:** StaViC — Homo sapiens (Human), Ehlers-Danlos syndrome, type III, Finite cell line (CVCL_3322)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12991248/full.md

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12991248/full.md

## References

22 references — full list in the complete paper: https://tomesphere.com/paper/PMC12991248/full.md

---
Source: https://tomesphere.com/paper/PMC12991248