View source: R/get_posterior_P_samps.R
get_posterior_P_samps | R Documentation |
Function to pull the complete posterior sample for the national method-supply share estimates. Functionality for the subnational models is still under development.
get_posterior_P_samps(jagsdata, model_output, nposterior)
jagsdata |
The inputs for the JAGS model |
model_output |
The output of the mcmsupply::run_jags_model() function. |
nposterior |
The number of posterior samples you wish to pull. |
A dataframe containing the posterior samples of national method-supply share estimates.
## Not run:
raw_data <- get_data(national=TRUE, local=TRUE, mycountry="Nepal")
jagsdata <- get_modelinputs(startyear=1990, endyear=2025.5, nsegments=12, raw_data)
mod <- run_jags_model(jagsdata = jagsdata, jagsparams = NULL, n_iter = 5, n_burnin = 1, n_thin = 1)
post_samps <- get_posterior_P_samps(jagsdata = jagsdata, model_output = mod, nposterior=4)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.