Output_likelihood() takes the jags_model_run produced by run_likelihood(),
merges the mcmc chains and calculates the UPL as well as
providing the predicted pdf and metrics.
Arguments
- jags_model_run
The output list returned from
run_likelihood(), which includes the jags modelrun_results, likelihood distribution type, anddata,xvals, andfuture_runsused as inputs torun_likelihood().- significance
Level of significance from 0 to 1, the default is
0.99.
Value
A list including distr, the distribution used in write_likelihood(),
predicted_mean, the mean of the fitted distribution, UPL_Bayes, the
upper predictive limit based on the significance level and average
distribution of future_runs number of draws, obs_pdf, the predicted
probability density at each observation, and pred_pdf, the predicted
probability density at each point in xvals.
