Nothing
knitr::opts_chunk$set(echo = TRUE)
library(mcmsupply) library(dplyr) set.seed(1209)
get_data
function throws an error indicating that the Method column is missing from the custom user-supplied data.cleaned_data <- get_data(national=FALSE, local=TRUE, surveydata_filepath = "~/Documents/R/mcmsupply/inst/data-raw/my_custom_subnational_data_bad.xlsx", mycountry="Ethiopia")
cleaned_data <- get_data(national=FALSE, local=TRUE, surveydata_filepath = "~/Documents/R/mcmsupply/inst/data-raw/my_custom_subnational_data_good.xlsx", mycountry="Ethiopia")
pkg_data <- get_modelinputs(startyear=1990, endyear=2025.5, nsegments=12, raw_data = cleaned_data)
mod <- run_jags_model(jagsdata = pkg_data, jagsparams = NULL, n_iter = 40000, n_burnin = 10000, n_thin = 15)
plots <- plot_estimates(jagsdata = pkg_data, model_output = mod)
estimates_2018 <- pull_estimates(model_output = mod, country = 'Ethiopia', year=2018) head(estimates_2018)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.