Try to use unsuitable data. The 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")
## Error in check_format(subnat_FPsource_format, subnat_FPsource_data): DATA FORMAT ERROR: Column Method is missing or incorrectly named.
Run JAGS model and get posterior point estimates with
uncertainty
mod <- run_jags_model(jagsdata = pkg_data, jagsparams = NULL,
n_iter = 40000, n_burnin = 10000, n_thin = 15)
Plot posterior point estimates with uncertainty
plots <- plot_estimates(jagsdata = pkg_data, model_output = mod)