{fidelitysim} holds code to replicate the simulation of different fidelity patterns as reported in:
The unrecognized role of fidelity in effectiveness-implementation hybrid trials: simulation study and guidance for implementation researchers. Trutschel et al. BMC Medical Research Methodology (2023) 23:116. https://doi.org/10.1186/s12874-023-01943-3
A guided tutorial on how to apply the simulation is given here https://ins-basel.github.io/fidelity-tutorial
Installation of the R-package
You can install {fidelitysim} from GitHub:
# the {remotes}-package is needed to install from github:
install.packages("remotes")
remotes::install_github("INS-Basel/fidelitysim")