This package contains JAGS models and associated functionality for use with SpARK project data.
To install this package in R, run:
install.packages("devtools")
devtools::install_github("soniamitchell/SpARKjags")
Note that you must have access to the SpARK project datasets for any of this code to work.
list_models()
# Generate JAGS input dataset
data <- jags_data(classification = "Carbapenem",
categories = "human",
pathogen = "Klebsiella pneumoniae",
removeQuinPen = T)
# Run the model
path <- run_SpARKjags_model(data = data,
SpARKjags_model = "individual_models/h.R",
save_to = "results/individual_models")
The run_SpARKjags_model()
function will return the path of the model output.
results <- get_model(path = path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.