DIC | R Documentation |
Computes the DIC of a libbi object containing Monte-Carlo samples. The effective number of parameters is calculated following Gelman et al., Bayesian Data Analysis: Second Edition, 2004, p. 182.
## S3 method for class 'libbi'
DIC(x, bootstrap = 0, ...)
x |
a |
bootstrap |
number of bootstrap samples to take, 0 to just take data |
... |
any parameters to be passed to 'bi_read' (e.g., 'burn') |
DIC
Sebastian Funk
example_run <- rbi::bi_read(
system.file(package = "rbi", "example_output.nc")
)
example_model_file <- system.file(package = "rbi", "PZ.bi")
example_bi <- rbi::attach_data(
rbi::libbi(example_model_file), "output", example_run
)
DIC(example_bi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.