combine_MCMC_comparison_results: Combine multiple objects returned by compareMCMCs

Description Usage Arguments Value See Also Examples

View source: R/MCMC_comparisons.R

Description

Useful for running different cases separately and combining them.

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## 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')

## End(Not run)

nimble documentation built on Nov. 17, 2017, 6:04 a.m.