nimble (version 0.7.0)

combine_MCMC_comparison_results: Combine multiple objects returned by compareMCMCs

Description

Useful for running different cases separately and combining them.

Usage

combine_MCMC_comparison_results(..., name = "MCMCresults")

Arguments

...

MCMC comparison results for an individual model. These results can be obtained from the objects returned by compareMCMCs.

name

(default "MCMCresults") name to be given to the resulting set of comparisons. This will be used in the html generated by make_MCMC_comparison_pages. It is simply a list name and thus can easily be modified later.

Value

An object in the same format as returned by compareMCMCs with summary = TRUE.

See Also

compareMCMCs, rename_MCMC_comparison_method, make_MCMC_comparison_pages, reshape_comparison_results.

Examples

Run this code
# NOT RUN {
nimbleMCMCresults <- compareMCMCs(
 modelInfo = list(
   code = code,
   data = data,
   constants = constants,
   inits = inits),
 MCMCs = c('nimble', 'nimble_slice'),
 summary = TRUE
)

jagsMCMCresults <- compareMCMCs(
 modelInfo = list(
   code = code,
   data = data,
   constants = constants,
   inits = inits),
 MCMCs = c('jags'),
 summary = TRUE
)

combinedMCMCresults <- combine_MCMC_comparison_results(nimbleMCMCresults[['model1']],
                                                       jagsMCMCresults[['model1']],
                                                       name = 'combinedMCMCresults')
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace