Multiple imputation is a powerful tool in presence of missing data.
However, especially in combination with propensity score analyses, multiple imputation can lead to challenges since analytic workflows can be become much more complex.
This repository showcases and evaluation different multiple imputation > propensity score > outcome analyses and associated implementation challenges.
This is a quarto book project and R package dependencies are listed in the
_requirements.sh file, grouped by topic. Packages are installed with
pak, including the development version of the
encore.analytics
package from GitHub (dev branch). To install all packages, run the
following line of code in the Terminal:
sh _requirements.sh
Packages are installed into a project-local library (.rpkg/, set up by
.Rprofile) and are not version-pinned, i.e., the latest available versions
are installed.
Follow these steps in RStudio to reproduce this study:
- Clone this repository via
git clone <url> - Install all necessary dependencies (see above)
- Run all scripts via
quarto renderor (optionally) in RStudioBuild > Render Book(make sure quarto is installed)
The book is rendered and deployed to GitHub Pages (gh-pages branch) by the
Quarto Publish GitHub Action on every push to main.
The data used in this project is strictly simulated and no real patient-level data is used.