The BlantyreSepsis R package contains data and code to replicate the analysis of the manuscript:
A longitudinal observational study of aetiology and long-term outcomes of sepsis in Malawi revealing the key role of disseminated tuberculosis
Joseph M Lewis1,2,3, , Madalitso Mphasa1, Lucy Keyala1, Rachel Banda1, Emma Smith1,2, Jackie Duggan4, Tim Brooks4, Matthew Catton4, Jane Mallewa5, Grace Katha5, Stephen B Gordon1,2, Brian Faragher2, Melita A Gordon1,3, Jamie Rylance1,2, Nicholas A Feasey1,2
Now published in Clinical Infectious Diseases here
Install the package from GitHub:
install.packages("devtools")
devtools::install_github("https://github.com/joelewis101/blantyreSepsis")
Or check out the source code at GitHub
Six datasets are included in the package; for details and variable
definitions access the associated help file (e.g via ?BTparticipants
).
They are lazy loaded so will be available on loading the package.
BTparticipants
- Baseline characteristics and investigation
results for included participantsBTtreatments
- Antimicrobial therapy and intravenous fluid therapy
received by included participantsBTaetiology
- Results of malaria testing, aerobic blood culture,
cerebrospinalfluid culture, tuberculosis diagnostic testsBTsera
- Results of serologic tests for arboviruses,
Rickettsioses, LeptospirosisBTarraycard
- Results of multiplex PCR test for high consequence
pathogensBTbc
- Results of aerobic blood cultureThis analysis is available as a package vignette; this can be built when downloading the package by typing:
devtools::install_github("https://github.com/joelewis101/blantyreSepsis", build_vignettes = TRUE )
The vignette will be then be available by typing vignette("analysis")
and the code is accessed by typing edit(vigentte("analysis"))
. Be
warned: building the vignette takes some time as it will run through the
full missing data imputation and model fitting!
Alternatively the source code for the vignette is analysis.Rmd
in the
vignettes/
folder of this repo or the
pkgdown site for this
package has a rendered version, as well as variable definitions for the
datasets.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.