Tutorial and additional information to the publication:
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
Tutorial accessible online here: https://ins-basel.github.io/fidelity-tutorial
Details
-
Clone the repo
-
Open the file
fidelity-tutorial.Rproj -
Install the following packages - they are needed for the following steps to work:
install.packages(c("renv", "quarto"))3b) you also need to install quarto (i.e. a next-generation Rmarkdown-application). The newest version of RStudio comes bundled with quarto 1.0.36 (you can run
quarto checkin a Terminal (not the console)) or you can download the newest quarto version here:
https://quarto.org/docs/download/ -
Call
renv::restore()to initiate a local isolated project-library (to ensure everyone works with the same packages and versions). -
The tutorial is patched-together according to info in the
_quarto.yml-file. Addition or deletion of chapters are signaled there. -
Call
quarto renderin a Terminal to render andquarto previewto get a preview of the book. -
Save, commit, and push to remote!
-
If you have installed additional packages, call
renv::snapshot()to add these to the lockfile, so that others can do 4) on their machines and have the same packages and versions as you do. Thanks!
</details)