Running a national level multi-country model
multi_national_mod.Rmd
Load the data
cleaned_natdata <- get_data(national=TRUE)
Get the JAGS model inputs and the cleaned data
pkg_data <- get_modelinputs(startyear=1990, endyear=2025.5,
nsegments=12, raw_data = cleaned_natdata)
Run JAGS model and get posterior point estimates with uncertainty
mod <- run_jags_model(jagsdata = pkg_data, jagsparams = NULL,
n_iter = 80000, n_burnin = 10000, n_thin = 35)
Plot posterior point estimates with uncertainty
plots <- plot_estimates(jagsdata = pkg_data, model_output = mod)