extractCoda: Extract the coda from an mtc.result object

Description Usage Arguments Details Value See Also

View source: R/nma.R

Description

Extract the coda from an mtc.result object

Usage

1
extractCoda(mtcResults, summarise = TRUE)

Arguments

mtcResults

An mtc.result object as returned by mtc.run from the gemtc package

summarise

logical. If TRUE (default) and the mtc.result object includes more than one chain then the mean across all chains is calculated for each variable at each iteration of the chains

Details

This function takes the output from running an MTC model using mtc.run, extracts the coda from the mtc.result object and returns a data frame. If the summarise argument is TRUE and multiple chains were used for the MCMC then this function will return the mean across all chains for each variable in the model at each iteration of the chain. This is the default behaviour. If the summarise argument is FALSE then results for each individual chain are preserved.

Value

If summarise = TRUE:

If summarise = FALSE:

See Also

mtc.run


RichardBirnie/mautils documentation built on July 12, 2019, 8:56 p.m.